Developer Documentation
Loading...
Searching...
No Matches
OpenFunctionThread.hh
1
#ifndef __OPENFUNCTIONSLOADFROMPLUGINTHREAD_HH__
2
#define __OPENFUNCTIONSLOADFROMPLUGINTHREAD_HH__
3
4
#include <OpenFlipper/threads/OpenFlipperThread.hh>
5
#include <
OpenFlipper/common/DataTypes.hh
>
6
#include <
OpenFlipper/BasePlugin/FileInterface.hh
>
7
#include <QString>
8
9
10
11
class
LoadFromPluginThread
:
public
OpenFlipperThread
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
43
~LoadFromPluginThread
();
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__
DataTypes.hh
DATA_UNKNOWN
const DataType DATA_UNKNOWN(0)
None of the other Objects.
FileInterface.hh
DataType
Predefined datatypes.
Definition
DataTypes.hh:83
FileInterface
Interface class for file handling.
Definition
FileInterface.hh:63
LoadFromPluginThread
Definition
OpenFunctionThread.hh:12
OpenFlipperThread
Thread handling class for OpenFlipper.
Definition
OpenFlipperThread.hh:78
LoadFromPluginThread::LoadInfos
Struct containing all relevant information about a load operation.
Definition
OpenFunctionThread.hh:22
OpenFlipper
Core
OpenFunctionThread.hh
Generated on Fri Dec 19 2025 12:26:14 for Developer Documentation by
1.9.8