diff options
Diffstat (limited to 'rbutil/rbutilqt/uninstall.h')
-rw-r--r-- | rbutil/rbutilqt/uninstall.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/uninstall.h b/rbutil/rbutilqt/uninstall.h new file mode 100644 index 0000000000..93040eab12 --- /dev/null +++ b/rbutil/rbutilqt/uninstall.h | |||
@@ -0,0 +1,65 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2007 by Dominik Wenger | ||
10 | * $Id: uninstall.h 13990 2007-07-25 22:26:10Z Dominik Wenger $ | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | |||
21 | #ifndef UNINSTALL_H | ||
22 | #define UNINSTALL_H | ||
23 | |||
24 | |||
25 | |||
26 | #include <QtGui> | ||
27 | |||
28 | |||
29 | #include "progressloggerinterface.h" | ||
30 | |||
31 | |||
32 | class Uninstaller : public QObject | ||
33 | { | ||
34 | Q_OBJECT | ||
35 | public: | ||
36 | Uninstaller(QObject* parent,QString mountpoint) ; | ||
37 | ~Uninstaller(){} | ||
38 | |||
39 | void deleteAll(ProgressloggerInterface* dp); | ||
40 | void uninstall(ProgressloggerInterface* dp); | ||
41 | |||
42 | bool uninstallPossible(); | ||
43 | |||
44 | QStringList getAllSections(); | ||
45 | |||
46 | void setSections(QStringList sections) {uninstallSections = sections;} | ||
47 | |||
48 | |||
49 | private slots: | ||
50 | |||
51 | |||
52 | private: | ||
53 | bool recRmdir( QString &dirName ); | ||
54 | |||
55 | QString m_mountpoint; | ||
56 | |||
57 | QStringList uninstallSections; | ||
58 | |||
59 | ProgressloggerInterface* m_dp; | ||
60 | }; | ||
61 | |||
62 | |||
63 | |||
64 | #endif | ||
65 | |||