summaryrefslogtreecommitdiff
path: root/client/netcom.h
diff options
context:
space:
mode:
authordeva <deva>2011-03-10 08:45:16 +0000
committerdeva <deva>2011-03-10 08:45:16 +0000
commitded5e8cd771c9affef086b77e25c93b4868f3f29 (patch)
tree537bec9b557ca9bd2ba6e5429434fdc0250f1e8d /client/netcom.h
parentd8a34adcc1a69a2b77881a6e504d0f0ad896eb3a (diff)
Callback based client implementation is now finished. Testing is up.
Diffstat (limited to 'client/netcom.h')
-rw-r--r--client/netcom.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/client/netcom.h b/client/netcom.h
index a8be6f6..1ee06d6 100644
--- a/client/netcom.h
+++ b/client/netcom.h
@@ -54,19 +54,24 @@ public:
NetCom(QWidget *wdg, 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 nocommit();
- QDomDocument discard();
+ void send(QString templ, QString macro = "");
+ void send(QVector< Widget* > widgets, QString templ,
+ QString macro, QString version);
+
+ void initConnection();
+ void commit();
+ void nocommit();
+ void discard();
QString sessionid;
QString user;
QString patientid;
QString templ;
+signals:
+ void gotReply(QDomDocument &doc);
+ void networkError(QString title, QString text);
+
public slots:
void replyFinished(QNetworkReply*);
@@ -79,8 +84,7 @@ private:
QMap<QNetworkReply *, bool> finished;
- QDomDocument makeTransfer(QDomDocument &dom, bool lockgui,
- session_state_t state = none);
+ void makeTransfer(QDomDocument &dom, session_state_t state = none);
};
#endif/*__PRACRO_NETCOM_H__*/