Diffstat (limited to 'noncore/settings/packagemanager/installdlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/packagemanager/installdlg.h | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/noncore/settings/packagemanager/installdlg.h b/noncore/settings/packagemanager/installdlg.h index e633809..a41a38f 100644 --- a/noncore/settings/packagemanager/installdlg.h +++ b/noncore/settings/packagemanager/installdlg.h | |||
@@ -1,75 +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 | .=l. | 5 | =. |
6 | .>+-= | 6 | .=l. |
7 | _;:, .> :=|. This file is free software; you can | 7 | .>+-= |
8 | .> <`_, > . <= redistribute it and/or modify it under | 8 | _;:, .> :=|. This program is free software; you can |
9 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 9 | .> <`_, > . <= redistribute it and/or modify it under |
10 | .="- .-=="i, .._ License as published by the Free Software | 10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public |
11 | - . .-<_> .<> Foundation; either version 2 of the License, | 11 | .="- .-=="i, .._ License as published by the Free Software |
12 | ._= =} : or (at your option) any later version. | 12 | - . .-<_> .<> Foundation; either version 2 of the License, |
13 | .%`+i> _;_. | 13 | ._= =} : or (at your option) any later version. |
14 | .i_,=:_. -<s. This file is distributed in the hope that | 14 | .%`+i> _;_. |
15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 15 | .i_,=:_. -<s. This program is distributed in the hope that |
16 | : .. .:, . . . without even the implied warranty of | 16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 17 | : .. .:, . . . without even the implied warranty of |
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
19 | ..}^=.= = ; Public License for more details. | 19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
20 | ++= -. .` .: | 20 | ..}^=.= = ; Library General Public License for more |
21 | : = ...= . :.=- You should have received a copy of the GNU | 21 | ++= -. .` .: details. |
22 | -. .:....=;==+<; General Public License along with this file; | 22 | : = ...= . :.=- |
23 | -_. . . )=. = see the file COPYING. If not, write to the | 23 | -. .:....=;==+<; You should have received a copy of the GNU |
24 | -- :-=` Free Software Foundation, Inc., | 24 | -_. . . )=. = Library General Public License along with |
25 | 59 Temple Place - Suite 330, | 25 | -- :-=` this library; see the file COPYING.LIB. |
26 | If not, write to the Free Software Foundation, | ||
27 | Inc., 59 Temple Place - Suite 330, | ||
26 | Boston, MA 02111-1307, USA. | 28 | Boston, MA 02111-1307, USA. |
27 | |||
28 | */ | 29 | */ |
29 | 30 | ||
30 | #ifndef INSTALLDLG_H | 31 | #ifndef INSTALLDLG_H |
31 | #define INSTALLDLG_H | 32 | #define INSTALLDLG_H |
32 | 33 | ||
33 | #include <qwidget.h> | 34 | #include <qwidget.h> |
34 | 35 | ||
35 | #include "opackage.h" | 36 | #include "opackage.h" |
36 | 37 | ||
37 | class QComboBox; | 38 | class QComboBox; |
38 | class QLabel; | 39 | class QLabel; |
39 | class QMultiLineEdit; | 40 | class QMultiLineEdit; |
40 | class QPushButton; | 41 | class QPushButton; |
41 | 42 | ||
42 | class OConfItem; | 43 | class OConfItem; |
43 | class OPackageManager; | 44 | class OPackageManager; |
44 | 45 | ||
45 | class InstallDlg : public QWidget | 46 | class InstallDlg : public QWidget |
46 | { | 47 | { |
47 | Q_OBJECT | 48 | Q_OBJECT |
48 | 49 | ||
49 | public: | 50 | public: |
50 | InstallDlg( QWidget *parent = 0l, OPackageManager *pm = 0l, | 51 | InstallDlg( QWidget *parent = 0l, OPackageManager *pm = 0l, |
51 | const QString &caption = QString::null, | 52 | const QString &caption = QString::null, |
52 | OPackage::Command command1 = OPackage::NotDefined, | 53 | OPackage::Command command1 = OPackage::NotDefined, |
53 | const QStringList &packages1 = QStringList(), | 54 | const QStringList &packages1 = QStringList(), |
54 | OPackage::Command command2 = OPackage::NotDefined, | 55 | OPackage::Command command2 = OPackage::NotDefined, |
55 | const QStringList &packages2 = QStringList(), | 56 | const QStringList &packages2 = QStringList(), |
56 | OPackage::Command command3 = OPackage::NotDefined, | 57 | OPackage::Command command3 = OPackage::NotDefined, |
57 | const QStringList &packages3 = QStringList() ); | 58 | const QStringList &packages3 = QStringList() ); |
58 | 59 | ||
59 | private: | 60 | private: |
60 | OPackageManager *m_packman; // Pointer to application instance of package manager | 61 | OPackageManager *m_packman; // Pointer to application instance of package manager |
61 | 62 | ||
62 | bool m_installFound; // Indicates if an install is being done, controls display of | 63 | bool m_installFound; // Indicates if an install is being done, controls display of |
63 | // destination selection, available space | 64 | // destination selection, available space |
64 | 65 | ||
65 | // UI controls | 66 | // UI controls |
66 | QComboBox *m_destination; // Destination selection list | 67 | QComboBox *m_destination; // Destination selection list |
67 | QLabel *m_availSpace; // Text label to display available space on selected destination | 68 | QLabel *m_availSpace; // Text label to display available space on selected destination |
68 | QMultiLineEdit *m_output; // Multi-line edit to display status | 69 | QMultiLineEdit *m_output; // Multi-line edit to display status |
69 | QPushButton *m_btnStart; // Start/abort/close button | 70 | QPushButton *m_btnStart; // Start/abort/close button |
70 | QPushButton *m_btnOptions; // Installation options button | 71 | QPushButton *m_btnOptions; // Installation options button |
71 | 72 | ||
72 | // Commands and packages to execute | 73 | // Commands and packages to execute |
73 | int m_numCommands; // Number of commands to be executed | 74 | int m_numCommands; // Number of commands to be executed |
74 | int m_currCommand; // Number of currently executing command | 75 | int m_currCommand; // Number of currently executing command |
75 | OPackage::Command m_command[3]; // List of commands to be executed | 76 | OPackage::Command m_command[3]; // List of commands to be executed |