-
Notifications
You must be signed in to change notification settings - Fork 3
/
rndssucli.h
64 lines (51 loc) · 1.04 KB
/
rndssucli.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/**
* @file rndssucli.h
* @copyright 2012 Jolla Ltd.
* @author Bernd Wachter <bernd.wachter@jollamobile.com>
* @date 2012
*/
#ifndef _RndSsuCli_H
#define _RndSsuCli_H
#include <QObject>
#include <QSettings>
#include <QStringList>
#include <QDebug>
#include "libssu/ssu.h"
class RndSsuCli: public QObject {
Q_OBJECT
public:
RndSsuCli();
public slots:
void run();
private:
Ssu ssu;
QSettings settings;
int state;
void usage();
void optFlavour(QStringList opt);
void optMode(QStringList opt);
void optModifyRepo(int action, QStringList opt);
void optRegister();
void optRelease(QStringList opt);
void optRepos(QStringList opt);
void optResolve(QStringList opt);
void optStatus();
void optUpdateCredentials(QStringList opt);
void optUpdateRepos();
enum Actions {
Remove,
Add,
Disable,
Enable
};
enum State {
Idle,
Busy,
UserError
};
private slots:
void handleResponse();
signals:
void done();
};
#endif