summaryrefslogtreecommitdiff
path: root/client/netcom.h
diff options
context:
space:
mode:
authordeva <deva>2011-01-28 08:50:27 +0000
committerdeva <deva>2011-01-28 08:50:27 +0000
commit7917d099f34acda6c4c90bca28710a7bd67800e9 (patch)
treeea9427001b1bf6cd99b04e064a7948d8550e12d8 /client/netcom.h
parent34366d806d70184876ad7d195f21c7d4c257c778 (diff)
New cross client session system.
Diffstat (limited to 'client/netcom.h')
-rw-r--r--client/netcom.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/client/netcom.h b/client/netcom.h
index 79bb78f..e6478a5 100644
--- a/client/netcom.h
+++ b/client/netcom.h
@@ -39,6 +39,13 @@
//#include "widgets/widget.h"
class Widget;
+typedef enum {
+ none,
+ commit,
+ nocommit,
+ discard
+} session_state_t;
+
class NetCom : public QObject {
Q_OBJECT
public:
@@ -50,11 +57,13 @@ public:
QString macro, QString version);
QDomDocument initConnection();
QDomDocument commit();
+ QDomDocument nocommit();
QDomDocument discard();
QString sessionid;
QString user;
QString patientid;
+ QString templ;
public slots:
void replyFinished(QNetworkReply*);
@@ -67,8 +76,8 @@ private:
QMap<QNetworkReply *, bool> finished;
- QDomDocument makeTransfer(QDomDocument &dom,
- bool commit, bool lockgui, bool discard = false);
+ QDomDocument makeTransfer(QDomDocument &dom, bool lockgui,
+ session_state_t state = none);
};
#endif/*__PRACRO_NETCOM_H__*/