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

#include <ftpdatasource.h>

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

Public Slots

void loadRootItem (Item *item)
 
void loadDirectory (Item *item)
 
void changeSettings (QString remoteHost, int remotePort, bool ftpPassiveMode, QString remoteLogin, QString remotePassword, QString remoteBaseDir)
 
void reset ()
 
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 deleteDownloadQueue ()
 
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 BaseRemoteDataSource
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

 FtpDataSource ()
 
 ~FtpDataSource ()
 
QString internalName ()
 
- Public Member Functions inherited from BaseRemoteDataSource
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 ()
 

Public Attributes

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

Protected Member Functions

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

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 ()
 
- Static Public Member Functions inherited from BaseRemoteDataSource
static QString cacheDirPath ()
 
- Protected Attributes inherited from BaseRemoteDataSource
ItemtechSpecItem
 
bool techSpecUrlSent
 
bool techSpecFilesUpdated
 
- Protected Attributes inherited from BaseDataSource
QString currentMetadataLang
 

Constructor & Destructor Documentation

FtpDataSource::FtpDataSource ( )
FtpDataSource::~FtpDataSource ( )

Member Function Documentation

void FtpDataSource::abort ( )
slot
void FtpDataSource::addFileToDownload ( File f)
slot
void FtpDataSource::assignPartsIndexUrlToItem ( QString  url,
Item item,
QString  lang,
bool  overwrite = false 
)
slot
void FtpDataSource::assignTechSpecUrlToItem ( QString  url,
Item item,
QString  lang,
bool  overwrite = false 
)
slot
void FtpDataSource::changeSettings ( QString  remoteHost,
int  remotePort,
bool  ftpPassiveMode,
QString  remoteLogin,
QString  remotePassword,
QString  remoteBaseDir 
)
slot
void FtpDataSource::checkAndSendTechSpecUrl ( Item item)
protected
void FtpDataSource::deleteDownloadQueue ( )
slot
void FtpDataSource::deleteFiles ( QList< File * >  files)
slot
void FtpDataSource::downloadFile ( File file)
slot
void FtpDataSource::downloadFiles ( QList< File * >  files,
QString  dir 
)
slot
QString FtpDataSource::internalName ( )
virtual

Implements BaseRemoteDataSource.

void FtpDataSource::loadDirectory ( Item item)
slot
void FtpDataSource::loadRootItem ( Item item)
slot
void FtpDataSource::reset ( )
slot
void FtpDataSource::resumeDownload ( )
slot

Member Data Documentation

bool FtpDataSource::ftpPassiveMode

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