summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/settings.h
authortille <tille>2002-04-23 11:16:45 (UTC)
committer tille <tille>2002-04-23 11:16:45 (UTC)
commita3205d9bf5570af8441ed81cd6d9eeadf22319c9 (patch) (unidiff)
treee2403e5dcc46906570cb070b852ee83d9a8af0b8 /noncore/unsupported/oipkg/settings.h
parent7e8db7f310d7a43326337a7960e59d9e313b8534 (diff)
downloadopie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.zip
opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.tar.gz
opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.tar.bz2
... mostly rewritten.
Diffstat (limited to 'noncore/unsupported/oipkg/settings.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/settings.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/settings.h b/noncore/unsupported/oipkg/settings.h
new file mode 100644
index 0000000..d4b1072
--- a/dev/null
+++ b/noncore/unsupported/oipkg/settings.h
@@ -0,0 +1,62 @@
1#ifndef PACKAGEMANAGERSETTINGS_H
2#define PACKAGEMANAGERSETTINGS_H
3
4#include "pksettingsbase.h"
5#include <qintdict.h>
6
7
8class PackageManagerSettings : private PackageManagerSettingsBase
9{
10 // Q_OBJECT
11public:
12 PackageManagerSettings( QWidget* , const char* , WFlags );
13 ~PackageManagerSettings();
14
15 bool showDialog( int ) ;
16 QString getDestinationUrl();
17 QString getDestinationName();
18 QString getLinkDestinationName();
19 bool createLinks();
20 QStringList getActiveServers();
21 QStringList getDestinationUrls();
22
23private:
24 QIntDict<QString> serverurlDic;
25 QIntDict<QString> destinationurlDic;
26 int ipkg_old;
27 int editedserver;
28 int editeddestination;
29 int currentSetting;
30 int installationSettingsCount;
31 bool changed;
32
33 bool readIpkgConfig(const QString&);
34 void writeIpkgConfig(const QString&);
35 void writeSettings();
36 void readSettings();
37
38public slots:
39 void writeInstallationSettings();
40 void readInstallationSettings();
41 void writeCurrentInstallationSetting();
42 void readInstallationSetting(int);
43 void installationSettingSetName(const QString &);
44
45 void newServer();
46 void editServer(int);
47 void removeDestination();
48 void newDestination();
49 void editDestination(int);
50 void linkEnabled(bool);
51 void removeServer();
52 void serverNameChanged(const QString&);
53 void serverUrlChanged(const QString&);
54 void destNameChanged(const QString&);
55 void destUrlChanged(const QString&);
56 void installationSettingChange(int);
57 void newInstallationSetting();
58 void removeInstallationSetting();
59 void renameInstallationSetting();
60};
61
62#endif