blob: f36f7fec1e0a2fa5f3961707be631759f21ef870 (
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
|
#ifndef FORMATINFOLOADER_H
#define FORMATINFOLOADER_H
#include <qobject.h>
#include <qstringlist.h>
#include <qdom.h>
/**
* @short The complete information about that format
* @author Daniel Faust <[email protected]>
* @version 0.3
*/
class FormatInfo
{
public:
/**
* Constructor
*/
FormatInfo();
/**
* Destructor
*/
virtual ~FormatInfo();
QStringList mime_types;
QStringList extensions;
QString description;
QStringList urls;
enum CompressionType {
lossy = 0x0001, // encode with loss
lossless = 0x0002, // encode without loss
hybrid = 0x0004 // encode a file with loss and a correction file
} compressionType;
int size;
};
/**
* @short The format info loader that provides information about the compression type and a format description
* @author Daniel Faust <[email protected]>
* @version 0.3
*/
class FormatInfoLoader : public QObject
{
Q_OBJECT
public:
/**
* Constructor
*/
FormatInfoLoader();
/**
* Destructor
*/
virtual ~FormatInfoLoader();
/** is this file a converter plugin and loadable? */
bool verifyFile( QString );
/** load a given file */
FormatInfo* loadFile( QString );
/** the dom tree for loading the xml file */
QDomDocument domTree;
};
#endif // FORMATINFOLOADER_H
|