Diffstat (limited to 'noncore/unsupported/oipkg/pksettings.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/pksettings.h | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/noncore/unsupported/oipkg/pksettings.h b/noncore/unsupported/oipkg/pksettings.h index fbb3b99..1632d4a 100644 --- a/noncore/unsupported/oipkg/pksettings.h +++ b/noncore/unsupported/oipkg/pksettings.h | |||
@@ -2,10 +2,12 @@ | |||
2 | #define PACKAGEMANAGERSETTINGS_H | 2 | #define PACKAGEMANAGERSETTINGS_H |
3 | 3 | ||
4 | #include "pksettingsbase.h" | 4 | #include "pksettingsbase.h" |
5 | //#include "pmipkg.h" | ||
5 | #include <qintdict.h> | 6 | #include <qintdict.h> |
7 | #include <qobject.h> | ||
6 | 8 | ||
7 | 9 | ||
8 | class PackageManagerSettings : private PackageManagerSettingsBase | 10 | class PackageManagerSettings : public PackageManagerSettingsBase |
9 | { | 11 | { |
10 | // Q_OBJECT | 12 | // Q_OBJECT |
11 | public: | 13 | public: |
@@ -22,23 +24,8 @@ public: | |||
22 | QStringList getDestinationUrls(); | 24 | QStringList getDestinationUrls(); |
23 | QStringList getDestinationNames(); | 25 | QStringList getDestinationNames(); |
24 | QString getDestinationUrlByName(QString); | 26 | QString getDestinationUrlByName(QString); |
25 | /** No descriptions */ | ||
26 | QComboBox* getDestCombo(); | 27 | QComboBox* getDestCombo(); |
27 | 28 | // void setIpkg( PmIpkg* ); | |
28 | private: | ||
29 | QIntDict<QString> serverurlDic; | ||
30 | QIntDict<QString> destinationurlDic; | ||
31 | int ipkg_old; | ||
32 | int editedserver; | ||
33 | int editeddestination; | ||
34 | int currentSetting; | ||
35 | int installationSettingsCount; | ||
36 | bool changed; | ||
37 | |||
38 | bool readIpkgConfig(const QString&); | ||
39 | void writeIpkgConfig(const QString&); | ||
40 | void writeSettings(); | ||
41 | void readSettings(); | ||
42 | 29 | ||
43 | public slots: | 30 | public slots: |
44 | void writeInstallationSettings(); | 31 | void writeInstallationSettings(); |
@@ -46,7 +33,8 @@ public slots: | |||
46 | void writeCurrentInstallationSetting(); | 33 | void writeCurrentInstallationSetting(); |
47 | void readInstallationSetting(int); | 34 | void readInstallationSetting(int); |
48 | void installationSettingSetName(const QString &); | 35 | void installationSettingSetName(const QString &); |
49 | 36 | void removeLinksToDest(); | |
37 | void createLinksToDest(); | ||
50 | void newServer(); | 38 | void newServer(); |
51 | void editServer(int); | 39 | void editServer(int); |
52 | void removeDestination(); | 40 | void removeDestination(); |
@@ -63,6 +51,24 @@ public slots: | |||
63 | void removeInstallationSetting(); | 51 | void removeInstallationSetting(); |
64 | void renameInstallationSetting(); | 52 | void renameInstallationSetting(); |
65 | void activeServerChanged(); | 53 | void activeServerChanged(); |
54 | signals: | ||
55 | // void doCreateLinks( QString dest ); | ||
56 | // void doRemoveLinks( QString dest ); | ||
57 | |||
58 | private: | ||
59 | QIntDict<QString> serverurlDic; | ||
60 | QIntDict<QString> destinationurlDic; | ||
61 | int ipkg_old; | ||
62 | int editedserver; | ||
63 | int editeddestination; | ||
64 | int currentSetting; | ||
65 | int installationSettingsCount; | ||
66 | bool changed; | ||
67 | |||
68 | bool readIpkgConfig(const QString&); | ||
69 | void writeIpkgConfig(const QString&); | ||
70 | void writeSettings(); | ||
71 | void readSettings(); | ||
66 | }; | 72 | }; |
67 | 73 | ||
68 | #endif | 74 | #endif |