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.h100
1 files changed, 0 insertions, 100 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.h b/noncore/settings/aqpkg/networkpkgmgr.h
deleted file mode 100644
index 99eff2e..0000000
--- a/noncore/settings/aqpkg/networkpkgmgr.h
+++ b/dev/null
@@ -1,100 +0,0 @@
1/***************************************************************************
2 networkpkgmgr.h - description
3 -------------------
4 begin : Mon Aug 26 13:32:30 BST 2002
5 copyright : (C) 2002 by Andy Qua
6 email : andy.qua@blueyonder.co.uk
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef NETWORKPKGMGR_H
19#define NETWORKPKGMGR_H
20
21#include <qlayout.h>
22#include <qpixmap.h>
23#include <qpushbutton.h>
24#include <qwidget.h>
25#include <qcombobox.h>
26#include <qlistview.h>
27
28#include "datamgr.h"
29
30class InstallData;
31
32/** NetworkPackageManager is the base class of the project */
33class NetworkPackageManager : public QWidget
34{
35 Q_OBJECT
36public:
37 /** construtor */
38 NetworkPackageManager( QWidget* parent=0, const char *name=0 );
39 /** destructor */
40 ~NetworkPackageManager();
41
42 void setDataManager( DataManager *dm );
43 void selectLocalPackage( const QString &pkg );
44 void updateData();
45 void searchForPackage( const QString & );
46 void showOnlyUninstalledPackages( bool val );
47 void showOnlyInstalledPackages( bool val );
48 void showUpgradedPackages( bool val );
49 bool filterByCategory( bool val );
50 bool setFilterCategory();
51
52private:
53 DataManager *dataMgr;
54
55 QComboBox *serversList;
56 QListView *packagesList;
57
58 QPixmap installedIcon;
59 QPixmap updatedIcon;
60
61 QString currentlySelectedServer;
62 QString categoryFilter;
63
64 bool categoryFilterEnabled;
65 bool showJumpTo;
66 bool showUninstalledPkgs;
67 bool showInstalledPkgs;
68 bool showUpgradedPkgs;
69
70 bool downloadEnabled;
71
72 void initGui();
73 void showProgressDialog( char *initialText );
74 void downloadSelectedPackages();
75 void downloadRemotePackage();
76 void serverSelected( int index, bool showProgress );
77
78 InstallData dealWithItem( QCheckListItem *item );
79 QString stickyOption;
80
81signals:
82 void appRaiseMainWidget();
83 void appRaiseProgressWidget();
84 void appEnableUpgrade( bool );
85 void appEnableDownload( bool );
86 void progressSetSteps( int );
87 void progressSetMessage( const QString & );
88 void progressUpdate( int );
89
90public slots:
91 void applyChanges();
92 void upgradePackages();
93 void downloadPackage();
94 void updateServer();
95 void displayText( const QString &t );
96 void letterPushed( QString t );
97 void serverSelected( int index );
98};
99
100#endif