summaryrefslogtreecommitdiff
path: root/client/mainwindow.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/mainwindow.h
parentd8a34adcc1a69a2b77881a6e504d0f0ad896eb3a (diff)
Callback based client implementation is now finished. Testing is up.
Diffstat (limited to 'client/mainwindow.h')
-rw-r--r--client/mainwindow.h28
1 files changed, 18 insertions, 10 deletions
diff --git a/client/mainwindow.h b/client/mainwindow.h
index 9da8ff2..8449467 100644
--- a/client/mainwindow.h
+++ b/client/mainwindow.h
@@ -32,41 +32,47 @@
#include <QVector>
#include <QPushButton>
#include <QFont>
+#include <QLabel>
+#include <QDomDocument>
+#include <QScrollArea>
#include "netcom.h"
-//#include "sessions.h"
-#include "macro.h"
+#include "entity.h"
-class QLabel;
class MainWindow : public QMainWindow {
Q_OBJECT
public:
- MainWindow(QString cpr, QString templ, QString host, quint16 port,
+ MainWindow(QString patientid, QString templ, QString host, quint16 port,
QString user);
~MainWindow();
void closeEvent(QCloseEvent *event);
public slots:
- void update();
+ // void update();
void closeCommit();
void closeNoCommit();
void closeDiscard();
- // void showSessions();
+
+ void handle(QDomDocument &doc);
+ void showError(QString title, QString text);
+
+ bool hasOpen(void *me);
private:
- void updateTemplateHeaders(QDomNode templatenode);
+ void updateMacros(QDomNodeList &nodes);
+ void updateTemplateHeaders(QDomNode &templatenode);
QString templ;
NetCom netcom;
- QString cpr;
+ QString patientid;
QString user;
- // QMap< QString, MacroWindow* > macros;
- Macros macros;
QWidget *w;
+ Entities entities;
+
QLabel *header;
bool initialising;
@@ -76,6 +82,8 @@ private:
void init();
+ bool closing;
+
bool isStored;
};