/
backupSplash.h
42 lines (32 loc) · 1.09 KB
/
backupSplash.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef BACKUPSPLASH_H
#define BACKUPSPLASH_H
#include "backupMain.h"
class backupSplash : public QWidget
{
Q_OBJECT
public:
backupSplash(QObject */*parent = 0*/);
virtual ~backupSplash();
void updateSettings(backupMain const &main);
bool startup(int argc,char **argv);
void executeBackups(bool runningInBackground);
void shutDown();
void updateTooltip();
bool keepRunning();
void checkQuit();
protected:
void closeEvent(QCloseEvent *event);
void paintEvent(QPaintEvent */*event*/);
void contextMenuEvent(QContextMenuEvent */*event*/);
void timerEvent(QTimerEvent */*event*/);
private slots:
void screenResizedSlot(int screen);
private:
bool active; // no Help, no Quit in startup message
bool interactive; // show main dialog
bool batch; // running in background with little icon
bool shutdown; // running on Close / Quit, shutting down
bool shtdwnwarning ; // warn if shutdown is set and app is not closed via menu
bool shtdwncontinue; // warning has been showed; proceed with shutdown
};
#endif // BACKUPSPLASH_H