diff options
Diffstat (limited to 'utils/rbutilqt/base/uninstall.h')
-rw-r--r-- | utils/rbutilqt/base/uninstall.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/utils/rbutilqt/base/uninstall.h b/utils/rbutilqt/base/uninstall.h new file mode 100644 index 0000000000..d8c9815117 --- /dev/null +++ b/utils/rbutilqt/base/uninstall.h | |||
@@ -0,0 +1,63 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2007 by Dominik Wenger | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or | ||
12 | * modify it under the terms of the GNU General Public License | ||
13 | * as published by the Free Software Foundation; either version 2 | ||
14 | * of the License, or (at your option) any later version. | ||
15 | * | ||
16 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
17 | * KIND, either express or implied. | ||
18 | * | ||
19 | ****************************************************************************/ | ||
20 | |||
21 | |||
22 | #ifndef UNINSTALL_H | ||
23 | #define UNINSTALL_H | ||
24 | |||
25 | #include <QtCore> | ||
26 | |||
27 | #include "progressloggerinterface.h" | ||
28 | |||
29 | |||
30 | class Uninstaller : public QObject | ||
31 | { | ||
32 | Q_OBJECT | ||
33 | public: | ||
34 | Uninstaller(QObject* parent,QString mountpoint) ; | ||
35 | ~Uninstaller(){} | ||
36 | |||
37 | void deleteAll(void); | ||
38 | void uninstall(void); | ||
39 | |||
40 | bool uninstallPossible(); | ||
41 | |||
42 | QStringList getAllSections(); | ||
43 | |||
44 | void setSections(QStringList sections) {uninstallSections = sections;} | ||
45 | |||
46 | signals: | ||
47 | void logItem(QString, int); //! set logger item | ||
48 | void logProgress(int, int); //! set progress bar. | ||
49 | void logFinished(void); | ||
50 | |||
51 | private slots: | ||
52 | |||
53 | |||
54 | private: | ||
55 | QString m_mountpoint; | ||
56 | |||
57 | QStringList uninstallSections; | ||
58 | }; | ||
59 | |||
60 | |||
61 | |||
62 | #endif | ||
63 | |||