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

#include <localdatasource.h>

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

Public Slots

void loadRootItem (Item *item)
 
void loadDirectory (Item *item)
 
void deleteFiles (QList< File * > files)
 
void addFileToDownload (File *f)
 
void downloadFiles (QList< File * > files, QString dir)
 
void downloadFile (File *file)
 
void resumeDownload ()
 
void abort ()
 
void assignTechSpecUrlToItem (QString url, Item *item, QString lang, bool overwrite=false)
 
void assignPartsIndexUrlToItem (QString url, Item *item, QString lang, bool overwrite=false)
 
- 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

 LocalDataSource (QObject *parent=0)
 
QString internalName ()
 
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 ()
 
virtual QIcon itemIcon (Item *item)
 
virtual QIcon dataSourceIcon ()
 

Public Attributes

QString localPath
 
- Public Attributes inherited from BaseDataSource
ItemrootItem
 
QString label
 
DataSources dataSource
 

Protected Slots

void aboutToCopy (File *file)
 

Protected Member Functions

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

Protected Attributes

LocalCopiercopier
 
- 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 ()
 

Constructor & Destructor Documentation

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

Member Function Documentation

void LocalDataSource::abort ( )
slot
void LocalDataSource::aboutToCopy ( File file)
protectedslot
void LocalDataSource::addFileToDownload ( File f)
slot
void LocalDataSource::assignPartsIndexUrlToItem ( QString  url,
Item item,
QString  lang,
bool  overwrite = false 
)
slot
void LocalDataSource::assignTechSpecUrlToItem ( QString  url,
Item item,
QString  lang,
bool  overwrite = false 
)
slot
void LocalDataSource::deleteFiles ( QList< File * >  files)
slot
void LocalDataSource::downloadFile ( File file)
slot
void LocalDataSource::downloadFiles ( QList< File * >  files,
QString  dir 
)
slot
QString LocalDataSource::getPathForItem ( Item item)
virtual

Implements BaseDataSource.

QString LocalDataSource::getRelativePathForItem ( Item item)
virtual

Implements BaseDataSource.

QString LocalDataSource::getTechSpecPathForItem ( Item item)
virtual

Implements BaseDataSource.

QString LocalDataSource::internalName ( )
virtual

Implements BaseDataSource.

void LocalDataSource::loadDirectory ( Item item)
slot
void LocalDataSource::loadItemLogo ( Item item)
protectedvirtual

Implements BaseDataSource.

void LocalDataSource::loadRootItem ( Item item)
slot
QString LocalDataSource::name ( )
virtual

Implements BaseDataSource.

QString LocalDataSource::pathToDataRoot ( )
virtual

Implements BaseDataSource.

void LocalDataSource::resumeDownload ( )
slot

Member Data Documentation

LocalCopier* LocalDataSource::copier
protected
QString LocalDataSource::localPath

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