From 73934812611cc7120175e26761d71fae9233c1e8 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 27 May 2010 09:41:29 +0000 Subject: Use new commit/discard methods in netcom. --- client/mainwindow.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'client/mainwindow.h') 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 #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(); }; -- cgit v1.2.3