summaryrefslogtreecommitdiff
path: root/client/netcom.h
diff options
context:
space:
mode:
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__*/