oopapidocs
2.0
|
00001 #ifndef METADATALOADER_H 00002 #define METADATALOADER_H 00003 00004 #include <QObject> 00005 #include <QTimer> 00006 #include "metadatavalue.h" 00007 #include "filetagger_export.h" 00008 #include "abstractmetadataloader.h" 00009 00010 namespace TagLib { 00011 00012 //start 00016 class FILETAGGER_EXPORT MetaDataLoader 00017 : public Abstract::MetaDataLoader { 00018 Q_OBJECT 00019 public: 00020 typedef Abstract::MetaDataLoader SUPER; 00021 explicit MetaDataLoader(QObject *parent = 0); 00022 static MetaDataLoader* instance(); 00023 virtual ~MetaDataLoader() {} 00024 const QStringList &supportedExtensions() ; 00028 MetaDataLoader* clone(QObject *parent) ; 00029 void get(QString path); 00030 void get(QStringList path); 00031 bool isRunning() const {return m_running;} 00032 public slots: 00033 void cancel(); 00034 private slots: 00035 void checkForWork(); 00036 00037 private: 00038 bool m_running; 00039 bool m_canceled; 00040 int m_processingMax; 00041 QStringList m_queue; 00042 QTimer m_timer; 00043 }; 00044 } 00045 00046 //end 00047 00048 #endif // METADATALOADER_H