Diffstat (limited to 'noncore/unsupported/oipkg/settings.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/settings.h | 62 |
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 | |||
8 | class PackageManagerSettings : private PackageManagerSettingsBase | ||
9 | { | ||
10 | // Q_OBJECT | ||
11 | public: | ||
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 | |||
23 | private: | ||
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 | |||
38 | public 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 | ||