summaryrefslogtreecommitdiff
path: root/client/mainwindow.h
diff options
context:
space:
mode:
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();
};