forked from journeymidnight/s3util
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.h
More file actions
42 lines (32 loc) · 662 Bytes
/
config.h
File metadata and controls
42 lines (32 loc) · 662 Bytes
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
#ifndef CONFIG_H
#define CONFIG_H
#include <QCoreApplication>
#include <iostream>
#include <string>
#include <QSettings>
using namespace std;
const QString DEFAULT_CONFIG = "./.S3Config.in";
enum ConfigParseResult {
ConfigOK,
ConfigNotExist,
ConfigParaseError,
};
class QS3Config : public QObject
{
Q_OBJECT
public:
QString m_endpoint;
QString m_accessKey;
QString m_secretKey;
QString m_schema;
ConfigParseResult parseConfigFile(QString path);
void genConfigFile();
};
//struct S3Config
//{
// QString endpoint;
// QString accessKey;
// QString secretKey;
// QString schema;
//};
#endif // CONFIG_H