source: src-qt4/life-preserver/lp-gui/LPMain.h @ 109c737

enter/10releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1releng/10.1.1releng/10.1.2
Last change on this file since 109c737 was 109c737, checked in by Ken Moore <ken@…>, 15 months ago

Add a new "Classic Backup" dialog for customizing the home-dir archive and providing status updates while it is running.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1#ifndef _LP_MAIN_H
2#define _LP_MAIN_H
3
4#include <QMainWindow>
5#include <QComboBox>
6#include <QToolButton>
7#include <QLabel>
8#include <QString>
9#include <QStringList>
10#include <QRadioButton>
11#include <QWidgetAction>
12#include <QFileSystemModel>
13#include <QInputDialog>
14#include <QDateTime>
15#include <QTimer>
16#include <QFileDialog>
17#include <QFileSystemWatcher>
18#include <QSettings>
19
20#include "LPBackend.h"
21#include "LPContainers.h"
22#include "LPGUtils.h"
23#include "LPWizard.h"
24#include "LPConfig.h"
25#include "LPClassic.h"
26
27namespace Ui{
28        class LPMain;
29};
30
31class LPMain : public QMainWindow{
32        Q_OBJECT
33public:
34        LPMain(QWidget *parent = 0);
35        ~LPMain();
36
37public slots:
38        void slotSingleInstance();
39
40private:
41        Ui::LPMain *ui;
42        QRadioButton *viewBasic, *viewAdvanced;
43        QFileSystemModel *fsModel;
44        bool poolSelected;
45        LPDataset POOLDATA;
46        QMessageBox *waitBox;
47        QFileSystemWatcher *watcher;
48        QTimer *timer;
49        QSettings *settings;
50        LPClassic *classicDLG;
51
52        void showErrorDialog(QString title, QString message, QString errors);
53        void showWaitBox(QString message);
54        void hideWaitBox();
55
56private slots:
57        void updatePoolList();  //re-load available pools
58        void viewChanged();
59        void updateTabs();      //load current pool info and update tabs
60        void updateDataset();  //restore dataset changed
61        void updateSnapshot(); //selected snapshot changed
62        void nextSnapshot();
63        void prevSnapshot();
64        void setFileVisibility();
65        void restoreFiles();
66        void openConfigGUI();
67        void autoRefresh();
68        // -- Menu Actions --
69        //File Menu
70        void menuAddPool(QAction*);
71        void menuRemovePool(QAction*);
72        void menuSaveSSHKey();
73        void menuCloseWindow();
74        //Classic Backups
75        void menuCompressHomeDir(QAction*);
76        void menuExtractHomeDir();
77        //Disk Menu
78        void menuAddDisk();
79        void menuRemoveDisk(QAction*);
80        void menuOfflineDisk(QAction*);
81        void menuOnlineDisk(QAction*);
82        void menuStartScrub();
83        void menuStopScrub();
84        //Snapshots Menu
85        void menuNewSnapshot();
86        void menuRemoveSnapshot(QAction*);
87
88protected:
89       
90};
91
92#endif
Note: See TracBrowser for help on using the repository browser.