00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __FMAIN_H
00022 #define __FMAIN_H
00023
00024 #include "ui_fMain.h"
00025 #include <QMainWindow>
00026 #include <QSystemTrayIcon>
00027 #include <QMenu>
00028
00029 class FMain : public QMainWindow
00030 {
00031 Q_OBJECT
00032 private:
00034 Ui_fMain ui;
00036 QSystemTrayIcon * mTrayIcon;
00038 QMenu * mTrayMenu;
00039 private slots:
00041 void addLinks(void);
00043 void removeItems(void);
00045 void about(void);
00047 void settings(void);
00049 void startDownload(void);
00051 void stopDownload(void);
00053 void startAll(void);
00055 void stopAll(void);
00059 void trayActivated(QSystemTrayIcon::ActivationReason reason = QSystemTrayIcon::DoubleClick);
00063 void fatalError(QString msg);
00067 void downloadDone(QString fileName);
00068 public:
00069 FMain(QWidget * parent = 0, Qt::WFlags f = 0);
00070 ~FMain();
00071 };
00072
00073 #endif