blob: 7221d54d27a2d12ee4a4e3d80a4a5739f5110178 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
#ifndef RIPPERPLUGINLOADER_H
#define RIPPERPLUGINLOADER_H
#include "pluginloaderbase.h"
/**
* @short The complete data, how to use the backend
* @author Daniel Faust <[email protected]>
* @version 0.3
*/
class RipperPlugin
{
public:
/**
* Constructor
*/
RipperPlugin();
/**
* Destructor
*/
virtual ~RipperPlugin();
TQString filePathName; // the file name of th plugin (needed to detect write permissions)
struct Info
{
int version; // the version of our plugin (v0.2.1 = 201, v11.3 = 110300)
TQString name; // the name of our plugin
TQString author; // the author of the plugin
TQString about; // a short information aboue the plugin
} info;
struct Rip
{
//PluginLoaderBase::FeatureLevel level;
int rank;
TQString bin;
TQString param;
TQString silent_param;
TQString out_file;
TQString track;
TQString device;
TQString overwrite;
TQString output;
struct FullDisc
{
bool enabled;
TQString param;
TQString output;
} full_disc;
} rip;
};
/**
* @short The plugin loader for the ripper plugins
* @author Daniel Faust <[email protected]>
* @version 0.3
*/
class RipperPluginLoader : public PluginLoaderBase
{
Q_OBJECT
TQ_OBJECT
public:
/**
* Constructor
*/
RipperPluginLoader();
/**
* Destructor
*/
virtual ~RipperPluginLoader();
/** is this file a ripper plugin and loadable? */
int verifyFile( TQString );
/** load a given file */
RipperPlugin* loadFile( TQString );
};
#endif // RIPPERPLUGINLOADER_H
|