source: src-qt4/pc-mounttray/mountTray.h @ 1620346

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since 1620346 was 1620346, checked in by Kris Moore <kris@…>, 15 months ago

Initial import of PC-BSD /current/ SVN repo

  • Property mode set to 100644
File size: 1.3 KB
Line 
1#ifndef MOUNT_TRAY_H
2#define MOUNT_TRAY_H
3
4// QT Includes
5#include <QDialog>
6#include <QSystemTrayIcon>
7#include <QMenu>
8#include <QLocalSocket>
9#include <QString>
10#include <QPixmap>
11#include <QList>
12#include <QTimer>
13
14#include "menuItem.h"
15#include "devCheck.h"
16
17extern bool DEBUG_MODE;
18extern QString DEVICEDIR;
19extern QString MOUNTDIR;
20
21//class QString;
22//class QPixmap;
23
24class MountTray : public QDialog {
25   Q_OBJECT
26   
27public:
28   MountTray() : QDialog()
29   {
30
31   }
32   void programInit();
33   
34   ~MountTray();
35   
36public slots:
37  void closeTray();
38 
39private slots:
40  void slotSingleInstance();
41  void newDevdMessage();
42  void slotDevChanges(bool showPopup = TRUE);
43  void slotTrayActivated(QSystemTrayIcon::ActivationReason);
44  void slotOpenMediaDir();
45  void openMediaDir(QString); 
46  void slotDisplayPopup(QString,QString);
47  void removeDevice(QString);
48  void slotRescan();
49 
50private:
51  DevCheck *DCheck;
52  QString USERNAME, FILEMAN;
53  QLocalSocket* devdProc;
54  QTimer *devdTimer; 
55  int numMount, numAvail;
56  QSystemTrayIcon* trayIcon;
57  QMenu* trayIconMenu;
58  QList<MenuItem*> deviceList;
59  QStringList oldsysdev;
60
61
62  void updateMenu();
63  void scanInitialDevices();
64  int findDeviceInList(QString);
65  void addDevice(QString,QString,QString,QString);
66  void startupDevdProc();
67  void getInitialUsername();
68  void getDefaultFileManager();
69 
70};
71
72#endif
Note: See TracBrowser for help on using the repository browser.