summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/mainwin.h
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/mainwin.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/aqpkg/mainwin.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/mainwin.h b/noncore/settings/aqpkg/mainwin.h
index 9f48321..615ff8b 100644
--- a/noncore/settings/aqpkg/mainwin.h
+++ b/noncore/settings/aqpkg/mainwin.h
@@ -37,24 +37,25 @@ class DataManager;
37class InstallData; 37class InstallData;
38class InstallDlgImpl; 38class InstallDlgImpl;
39 39
40class QAction; 40class QAction;
41class QCheckListItem; 41class QCheckListItem;
42class QComboBox; 42class QComboBox;
43class QLabel; 43class QLabel;
44class QLineEdit; 44class QLineEdit;
45class QListView; 45class QListView;
46class QListViewItem; 46class QListViewItem;
47class QToolBar; 47class QToolBar;
48class QProgressBar; 48class QProgressBar;
49class QPushButton;
49class QWidgetStack; 50class QWidgetStack;
50 51
51class MainWindow :public QMainWindow 52class MainWindow :public QMainWindow
52{ 53{
53 Q_OBJECT 54 Q_OBJECT
54public: 55public:
55 56
56 MainWindow(); 57 MainWindow();
57 ~MainWindow(); 58 ~MainWindow();
58 59
59protected: 60protected:
60 void closeEvent( QCloseEvent* e ); 61 void closeEvent( QCloseEvent* e );
@@ -142,13 +143,33 @@ private slots:
142 void init(); 143 void init();
143 void setProgressSteps( int ); 144 void setProgressSteps( int );
144 void setProgressMessage( const QString & ); 145 void setProgressMessage( const QString & );
145 void updateProgress( int ); 146 void updateProgress( int );
146 void serverSelected( int index ); 147 void serverSelected( int index );
147 void updateServer(); 148 void updateServer();
148 void upgradePackages(); 149 void upgradePackages();
149 void downloadPackage(); 150 void downloadPackage();
150 void applyChanges(); 151 void applyChanges();
151 void letterPushed( QString t ); 152 void letterPushed( QString t );
152 void slotDisplayPackage( QListViewItem * ); 153 void slotDisplayPackage( QListViewItem * );
153}; 154};
155
156class QuestionDlg : public QWidget
157{
158 Q_OBJECT
159public:
160 QuestionDlg( const QString &caption, const QString &text, const QString &secondbtn );
161
162 int exec();
163
164private:
165 QPushButton *btn1;
166 QPushButton *btn2;
167
168 bool executing;
169 int buttonpressed;
170
171private slots:
172 void slotButtonPressed();
173};
174
154#endif 175#endif