1 | |
2 | #ifndef MEINPROC_COMMON_H |
3 | #define MEINPROC_COMMON_H |
4 | |
5 | #include <QDebug> |
6 | #include <QString> |
7 | |
8 | enum CheckFileResult |
9 | { |
10 | CheckFileSuccess, |
11 | CheckFileDoesNotExist, |
12 | CheckFileIsNotFile, |
13 | CheckFileIsNotReadable |
14 | }; |
15 | |
16 | CheckFileResult checkFile( const QString &checkFilename ); |
17 | |
18 | enum CheckResult |
19 | { |
20 | CheckSuccess, |
21 | CheckNoOut, |
22 | CheckNoXmllint |
23 | }; |
24 | |
25 | CheckResult check(const QString &checkFilename, const QString &exe, const QByteArray &catalogs); |
26 | |
27 | void doOutput(QString output, bool usingStdOut, bool usingOutput, const QString &outputOption, bool replaceCharset); |
28 | |
29 | #ifdef _WIN32 |
30 | #include <windows.h> |
31 | #define setenv(x,y,z) SetEnvironmentVariable((LPCTSTR)x,(LPCTSTR)y) |
32 | #endif // _WIN32 |
33 | |
34 | #endif |
35 | |