summaryrefslogtreecommitdiffstats
path: root/tcutils/mainwindow.h
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2013-08-25 18:02:04 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2013-08-25 18:02:04 -0700
commitf8f648c57432a3238a17dc70909947a30ccaebae (patch)
tree95ffb2fb9409f63be8e322168439cfd1f3f97d3a /tcutils/mainwindow.h
parentfa40106a697611a35b57459c9403cc440a0cc865 (diff)
downloadxrdp-proprietary-f8f648c57432a3238a17dc70909947a30ccaebae.tar.gz
xrdp-proprietary-f8f648c57432a3238a17dc70909947a30ccaebae.zip
added tcutils, a utility for unmounting usb drives remotely
Diffstat (limited to 'tcutils/mainwindow.h')
-rw-r--r--tcutils/mainwindow.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/tcutils/mainwindow.h b/tcutils/mainwindow.h
new file mode 100644
index 00000000..1639522f
--- /dev/null
+++ b/tcutils/mainwindow.h
@@ -0,0 +1,57 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QMainWindow>
+#include <xrdpapi.h>
+#include <QSystemTrayIcon>
+#include <QMenu>
+#include <QCloseEvent>
+#include <QFileDialog>
+#include <QDir>
+#include <QListWidgetItem>
+#include <QList>
+#include <QMessageBox>
+#include <QTimer>
+#include <QStatusBar>
+//#include <QDebug>
+
+#include "utils.h"
+
+namespace Ui {
+class MainWindow;
+}
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+public:
+ explicit MainWindow(QWidget *parent = 0);
+ ~MainWindow();
+
+private:
+ Ui::MainWindow *ui;
+ void *wtsChannel;
+ QSystemTrayIcon *trayIcon;
+ QMenu *trayMenu;
+ bool okToQuit;
+ QRect savedGeometry;
+ QStatusBar *statusBar;
+
+ QList<QListWidgetItem *> itemList;
+
+ void setupSystemTray();
+ int initWtsChannel();
+ int deinitWtsChannel();
+ void setStatusMsg(QString msg);
+ void closeEvent(QCloseEvent * event);
+
+private slots:
+ void onBtnRefreshClicked();
+ void onBtnUnmountClicked();
+ void onActionQuit();
+ void onActionLaunch();
+ void onSystemTrayClicked(QSystemTrayIcon::ActivationReason);
+};
+
+#endif // MAINWINDOW_H