Diffstat (limited to 'noncore/settings/packagemanager/oipkg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/packagemanager/oipkg.h | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/noncore/settings/packagemanager/oipkg.h b/noncore/settings/packagemanager/oipkg.h index 4e390fa..9a7802c 100644 --- a/noncore/settings/packagemanager/oipkg.h +++ b/noncore/settings/packagemanager/oipkg.h | |||
@@ -1,77 +1,76 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | 3 | ||
4 | Copyright (c) 2003 Dan Williams <drw@handhelds.org> | 4 | Copyright (C)2004, 2005 Dan Williams <drw@handhelds.org> |
5 | =. | 5 | =. |
6 | .=l. | 6 | .=l. |
7 | .>+-= | 7 | .>+-= |
8 | _;:, .> :=|. This program is free software; you can | 8 | _;:, .> :=|. This program is free software; you can |
9 | .> <`_, > . <= redistribute it and/or modify it under | 9 | .> <`_, > . <= redistribute it and/or modify it under |
10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | 10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
11 | .="- .-=="i, .._ License as published by the Free Software | 11 | .="- .-=="i, .._ License as published by the Free Software |
12 | - . .-<_> .<> Foundation; either version 2 of the License, | 12 | - . .-<_> .<> Foundation; either version 2 of the License, |
13 | ._= =} : or (at your option) any later version. | 13 | ._= =} : or (at your option) any later version. |
14 | .%`+i> _;_. | 14 | .%`+i> _;_. |
15 | .i_,=:_. -<s. This program is distributed in the hope that | 15 | .i_,=:_. -<s. This program is distributed in the hope that |
16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
17 | : .. .:, . . . without even the implied warranty of | 17 | : .. .:, . . . without even the implied warranty of |
18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
20 | ..}^=.= = ; Library General Public License for more | 20 | ..}^=.= = ; Library General Public License for more |
21 | ++= -. .` .: details. | 21 | ++= -. .` .: details. |
22 | : = ...= . :.=- | 22 | : = ...= . :.=- |
23 | -. .:....=;==+<; You should have received a copy of the GNU | 23 | -. .:....=;==+<; You should have received a copy of the GNU |
24 | -_. . . )=. = Library General Public License along with | 24 | -_. . . )=. = Library General Public License along with |
25 | -- :-=` this library; see the file COPYING.LIB. | 25 | -- :-=` this library; see the file COPYING.LIB. |
26 | If not, write to the Free Software Foundation, | 26 | If not, write to the Free Software Foundation, |
27 | Inc., 59 Temple Place - Suite 330, | 27 | Inc., 59 Temple Place - Suite 330, |
28 | Boston, MA 02111-1307, USA. | 28 | Boston, MA 02111-1307, USA. |
29 | |||
30 | */ | 29 | */ |
31 | 30 | ||
32 | #ifndef OIPKG_H | 31 | #ifndef OIPKG_H |
33 | #define OIPKG_H | 32 | #define OIPKG_H |
34 | 33 | ||
35 | #include "oconfitem.h" | 34 | #include "oconfitem.h" |
36 | #include "opackage.h" | 35 | #include "opackage.h" |
37 | 36 | ||
38 | #include <qpe/config.h> | 37 | #include <qpe/config.h> |
39 | 38 | ||
40 | #include <qobject.h> | 39 | #include <qobject.h> |
41 | 40 | ||
42 | // Ipkg execution options (m_ipkgExecOptions) | 41 | // Ipkg execution options (m_ipkgExecOptions) |
43 | #define FORCE_DEPENDS 0x0001 | 42 | #define FORCE_DEPENDS 0x0001 |
44 | #define FORCE_REMOVE 0x0002 | 43 | #define FORCE_REMOVE 0x0002 |
45 | #define FORCE_REINSTALL 0x0004 | 44 | #define FORCE_REINSTALL 0x0004 |
46 | #define FORCE_OVERWRITE 0x0008 | 45 | #define FORCE_OVERWRITE 0x0008 |
47 | 46 | ||
48 | class OConfItemList; | 47 | class OConfItemList; |
49 | 48 | ||
50 | class OIpkg : public QObject | 49 | class OIpkg : public QObject |
51 | { | 50 | { |
52 | Q_OBJECT | 51 | Q_OBJECT |
53 | 52 | ||
54 | public: | 53 | public: |
55 | OIpkg( Config *config = 0l, QObject *parent = 0l, const char *name = 0l ); | 54 | OIpkg( Config *config = 0l, QObject *parent = 0l, const char *name = 0l ); |
56 | ~OIpkg(); | 55 | ~OIpkg(); |
57 | 56 | ||
58 | OConfItemList *configItems(); | 57 | OConfItemList *configItems(); |
59 | OConfItemList *servers(); | 58 | OConfItemList *servers(); |
60 | OConfItemList *destinations(); | 59 | OConfItemList *destinations(); |
61 | OConfItemList *options(); | 60 | OConfItemList *options(); |
62 | 61 | ||
63 | int ipkgExecOptions() { return m_ipkgExecOptions; } | 62 | int ipkgExecOptions() { return m_ipkgExecOptions; } |
64 | int ipkgExecVerbosity() { return m_ipkgExecVerbosity; } | 63 | int ipkgExecVerbosity() { return m_ipkgExecVerbosity; } |
65 | 64 | ||
66 | void setConfigItems( OConfItemList *configList ); | 65 | void setConfigItems( OConfItemList *configList ); |
67 | void setIpkgExecOptions( int options ) { m_ipkgExecOptions = options; } | 66 | void setIpkgExecOptions( int options ) { m_ipkgExecOptions = options; } |
68 | void setIpkgExecVerbosity( int verbosity ) { m_ipkgExecVerbosity = verbosity; } | 67 | void setIpkgExecVerbosity( int verbosity ) { m_ipkgExecVerbosity = verbosity; } |
69 | 68 | ||
70 | void saveSettings(); | 69 | void saveSettings(); |
71 | 70 | ||
72 | OPackageList *availablePackages( const QString &server = QString::null ); | 71 | OPackageList *availablePackages( const QString &server = QString::null ); |
73 | OPackageList *installedPackages( const QString &destName = QString::null, | 72 | OPackageList *installedPackages( const QString &destName = QString::null, |
74 | const QString &destPath = QString::null ); | 73 | const QString &destPath = QString::null ); |
75 | 74 | ||
76 | OConfItem *findConfItem( OConfItem::Type type = OConfItem::NotDefined, | 75 | OConfItem *findConfItem( OConfItem::Type type = OConfItem::NotDefined, |
77 | const QString &name = QString::null ); | 76 | const QString &name = QString::null ); |