-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimportfilter.h
45 lines (35 loc) · 1002 Bytes
/
importfilter.h
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
#ifndef IMPORTFILTER_H
#define IMPORTFILTER_H
#include <QList>
#include <QString>
#include <QTextCodec>
#include "formatselect.h"
#include "../Lib/iniconfig.h"
#include "../Lib/encryption.h"
class Record {
private:
QString dext, dcodec, dcommand ;
public:
Record(QString ext, QString codec, QString command) ;
bool isEmpty() ;
QString ext() ;
QString codec() ;
QString command() ;
};
class ImportFilter
{
private:
Encryption *enc ;
QList <Record> conf ;
FormatSelect codecSelectDialog ;
Record& FindFilter(QString filename) ;
QStringList parseCombinedArgString(const QString &program) ;
QString inipath ;
QString ExpandVars(QString src, QString filepath = QString(""), QString datadir = QString("")) ;
public:
ImportFilter();
bool init(IniConfig &ini, QString inipath, Encryption *enc) ;
bool registerTypes() ;
bool LoadFile(QString filename, QString& contents, QString datadir = QString(".")) ;
};
#endif // IMPORTFILTER_H