summaryrefslogtreecommitdiff
path: root/client/mainwindow.h
diff options
context:
space:
mode:
authordeva <deva>2010-05-27 09:41:29 +0000
committerdeva <deva>2010-05-27 09:41:29 +0000
commit73934812611cc7120175e26761d71fae9233c1e8 (patch)
treed02a57f4d9f67ec073e330e4461e4f8cf98b4de5 /client/mainwindow.h
parent3d48d173bc89b8868bf28f22d875ff0667a24021 (diff)
Use new commit/discard methods in netcom.
Diffstat (limited to 'client/mainwindow.h')
-rw-r--r--client/mainwindow.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/client/mainwindow.h b/client/mainwindow.h
index e19b070..6f88058 100644
--- a/client/mainwindow.h
+++ b/client/mainwindow.h
@@ -33,19 +33,24 @@
#include <QPushButton>
#include "netcom.h"
#include "macrowindow.h"
-
+#include "sessions.h"
#include "macro.h"
class MainWindow : public QMainWindow {
Q_OBJECT
public:
- MainWindow(QString cpr, QString templ, QString host, quint16 port, QString user);
+ MainWindow(QString cpr, QString templ, QString host, quint16 port,
+ QString user);
~MainWindow();
void closeEvent(QCloseEvent *event);
public slots:
void update();
+ void closeCommit();
+ void closeNoCommit();
+ void closeDiscard();
+ void showSessions();
private:
void updateTemplateHeaders(QDomNode templatenode);
@@ -53,6 +58,9 @@ private:
QString templ;
NetCom netcom;
+ QString cpr;
+ QString user;
+
// QMap< QString, MacroWindow* > macros;
Macros macros;
QWidget *w;
@@ -61,6 +69,8 @@ private:
bool initialising;
+ Sessions sessions;
+
void init();
};