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

#include <baseremotedatasource.h>

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

Public Slots

void sendTechSpecUrl (Item *item)
 
virtual void loadRootItem (Item *item)=0
 
virtual void loadDirectory (Item *item)=0
 
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 abort ()=0
 
- Public Slots inherited from BaseDataSource
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
 

Public Member Functions

virtual QString internalName ()=0
 
virtual QIcon itemIcon (Item *item)
 
virtual QIcon dataSourceIcon ()
 
QString pathToDataRoot ()
 
QString getTechSpecPathForItem (Item *item)
 
QString getPathForItem (Item *item)
 
QString getRelativePathForItem (Item *item)
 
QString name ()
 
- Public Member Functions inherited from BaseDataSource
 BaseDataSource (QObject *parent=0)
 
ItemgetRootItem ()
 

Static Public Member Functions

static QString cacheDirPath ()
 

Public Attributes

QString remoteHost
 
QString remoteLogin
 
QString remotePassword
 
QString remoteBaseDir
 
int remotePort
 
- Public Attributes inherited from BaseDataSource
ItemrootItem
 
QString label
 
DataSources dataSource
 

Protected Member Functions

void loadItemLogo (Item *item)
 
void checkAndSendTechSpecUrl (Item *item)
 
- Protected Member Functions inherited from BaseDataSource
void createMetadata (Item *item)
 

Protected Attributes

ItemtechSpecItem
 
bool techSpecUrlSent
 
bool techSpecFilesUpdated
 
- Protected Attributes inherited from BaseDataSource
QString currentMetadataLang
 

Additional Inherited Members

- Public Types inherited from BaseDataSource
enum  Operation { Download =0, Delete, OperationCount }
 
- Signals inherited from BaseDataSource
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 ()
 

Member Function Documentation

virtual void BaseRemoteDataSource::abort ( )
pure virtualslot
virtual void BaseRemoteDataSource::addFileToDownload ( File f)
pure virtualslot
QString BaseRemoteDataSource::cacheDirPath ( )
static
void BaseRemoteDataSource::checkAndSendTechSpecUrl ( Item item)
protected
QIcon BaseRemoteDataSource::dataSourceIcon ( )
virtual

Reimplemented from BaseDataSource.

virtual void BaseRemoteDataSource::deleteFiles ( QList< File * >  files)
pure virtualslot
virtual void BaseRemoteDataSource::downloadFile ( File file)
pure virtualslot
virtual void BaseRemoteDataSource::downloadFiles ( QList< File * >  files,
QString  dir 
)
pure virtualslot
QString BaseRemoteDataSource::getPathForItem ( Item item)
virtual

Implements BaseDataSource.

QString BaseRemoteDataSource::getRelativePathForItem ( Item item)
virtual

Implements BaseDataSource.

QString BaseRemoteDataSource::getTechSpecPathForItem ( Item item)
virtual

Implements BaseDataSource.

virtual QString BaseRemoteDataSource::internalName ( )
pure virtual

Implements BaseDataSource.

Implemented in FtpDataSource.

QIcon BaseRemoteDataSource::itemIcon ( Item item)
virtual

Reimplemented from BaseDataSource.

virtual void BaseRemoteDataSource::loadDirectory ( Item item)
pure virtualslot
void BaseRemoteDataSource::loadItemLogo ( Item item)
protectedvirtual

Implements BaseDataSource.

virtual void BaseRemoteDataSource::loadRootItem ( Item item)
pure virtualslot
QString BaseRemoteDataSource::name ( )
virtual

Implements BaseDataSource.

QString BaseRemoteDataSource::pathToDataRoot ( )
virtual

Implements BaseDataSource.

void BaseRemoteDataSource::sendTechSpecUrl ( Item item)
slot

Member Data Documentation

QString BaseRemoteDataSource::remoteBaseDir
QString BaseRemoteDataSource::remoteHost
QString BaseRemoteDataSource::remoteLogin
QString BaseRemoteDataSource::remotePassword
int BaseRemoteDataSource::remotePort
bool BaseRemoteDataSource::techSpecFilesUpdated
protected
Item* BaseRemoteDataSource::techSpecItem
protected
bool BaseRemoteDataSource::techSpecUrlSent
protected

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