Diffstat (limited to 'noncore/settings/aqpkg/networkpkgmgr.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/networkpkgmgr.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.h b/noncore/settings/aqpkg/networkpkgmgr.h index 46919d7..2206c81 100644 --- a/noncore/settings/aqpkg/networkpkgmgr.h +++ b/noncore/settings/aqpkg/networkpkgmgr.h | |||
@@ -23,24 +23,26 @@ | |||
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 | |||
29 | class InstallData; | 30 | class InstallData; |
30 | 31 | ||
31 | /** NetworkPackageManager is the base class of the project */ | 32 | /** NetworkPackageManager is the base class of the project */ |
32 | class NetworkPackageManager : public QWidget | 33 | class NetworkPackageManager : public QWidget |
33 | { | 34 | { |
34 | Q_OBJECT | 35 | Q_OBJECT |
35 | public: | 36 | public: |
36 | /** construtor */ | 37 | /** construtor */ |
37 | NetworkPackageManager( DataManager *dataManager, QWidget* parent=0, const char *name=0); | 38 | NetworkPackageManager( QWidget* parent=0, const char *name=0 ); |
38 | /** destructor */ | 39 | /** destructor */ |
39 | ~NetworkPackageManager(); | 40 | ~NetworkPackageManager(); |
40 | 41 | ||
42 | void setDataManager( DataManager *dm ); | ||
41 | void selectLocalPackage( const QString &pkg ); | 43 | void selectLocalPackage( const QString &pkg ); |
42 | void updateData(); | 44 | void updateData(); |
43 | void searchForPackage( bool findNext ); | 45 | void searchForPackage( bool findNext ); |
44 | void showOnlyUninstalledPackages( bool val ); | 46 | void showOnlyUninstalledPackages( bool val ); |
45 | void showOnlyInstalledPackages( bool val ); | 47 | void showOnlyInstalledPackages( bool val ); |
46 | void showUpgradedPackages( bool val ); | 48 | void showUpgradedPackages( bool val ); |
@@ -64,29 +66,35 @@ private: | |||
64 | 66 | ||
65 | bool categoryFilterEnabled; | 67 | bool categoryFilterEnabled; |
66 | bool showJumpTo; | 68 | bool showJumpTo; |
67 | bool showUninstalledPkgs; | 69 | bool showUninstalledPkgs; |
68 | bool showInstalledPkgs; | 70 | bool showInstalledPkgs; |
69 | bool showUpgradedPkgs; | 71 | bool showUpgradedPkgs; |
70 | int timerId; | ||
71 | |||
72 | void timerEvent ( QTimerEvent * ); | ||
73 | 72 | ||
74 | void initGui(); | 73 | void initGui(); |
75 | void setupConnections(); | 74 | void setupConnections(); |
76 | void showProgressDialog( char *initialText ); | 75 | void showProgressDialog( char *initialText ); |
77 | void downloadSelectedPackages(); | 76 | void downloadSelectedPackages(); |
78 | void downloadRemotePackage(); | 77 | void downloadRemotePackage(); |
78 | void serverSelected( int index, bool showProgress ); | ||
79 | |||
79 | InstallData dealWithItem( QCheckListItem *item ); | 80 | InstallData dealWithItem( QCheckListItem *item ); |
80 | QString stickyOption; | 81 | QString stickyOption; |
81 | 82 | ||
83 | signals: | ||
84 | void appRaiseMainWidget(); | ||
85 | void appRaiseProgressWidget(); | ||
86 | void progressSetSteps( int ); | ||
87 | void progressSetMessage( const QString & ); | ||
88 | void progressUpdate( int ); | ||
89 | |||
82 | public slots: | 90 | public slots: |
83 | void serverSelected( int index ); | ||
84 | void applyChanges(); | 91 | void applyChanges(); |
85 | void upgradePackages(); | 92 | void upgradePackages(); |
86 | void downloadPackage(); | 93 | void downloadPackage(); |
87 | void updateServer(); | 94 | void updateServer(); |
88 | void displayText( const QString &t ); | 95 | void displayText( const QString &t ); |
89 | void letterPushed( QString t ); | 96 | void letterPushed( QString t ); |
97 | void serverSelected( int index ); | ||
90 | }; | 98 | }; |
91 | 99 | ||
92 | #endif | 100 | #endif |