• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • NewstuffModel
Public Types | Public Slots | Signals | Public Member Functions | Properties | List of all members
Marble::NewstuffModel Class Reference

#include <NewstuffModel.h>

Inherits QAbstractListModel.

Public Types

enum  IdTag { PayloadTag, NameTag }
 
enum  NewstuffRoles {
  Name = Qt::UserRole + 1, Author, License, Summary,
  Version, ReleaseDate, Preview, Payload,
  InstalledVersion, InstalledReleaseDate, InstalledFiles, IsInstalled,
  IsUpgradable, Category, IsTransitioning, PayloadSize,
  DownloadedSize
}
 

Public Slots

void cancel (int index)
 
void install (int index)
 
void uninstall (int index)
 

Signals

void countChanged ()
 
void installationFailed (int newstuffindex, const QString &error)
 
void installationFinished (int newstuffindex)
 
void installationProgressed (int newstuffindex, qreal progress)
 
void providerChanged ()
 
void registryFileChanged ()
 
void targetDirectoryChanged ()
 
void uninstallationFinished (int newstuffindex)
 

Public Member Functions

 NewstuffModel (QObject *parent=0)
 
 ~NewstuffModel ()
 
int count ()
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
QString provider () const
 
QString registryFile () const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
void setProvider (const QString &downloadUrl)
 
void setRegistryFile (const QString &registryFile, IdTag idTag=PayloadTag)
 
void setTargetDirectory (const QString &targetDirectory)
 
QString targetDirectory () const
 

Properties

int count
 
QString provider
 
QString registryFile
 
QString targetDirectory
 

Detailed Description

Definition at line 26 of file NewstuffModel.h.

Member Enumeration Documentation

enum Marble::NewstuffModel::IdTag
Enumerator
PayloadTag 
NameTag 

Definition at line 56 of file NewstuffModel.h.

enum Marble::NewstuffModel::NewstuffRoles
Enumerator
Name 
Author 
License 
Summary 
Version 
ReleaseDate 
Preview 
Payload 
InstalledVersion 
InstalledReleaseDate 
InstalledFiles 
IsInstalled 
IsUpgradable 
Category 
IsTransitioning 
PayloadSize 
DownloadedSize 

Definition at line 36 of file NewstuffModel.h.

Constructor & Destructor Documentation

Marble::NewstuffModel::NewstuffModel ( QObject *  parent = 0)
explicit

Constructor.

Definition at line 459 of file NewstuffModel.cpp.

Marble::NewstuffModel::~NewstuffModel ( )

Destructor.

Definition at line 494 of file NewstuffModel.cpp.

Member Function Documentation

void Marble::NewstuffModel::cancel ( int  index)
slot

Definition at line 679 of file NewstuffModel.cpp.

int Marble::NewstuffModel::count ( )
Todo:
FIXME https://bugreports.qt-project.org/browse/QTCOMPONENTS-1206
void Marble::NewstuffModel::countChanged ( )
signal
QVariant Marble::NewstuffModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Overload of QAbstractListModel.

Definition at line 508 of file NewstuffModel.cpp.

void Marble::NewstuffModel::install ( int  index)
slot

Definition at line 639 of file NewstuffModel.cpp.

void Marble::NewstuffModel::installationFailed ( int  newstuffindex,
const QString &  error 
)
signal
void Marble::NewstuffModel::installationFinished ( int  newstuffindex)
signal
void Marble::NewstuffModel::installationProgressed ( int  newstuffindex,
qreal  progress 
)
signal
QString Marble::NewstuffModel::provider ( ) const
void Marble::NewstuffModel::providerChanged ( )
signal
QString Marble::NewstuffModel::registryFile ( ) const
void Marble::NewstuffModel::registryFileChanged ( )
signal
int Marble::NewstuffModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Overload of QAbstractListModel.

Definition at line 499 of file NewstuffModel.cpp.

void Marble::NewstuffModel::setProvider ( const QString &  downloadUrl)

Add a newstuff provider.

Definition at line 559 of file NewstuffModel.cpp.

void Marble::NewstuffModel::setRegistryFile ( const QString &  registryFile,
IdTag  idTag = PayloadTag 
)

Definition at line 595 of file NewstuffModel.cpp.

void Marble::NewstuffModel::setTargetDirectory ( const QString &  targetDirectory)

Definition at line 575 of file NewstuffModel.cpp.

QString Marble::NewstuffModel::targetDirectory ( ) const
void Marble::NewstuffModel::targetDirectoryChanged ( )
signal
void Marble::NewstuffModel::uninstall ( int  index)
slot

Definition at line 657 of file NewstuffModel.cpp.

void Marble::NewstuffModel::uninstallationFinished ( int  newstuffindex)
signal

Property Documentation

int Marble::NewstuffModel::count
read

Definition at line 30 of file NewstuffModel.h.

QString Marble::NewstuffModel::provider
readwrite

Definition at line 31 of file NewstuffModel.h.

QString Marble::NewstuffModel::registryFile
readwrite

Definition at line 33 of file NewstuffModel.h.

QString Marble::NewstuffModel::targetDirectory
readwrite

Definition at line 32 of file NewstuffModel.h.


The documentation for this class was generated from the following files:
  • NewstuffModel.h
  • NewstuffModel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal