-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsoleclass.h
37 lines (22 loc) · 883 Bytes
/
consoleclass.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
#ifndef CONSOLECLASS_H
#define CONSOLECLASS_H
#include <QObject>
#include <QStringList>
class ConsoleClass : public QObject
{
Q_OBJECT
public:
explicit ConsoleClass(QObject *parent = 0);
int checkArgs(QStringList list);
QByteArray showHelp();
QByteArray convert2local8bit(const QStringList &list, bool &ok);
QByteArray convert2utf8(const QStringList &list, bool &ok);
QByteArray compressDecompressData(const bool &compress, const QStringList &list, bool &ok);
QByteArray getHashSumm(const QStringList &list, bool &ok);
private:
int hshSummVal(const QString &arg) ;
QByteArray convertData(const QString &key, const QByteArray &inData, bool &ok);
QByteArray convertOutData(const QString &key, const QByteArray &inData, bool &ok);
QStringList getHshNames();
};
#endif // CONSOLECLASS_H