Diffstat (limited to 'noncore/settings/aqpkg/networkpkgmgr.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/networkpkgmgr.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.h b/noncore/settings/aqpkg/networkpkgmgr.h index 66a8903..937c9b4 100644 --- a/noncore/settings/aqpkg/networkpkgmgr.h +++ b/noncore/settings/aqpkg/networkpkgmgr.h | |||
@@ -20,62 +20,69 @@ | |||
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" |
29 | class InstallData; | 29 | class InstallData; |
30 | 30 | ||
31 | /** NetworkPackageManager is the base class of the project */ | 31 | /** NetworkPackageManager is the base class of the project */ |
32 | class NetworkPackageManager : public QWidget | 32 | class NetworkPackageManager : public QWidget |
33 | { | 33 | { |
34 | Q_OBJECT | 34 | Q_OBJECT |
35 | public: | 35 | public: |
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( bool findNext ); | 43 | void searchForPackage( bool findNext ); |
44 | void showOnlyUninstalledPackages( bool val ); | ||
45 | void showOnlyInstalledPackages( bool val ); | ||
46 | void showUpgradedPackages( bool val ); | ||
47 | |||
44 | private: | 48 | private: |
45 | DataManager *dataMgr; | 49 | DataManager *dataMgr; |
46 | 50 | ||
47 | QComboBox *serversList; | 51 | QComboBox *serversList; |
48 | QListView *packagesList; | 52 | QListView *packagesList; |
49 | QPushButton *update; | 53 | QPushButton *update; |
50 | QPushButton *upgrade; | 54 | QPushButton *upgrade; |
51 | QPushButton *download; | 55 | QPushButton *download; |
52 | QPushButton *apply; | 56 | QPushButton *apply; |
53 | 57 | ||
54 | ProgressDlg *progressDlg; | 58 | ProgressDlg *progressDlg; |
55 | QString currentlySelectedServer; | 59 | QString currentlySelectedServer; |
56 | QString lastSearchText; | 60 | QString lastSearchText; |
57 | 61 | ||
58 | bool showJumpTo; | 62 | bool showJumpTo; |
63 | bool showUninstalledPkgs; | ||
64 | bool showInstalledPkgs; | ||
65 | bool showUpgradedPkgs; | ||
59 | int timerId; | 66 | int timerId; |
60 | 67 | ||
61 | void timerEvent ( QTimerEvent * ); | 68 | void timerEvent ( QTimerEvent * ); |
62 | 69 | ||
63 | void initGui(); | 70 | void initGui(); |
64 | void setupConnections(); | 71 | void setupConnections(); |
65 | void showProgressDialog( char *initialText ); | 72 | void showProgressDialog( char *initialText ); |
66 | void downloadSelectedPackages(); | 73 | void downloadSelectedPackages(); |
67 | void downloadRemotePackage(); | 74 | void downloadRemotePackage(); |
68 | InstallData dealWithItem( QCheckListItem *item ); | 75 | InstallData dealWithItem( QCheckListItem *item ); |
69 | QString stickyOption; | 76 | QString stickyOption; |
70 | 77 | ||
71 | public slots: | 78 | public slots: |
72 | void serverSelected( int index ); | 79 | void serverSelected( int index ); |
73 | void applyChanges(); | 80 | void applyChanges(); |
74 | void upgradePackages(); | 81 | void upgradePackages(); |
75 | void downloadPackage(); | 82 | void downloadPackage(); |
76 | void updateServer(); | 83 | void updateServer(); |
77 | void displayText( const QString &t ); | 84 | void displayText( const QString &t ); |
78 | void letterPushed( QString t ); | 85 | void letterPushed( QString t ); |
79 | }; | 86 | }; |
80 | 87 | ||
81 | #endif | 88 | #endif |