-
Notifications
You must be signed in to change notification settings - Fork 7
/
confluence-agent.h
45 lines (37 loc) · 1 KB
/
confluence-agent.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
#ifndef CONFLUENCEAGENT_H
#define CONFLUENCEAGENT_H
#include <QHash>
#include <QObject>
#include <QTimer>
#include "heading.h"
#include "vymprocess.h"
class BranchItem;
class VymModel;
class ConfluenceAgent:public QObject
{
Q_OBJECT
public:
ConfluenceAgent ();
~ConfluenceAgent();
void test();
bool getPageDetails(const QString &url);
private:
bool uploadContent(const QString &url, const QString &title, const QString &fpath, const bool &newPage);
public:
bool updatePage(const QString &url, const QString &title, const QString &fpath);
bool createPage(const QString &url, const QString &title, const QString &fpath);
bool getUsers(const QString &name);
void waitForResult();
bool success();
QString getResult();
public slots:
virtual bool dataReceived(int exitCode, QProcess::ExitStatus exitStatus);
virtual void timeout();
private:
QString confluenceScript;
VymProcess *vymProcess;
QTimer *killTimer;
bool succ;
QString result;
};
#endif