summaryrefslogtreecommitdiff
path: root/client/netcom.h
diff options
context:
space:
mode:
authordeva <deva>2010-05-27 09:40:55 +0000
committerdeva <deva>2010-05-27 09:40:55 +0000
commit3d48d173bc89b8868bf28f22d875ff0667a24021 (patch)
treecbbcc672d448b5e3fcabcc31249f7acdf781f79e /client/netcom.h
parentad98026d4a949c62f7361fd41f366e8483f76946 (diff)
New commit/discard methods
Diffstat (limited to 'client/netcom.h')
-rw-r--r--client/netcom.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/client/netcom.h b/client/netcom.h
index d890cb0..88b604e 100644
--- a/client/netcom.h
+++ b/client/netcom.h
@@ -42,28 +42,33 @@ class Widget;
class NetCom : public QObject {
Q_OBJECT
public:
- NetCom(QString host, quint16 port, QString user, QString cpr);
+ NetCom(QString host, quint16 port);
~NetCom();
QDomDocument send(QString templ, QString macro = "", bool lockgui = true);
QDomDocument send(QVector< Widget* > widgets, QString templ, QString macro,
QString version);
+ QDomDocument initConnection();
+ QDomDocument commit();
+ QDomDocument discard();
+
+ QString sessionid;
+ QString user;
+ QString patientid;
public slots:
void replyFinished(QNetworkReply*);
private:
- QString user;
- QString cpr;
-
QNetworkAccessManager *manager;
QNetworkRequest request;
- QString sessionid;
+ // QString sessionid;
QMap<QNetworkReply *, bool> finished;
- QDomDocument makeTransfer(QDomDocument &dom, bool commit, bool lockgui);
+ QDomDocument makeTransfer(QDomDocument &dom,
+ bool commit, bool lockgui, bool discard = false);
};
#endif/*__PRACRO_NETCOM_H__*/