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

#include <basedatasource.h>

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

Classes

struct  Error
 

Public Types

enum  Operation { Download =0, Delete, OperationCount }
 

Public Slots

virtual void loadRootItem (Item *item)=0
 
virtual void loadDirectory (Item *item)=0
 
virtual void sendTechSpecUrl (Item *item)
 
virtual void deleteFiles (QList< File * > files)=0
 
virtual void addFileToDownload (File *f)=0
 
virtual void downloadFiles (QList< File * > files, QString dir)=0
 
virtual void downloadFile (File *file)=0
 
virtual void resumeDownload ()=0
 
virtual void abort ()=0
 
virtual void deleteDownloadQueue ()
 
void assignThumbnailsToFiles (Item *item, QList< Thumbnail * > thumbnails=QList< Thumbnail * >())
 
void determineFileVersions (Item *item)
 
void retranslate (QString lang=QString())
 
virtual void assignTechSpecUrlToItem (QString url, Item *item, QString lang, bool overwrite=false)=0
 
virtual void assignPartsIndexUrlToItem (QString url, Item *item, QString lang, bool overwrite=false)=0
 

Signals

void itemInserted (Item *)
 
void updateAvailable (Item *)
 
void loadingItem (Item *)
 
void itemLoaded (Item *)
 
void allItemsLoaded ()
 
void fileProgress (File *)
 
void fileDownloaded (File *)
 
void filesDownloaded ()
 
void thumbnailLoaded (File *)
 
void statusUpdated (QString)
 
void techSpecAvailable (QUrl)
 
void metadataInclude (Item *item, QString path)
 
void metadataIncludeCancelled (Item *item)
 
void metadataReady (Item *)
 
void errorOccured (const QString &error)
 
void techSpecsIndexAlreadyExists (Item *)
 
void partsIndexAlreadyExists (Item *)
 
void fileError (BaseDataSource::Operation op, BaseDataSource::Error *err)
 
void filesDeleted ()
 

Public Member Functions

 BaseDataSource (QObject *parent=0)
 
ItemgetRootItem ()
 
virtual QString internalName ()=0
 
virtual QIcon itemIcon (Item *item)
 
virtual QIcon dataSourceIcon ()
 
virtual QString pathToDataRoot ()=0
 
virtual QString getTechSpecPathForItem (Item *item)=0
 
virtual QString getPathForItem (Item *item)=0
 
virtual QString getRelativePathForItem (Item *item)=0
 
virtual QString name ()=0
 

Public Attributes

ItemrootItem
 
QString label
 
DataSources dataSource
 

Protected Member Functions

virtual void loadItemLogo (Item *item)=0
 
void createMetadata (Item *item)
 

Protected Attributes

QString currentMetadataLang
 

Member Enumeration Documentation

Enumerator
Download 
Delete 
OperationCount 

Constructor & Destructor Documentation

BaseDataSource::BaseDataSource ( QObject *  parent = 0)
explicit

Member Function Documentation

virtual void BaseDataSource::abort ( )
pure virtualslot
virtual void BaseDataSource::addFileToDownload ( File f)
pure virtualslot
void BaseDataSource::allItemsLoaded ( )
signal
virtual void BaseDataSource::assignPartsIndexUrlToItem ( QString  url,
Item item,
QString  lang,
bool  overwrite = false 
)
pure virtualslot
virtual void BaseDataSource::assignTechSpecUrlToItem ( QString  url,
Item item,
QString  lang,
bool  overwrite = false 
)
pure virtualslot
void BaseDataSource::assignThumbnailsToFiles ( Item item,
QList< Thumbnail * >  thumbnails = QList<Thumbnail*>() 
)
slot
void BaseDataSource::createMetadata ( Item item)
protected
QIcon BaseDataSource::dataSourceIcon ( )
virtual

Reimplemented in BaseRemoteDataSource.

void BaseDataSource::deleteDownloadQueue ( )
virtualslot
virtual void BaseDataSource::deleteFiles ( QList< File * >  files)
pure virtualslot
void BaseDataSource::determineFileVersions ( Item item)
slot
virtual void BaseDataSource::downloadFile ( File file)
pure virtualslot
virtual void BaseDataSource::downloadFiles ( QList< File * >  files,
QString  dir 
)
pure virtualslot
void BaseDataSource::errorOccured ( const QString &  error)
signal
void BaseDataSource::fileDownloaded ( File )
signal
void BaseDataSource::fileError ( BaseDataSource::Operation  op,
BaseDataSource::Error err 
)
signal
void BaseDataSource::fileProgress ( File )
signal
void BaseDataSource::filesDeleted ( )
signal
void BaseDataSource::filesDownloaded ( )
signal
virtual QString BaseDataSource::getPathForItem ( Item item)
pure virtual

Implemented in LocalDataSource, and BaseRemoteDataSource.

virtual QString BaseDataSource::getRelativePathForItem ( Item item)
pure virtual

Implemented in LocalDataSource, and BaseRemoteDataSource.

Item * BaseDataSource::getRootItem ( )
virtual QString BaseDataSource::getTechSpecPathForItem ( Item item)
pure virtual

Implemented in LocalDataSource, and BaseRemoteDataSource.

virtual QString BaseDataSource::internalName ( )
pure virtual
QIcon BaseDataSource::itemIcon ( Item item)
virtual

Reimplemented in BaseRemoteDataSource.

void BaseDataSource::itemInserted ( Item )
signal
void BaseDataSource::itemLoaded ( Item )
signal
virtual void BaseDataSource::loadDirectory ( Item item)
pure virtualslot
void BaseDataSource::loadingItem ( Item )
signal
virtual void BaseDataSource::loadItemLogo ( Item item)
protectedpure virtual

Implemented in LocalDataSource, and BaseRemoteDataSource.

virtual void BaseDataSource::loadRootItem ( Item item)
pure virtualslot
void BaseDataSource::metadataInclude ( Item item,
QString  path 
)
signal
void BaseDataSource::metadataIncludeCancelled ( Item item)
signal
void BaseDataSource::metadataReady ( Item )
signal
virtual QString BaseDataSource::name ( )
pure virtual

Implemented in LocalDataSource, and BaseRemoteDataSource.

void BaseDataSource::partsIndexAlreadyExists ( Item )
signal
virtual QString BaseDataSource::pathToDataRoot ( )
pure virtual

Implemented in LocalDataSource, and BaseRemoteDataSource.

virtual void BaseDataSource::resumeDownload ( )
pure virtualslot
void BaseDataSource::retranslate ( QString  lang = QString())
slot
void BaseDataSource::sendTechSpecUrl ( Item item)
virtualslot
void BaseDataSource::statusUpdated ( QString  )
signal
void BaseDataSource::techSpecAvailable ( QUrl  )
signal
void BaseDataSource::techSpecsIndexAlreadyExists ( Item )
signal
void BaseDataSource::thumbnailLoaded ( File )
signal
void BaseDataSource::updateAvailable ( Item )
signal

Member Data Documentation

QString BaseDataSource::currentMetadataLang
protected
DataSources BaseDataSource::dataSource
QString BaseDataSource::label
Item* BaseDataSource::rootItem

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