ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
ServersModel Class Reference

#include <serversmodel.h>

Inheritance diagram for ServersModel:
Inheritance graph
[legend]
Collaboration diagram for ServersModel:
Collaboration graph
[legend]

Public Slots

void refresh (Item *item)
 
void clear ()
 
void loadItem (Item *item)
 
void requestTechSpecs (const QModelIndex &index)
 
void requestTechSpecs (Item *item)
 
void deleteFiles ()
 
void downloadFiles (QString dir)
 
void resumeDownload ()
 
void uncheckAll (Item *item=0)
 
void deleteDownloadQueue ()
 
void retranslateMetadata (Item *item=0)
 
void abort ()
 
void descentTo (QString path, Item *item=0)
 
void catchFileError (BaseDataSource::Operation op, BaseDataSource::Error *err)
 

Signals

void loadingItem (Item *)
 
void itemLoaded (const QModelIndex &)
 
void allItemsLoaded ()
 
void techSpecAvailable (QUrl)
 
void statusUpdated (QString)
 
void errorOccured (const QString &error)
 
void fileProgress (File *)
 
void fileDownloaded (File *)
 
void filesDownloaded ()
 
void queueChanged ()
 
void autoDescentProgress (const QModelIndex &)
 
void autoDescentCompleted (const QModelIndex &)
 
void autoDescentNotFound ()
 
void techSpecsIndexAlreadyExists (Item *)
 
void partsIndexAlreadyExists (Item *)
 
void filesDeleted ()
 

Public Member Functions

 ServersModel (BaseDataSource *ds, QObject *parent=0)
 
 ~ServersModel ()
 
bool canFetchMore (const QModelIndex &parent) const
 
void fetchMore (const QModelIndex &parent)
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
bool setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole)
 
QVariant data (const QModelIndex &index, int role) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
QModelIndex parent (const QModelIndex &index) const
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
BaseDataSourcedataSource ()
 
QString translateDataSourceNameToPath (QString name)
 
QList< BaseDataSource::Error * > fileErrors (BaseDataSource::Operation op)
 
bool hasErrors (BaseDataSource::Operation op)
 
ItemlastTechSpecRequest ()
 
ItemrootItem ()
 
void stopDownload ()
 
void clearQueue ()
 
DownloadModeldownloadModel ()
 
- Public Member Functions inherited from TransferHandler
 TransferHandler ()
 
virtual void resumeDownload ()=0
 

Protected Slots

void allPartsDownloaded (Item *item)
 

Protected Member Functions

QList< File * > getCheckedFiles (Item *item)
 

Constructor & Destructor Documentation

ServersModel::ServersModel ( BaseDataSource ds,
QObject *  parent = 0 
)
ServersModel::~ServersModel ( )

Member Function Documentation

void ServersModel::abort ( )
slot
void ServersModel::allItemsLoaded ( )
signal
void ServersModel::allPartsDownloaded ( Item item)
protectedslot
void ServersModel::autoDescentCompleted ( const QModelIndex &  )
signal
void ServersModel::autoDescentNotFound ( )
signal
void ServersModel::autoDescentProgress ( const QModelIndex &  )
signal
bool ServersModel::canFetchMore ( const QModelIndex &  parent) const
void ServersModel::catchFileError ( BaseDataSource::Operation  op,
BaseDataSource::Error err 
)
slot
void ServersModel::clear ( )
slot
void ServersModel::clearQueue ( )
virtual

Implements TransferHandler.

int ServersModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
QVariant ServersModel::data ( const QModelIndex &  index,
int  role 
) const
BaseDataSource* ServersModel::dataSource ( )
inline
void ServersModel::deleteDownloadQueue ( )
slot
void ServersModel::deleteFiles ( )
slot
void ServersModel::descentTo ( QString  path,
Item item = 0 
)
slot
void ServersModel::downloadFiles ( QString  dir)
slot
DownloadModel* ServersModel::downloadModel ( )
inline
void ServersModel::errorOccured ( const QString &  error)
signal
void ServersModel::fetchMore ( const QModelIndex &  parent)
void ServersModel::fileDownloaded ( File )
signal
QList< BaseDataSource::Error * > ServersModel::fileErrors ( BaseDataSource::Operation  op)
void ServersModel::fileProgress ( File )
signal
void ServersModel::filesDeleted ( )
signal
void ServersModel::filesDownloaded ( )
signal
Qt::ItemFlags ServersModel::flags ( const QModelIndex &  index) const
QList< File * > ServersModel::getCheckedFiles ( Item item)
protected
bool ServersModel::hasErrors ( BaseDataSource::Operation  op)
QVariant ServersModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
QModelIndex ServersModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
void ServersModel::itemLoaded ( const QModelIndex &  )
signal
Item * ServersModel::lastTechSpecRequest ( )
void ServersModel::loadingItem ( Item )
signal
void ServersModel::loadItem ( Item item)
slot
QModelIndex ServersModel::parent ( const QModelIndex &  index) const
void ServersModel::partsIndexAlreadyExists ( Item )
signal
void ServersModel::queueChanged ( )
signal
void ServersModel::refresh ( Item item)
slot
void ServersModel::requestTechSpecs ( const QModelIndex &  index)
slot
void ServersModel::requestTechSpecs ( Item item)
slot
void ServersModel::resumeDownload ( )
slot
void ServersModel::retranslateMetadata ( Item item = 0)
slot
Item* ServersModel::rootItem ( )
inline
Returns
datasource top level item (not the invisible model root)
int ServersModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
bool ServersModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
bool ServersModel::setHeaderData ( int  section,
Qt::Orientation  orientation,
const QVariant &  value,
int  role = Qt::EditRole 
)
void ServersModel::statusUpdated ( QString  )
signal
void ServersModel::stopDownload ( )
virtual

Implements TransferHandler.

void ServersModel::techSpecAvailable ( QUrl  )
signal
void ServersModel::techSpecsIndexAlreadyExists ( Item )
signal
QString ServersModel::translateDataSourceNameToPath ( QString  name)
void ServersModel::uncheckAll ( Item item = 0)
slot

The documentation for this class was generated from the following files: