summaryrefslogtreecommitdiff
path: root/noncore/settings/packagemanager/installdlg.h
Unidiff
Diffstat (limited to 'noncore/settings/packagemanager/installdlg.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/packagemanager/installdlg.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/noncore/settings/packagemanager/installdlg.h b/noncore/settings/packagemanager/installdlg.h
index 7a64fe0..e633809 100644
--- a/noncore/settings/packagemanager/installdlg.h
+++ b/noncore/settings/packagemanager/installdlg.h
@@ -21,81 +21,72 @@ _;:, .> :=|. This file is free software; you can
21: = ...= . :.=- You should have received a copy of the GNU 21: = ...= . :.=- You should have received a copy of the GNU
22-. .:....=;==+<; General Public License along with this file; 22-. .:....=;==+<; General Public License along with this file;
23 -_. . . )=. = see the file COPYING. If not, write to the 23 -_. . . )=. = see the file COPYING. If not, write to the
24 -- :-=` Free Software Foundation, Inc., 24 -- :-=` Free Software Foundation, Inc.,
25 59 Temple Place - Suite 330, 25 59 Temple Place - Suite 330,
26 Boston, MA 02111-1307, USA. 26 Boston, MA 02111-1307, USA.
27 27
28*/ 28*/
29 29
30#ifndef INSTALLDLG_H 30#ifndef INSTALLDLG_H
31#define INSTALLDLG_H 31#define INSTALLDLG_H
32 32
33#include <qwidget.h> 33#include <qwidget.h>
34 34
35#include "opackage.h" 35#include "opackage.h"
36 36
37class QComboBox; 37class QComboBox;
38class QLabel; 38class QLabel;
39class QMultiLineEdit; 39class QMultiLineEdit;
40class QPushButton; 40class QPushButton;
41 41
42class OConfItem; 42class OConfItem;
43class OPackageManager; 43class OPackageManager;
44 44
45namespace Opie
46{
47 namespace Core
48 {
49 class OProcess;
50 }
51}
52
53class InstallDlg : public QWidget 45class InstallDlg : public QWidget
54{ 46{
55 Q_OBJECT 47 Q_OBJECT
56 48
57public: 49public:
58 InstallDlg( QWidget *parent = 0l, OPackageManager *pm = 0l, 50 InstallDlg( QWidget *parent = 0l, OPackageManager *pm = 0l,
59 const QString &caption = QString::null, 51 const QString &caption = QString::null,
60 OPackage::Command command1 = OPackage::NotDefined, 52 OPackage::Command command1 = OPackage::NotDefined,
61 const QStringList &packages1 = QStringList(), 53 const QStringList &packages1 = QStringList(),
62 OPackage::Command command2 = OPackage::NotDefined, 54 OPackage::Command command2 = OPackage::NotDefined,
63 const QStringList &packages2 = QStringList(), 55 const QStringList &packages2 = QStringList(),
64 OPackage::Command command3 = OPackage::NotDefined, 56 OPackage::Command command3 = OPackage::NotDefined,
65 const QStringList &packages3 = QStringList() ); 57 const QStringList &packages3 = QStringList() );
66 58
67private: 59private:
68 OPackageManager *m_packman; // Pointer to application instance of package manager 60 OPackageManager *m_packman; // Pointer to application instance of package manager
69 61
70 bool m_installFound; // Indicates if an install is being done, controls display of 62 bool m_installFound; // Indicates if an install is being done, controls display of
71 // destination selection, available space 63 // destination selection, available space
72 64
73 // UI controls 65 // UI controls
74 QComboBox *m_destination; // Destination selection list 66 QComboBox *m_destination; // Destination selection list
75 QLabel *m_availSpace; // Text label to display available space on selected destination 67 QLabel *m_availSpace; // Text label to display available space on selected destination
76 QMultiLineEdit *m_output; // Multi-line edit to display status 68 QMultiLineEdit *m_output; // Multi-line edit to display status
77 QPushButton *m_btnStart; // Start/abort/close button 69 QPushButton *m_btnStart; // Start/abort/close button
78 QPushButton *m_btnOptions; // Installation options button 70 QPushButton *m_btnOptions; // Installation options button
79 71
80 // Commands and packages to execute 72 // Commands and packages to execute
81 int m_numCommands; // Number of commands to be executed 73 int m_numCommands; // Number of commands to be executed
82 int m_currCommand; // Number of currently executing command 74 int m_currCommand; // Number of currently executing command
83 OPackage::Command m_command[3]; // List of commands to be executed 75 OPackage::Command m_command[3]; // List of commands to be executed
84 QStringList m_packages[3]; // Lists of package names associated to commands (m_command[]) 76 QStringList m_packages[3]; // Lists of package names associated to commands (m_command[])
85 OConfItem *m_destItem; // Pointer to destination for package installation 77 OConfItem *m_destItem; // Pointer to destination for package installation
86 78
87private slots: 79private slots:
88 // UI control slots 80 // UI control slots
89 void slotDisplayAvailSpace( const QString &destination ); 81 void slotDisplayAvailSpace( const QString &destination );
90 void slotBtnStart(); 82 void slotBtnStart();
91 void slotBtnOptions(); 83 void slotBtnOptions();
92 void slotProcessDone( Opie::Core::OProcess *proc );
93 84
94 // Execution slots 85 // Execution slots
95 void slotOutput( char *msg ); 86 void slotOutput( const QString &msg );
96 87
97signals: 88signals:
98 void closeInstallDlg(); 89 void closeInstallDlg();
99}; 90};
100 91
101#endif 92#endif