Developer Documentation
OpenFunctionThread.hh
1 #ifndef __OPENFUNCTIONSLOADFROMPLUGINTHREAD_HH__
2 #define __OPENFUNCTIONSLOADFROMPLUGINTHREAD_HH__
3 
4 #include <OpenFlipper/threads/OpenFlipperThread.hh>
7 #include <QString>
8 
9 
10 
12 {
13  Q_OBJECT
14 
15 public:
16 
21  struct LoadInfos
22  {
23  FileInterface* plugin;
24  DataType type;
25  QString filename;
26  LoadInfos():plugin(0),type(DATA_UNKNOWN),filename(){}//c'tor for QVector
27  LoadInfos(FileInterface* _plugin, const QString& _filename):plugin(_plugin),type(DATA_UNKNOWN),filename(_filename){}
28  LoadInfos(FileInterface* _plugin, DataType _type, const QString& _filename):plugin(_plugin),type(_type),filename(_filename){}
29  };
30 
31 signals:
32  void updateView();
33 
34 private:
35  const QVector<LoadInfos>& infos_;
36  QVector<int> loadedIds_;
37 
38 public slots:
39  void loadFromPlugin();
40 
41 public:
42 
44  LoadFromPluginThread(const QVector<LoadInfos>& _loadInfos, const QString& _jobName);
45 
46 
47  int getObjId(int index)const;
48  const QString& getFilename(int index) const;
49 
50 };
51 
52 #endif //__OPENFUNCTIONSLOADFROMPLUGINTHREAD_HH__
Predefined datatypes.
Definition: DataTypes.hh:83
Struct containing all relevant information about a load operation.
Thread handling class for OpenFlipper.
const DataType DATA_UNKNOWN(0)
None of the other Objects.
Interface class for file handling.