1 | /**************************************************************************** |
2 | ** |
3 | ** Copyright (C) 2010 Ralf Habacker ralf.habacker@freenet.de |
4 | ** |
5 | ** This file is part of the KDE installer for windows |
6 | ** |
7 | ** This library is free software; you can redistribute it and/or |
8 | ** modify it under the terms of the GNU Library General Public |
9 | ** License version 2 as published by the Free Software Foundation. |
10 | ** |
11 | ** This library is distributed in the hope that it will be useful, |
12 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | ** Library General Public License for more details. |
15 | ** |
16 | ** You should have received a copy of the GNU Library General Public License |
17 | ** along with this library; see the file COPYING.LIB. If not, write to |
18 | ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
19 | ** Boston, MA 02110-1301, USA. |
20 | ** |
21 | ****************************************************************************/ |
22 | |
23 | #ifndef INSTALLERENGINESINGLEPACKAGE_H |
24 | #define INSTALLERENGINESINGLEPACKAGE_H |
25 | |
26 | #include "installerengine.h" |
27 | |
28 | class InstallerEngineSinglePackage : public InstallerEngine |
29 | { |
30 | public: |
31 | InstallerEngineSinglePackage(); |
32 | |
33 | void setRoot(const QString &root); |
34 | bool withDevelopmentPackages() |
35 | { |
36 | return m_withDevelopmentPackages; |
37 | } |
38 | void setWithDevelopmentPackages(bool state) |
39 | { |
40 | m_withDevelopmentPackages = state; |
41 | } |
42 | bool downloadPackages(QList<Package*> &packagesToInstall); |
43 | bool installPackages(QList<Package*> &packagesToInstall); |
44 | |
45 | bool init(); |
46 | |
47 | private: |
48 | bool done; |
49 | bool m_withDevelopmentPackages; |
50 | }; |
51 | |
52 | #endif |
53 | |