summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/networkpkgmgr.h
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/networkpkgmgr.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/networkpkgmgr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.h b/noncore/settings/aqpkg/networkpkgmgr.h
index 3a111ff..20f6e2d 100644
--- a/noncore/settings/aqpkg/networkpkgmgr.h
+++ b/noncore/settings/aqpkg/networkpkgmgr.h
@@ -19,60 +19,61 @@
19#define NETWORKPKGMGR_H 19#define NETWORKPKGMGR_H
20 20
21#include <qlayout.h> 21#include <qlayout.h>
22#include <qpushbutton.h> 22#include <qpushbutton.h>
23#include <qwidget.h> 23#include <qwidget.h>
24#include <qcombobox.h> 24#include <qcombobox.h>
25#include <qlistview.h> 25#include <qlistview.h>
26 26
27#include "datamgr.h" 27#include "datamgr.h"
28#include "progressdlg.h" 28#include "progressdlg.h"
29class InstallData; 29class InstallData;
30 30
31/** NetworkPackageManager is the base class of the project */ 31/** NetworkPackageManager is the base class of the project */
32class NetworkPackageManager : public QWidget 32class NetworkPackageManager : public QWidget
33{ 33{
34 Q_OBJECT 34 Q_OBJECT
35public: 35public:
36 /** construtor */ 36 /** construtor */
37 NetworkPackageManager( DataManager *dataManager, QWidget* parent=0, const char *name=0); 37 NetworkPackageManager( DataManager *dataManager, QWidget* parent=0, const char *name=0);
38 /** destructor */ 38 /** destructor */
39 ~NetworkPackageManager(); 39 ~NetworkPackageManager();
40 40
41 void selectLocalPackage( const QString &pkg ); 41 void selectLocalPackage( const QString &pkg );
42 void updateData(); 42 void updateData();
43 void searchForPackage(); 43 void searchForPackage( bool findNext );
44private: 44private:
45 DataManager *dataMgr; 45 DataManager *dataMgr;
46 46
47 QComboBox *serversList; 47 QComboBox *serversList;
48 QListView *packagesList; 48 QListView *packagesList;
49 QPushButton *update; 49 QPushButton *update;
50 QPushButton *upgrade; 50 QPushButton *upgrade;
51 QPushButton *download; 51 QPushButton *download;
52 QPushButton *apply; 52 QPushButton *apply;
53 53
54 ProgressDlg *progressDlg; 54 ProgressDlg *progressDlg;
55 QString currentlySelectedServer; 55 QString currentlySelectedServer;
56 QString lastSearchText;
56 57
57 bool showJumpTo; 58 bool showJumpTo;
58 int timerId; 59 int timerId;
59 60
60 void timerEvent ( QTimerEvent * ); 61 void timerEvent ( QTimerEvent * );
61 62
62 void initGui(); 63 void initGui();
63 void setupConnections(); 64 void setupConnections();
64 void showProgressDialog( char *initialText ); 65 void showProgressDialog( char *initialText );
65 InstallData dealWithItem( QCheckListItem *item ); 66 InstallData dealWithItem( QCheckListItem *item );
66 QString stickyOption; 67 QString stickyOption;
67 68
68public slots: 69public slots:
69 void serverSelected( int index ); 70 void serverSelected( int index );
70 void applyChanges(); 71 void applyChanges();
71 void upgradePackages(); 72 void upgradePackages();
72 void downloadPackage(); 73 void downloadPackage();
73 void updateServer(); 74 void updateServer();
74 void displayText( const QString &t ); 75 void displayText( const QString &t );
75 void letterPushed( QString t ); 76 void letterPushed( QString t );
76}; 77};
77 78
78#endif 79#endif