1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef BRIDGE_H
#define BRIDGE_H
class QStringList;
#include <QString>
#include <QObject>
#include <QProcess>
#include <QMessageBox>
typedef QMap<QString, QString> stashmap_t;
#define PATH_SEPARATOR "/"
enum RunFlags
{
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef BRIDGE_H
#define BRIDGE_H
class QStringList;
#include <QString>
#include <QObject>
#include <QProcess>
#include "Utils.h"
typedef QMap<QString, QString> stashmap_t;
#define PATH_SEPARATOR "/"
enum RunFlags
{
|
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
|
REPO_NOT_FOUND,
REPO_OLD_SCHEMA
};
class Bridge
{
public:
class UICallback
{
public:
virtual void logText(const QString &text, bool isHTML)=0;
virtual void beginProcess(const QString &text)=0;
virtual void updateProcess(const QString &text)=0;
virtual void endProcess()=0;
virtual QMessageBox::StandardButton Query(const QString &title, const QString &query, QMessageBox::StandardButtons buttons)=0;
};
Bridge()
: operationAborted(false)
, uiCallback(0)
{
}
void Init(UICallback *callback)
|
<
<
<
<
<
<
<
<
<
<
<
|
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
REPO_NOT_FOUND,
REPO_OLD_SCHEMA
};
class Bridge
{
public:
Bridge()
: operationAborted(false)
, uiCallback(0)
{
}
void Init(UICallback *callback)
|