author | tille <tille> | 2002-04-23 11:16:45 (UTC) |
---|---|---|
committer | tille <tille> | 2002-04-23 11:16:45 (UTC) |
commit | a3205d9bf5570af8441ed81cd6d9eeadf22319c9 (patch) (side-by-side diff) | |
tree | e2403e5dcc46906570cb070b852ee83d9a8af0b8 /noncore/unsupported/oipkg/pksettings.h | |
parent | 7e8db7f310d7a43326337a7960e59d9e313b8534 (diff) | |
download | opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.zip opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.tar.gz opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.tar.bz2 |
... mostly rewritten.
Diffstat (limited to 'noncore/unsupported/oipkg/pksettings.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/pksettings.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/pksettings.h b/noncore/unsupported/oipkg/pksettings.h new file mode 100644 index 0000000..cda352a --- a/dev/null +++ b/noncore/unsupported/oipkg/pksettings.h @@ -0,0 +1,62 @@ +#ifndef PACKAGEMANAGERSETTINGS_H +#define PACKAGEMANAGERSETTINGS_H + +#include "pksettingsbase.h" +#include <qintdict.h> + + +class PackageManagerSettings : private PackageManagerSettingsBase +{ +// Q_OBJECT +public: + PackageManagerSettings( QWidget* , const char* , WFlags ); + ~PackageManagerSettings(); + + bool showDialog( int ) ; + QString getDestinationUrl(); + QString getDestinationName(); + QString getLinkDestinationName(); + bool createLinks(); + QStringList getActiveServers(); + QStringList getDestinationUrls(); + +private: + QIntDict<QString> serverurlDic; + QIntDict<QString> destinationurlDic; + int ipkg_old; + int editedserver; + int editeddestination; + int currentSetting; + int installationSettingsCount; + bool changed; + + bool readIpkgConfig(const QString&); + void writeIpkgConfig(const QString&); + void writeSettings(); + void readSettings(); + +public slots: + void writeInstallationSettings(); + void readInstallationSettings(); + void writeCurrentInstallationSetting(); + void readInstallationSetting(int); + void installationSettingSetName(const QString &); + + void newServer(); + void editServer(int); + void removeDestination(); + void newDestination(); + void editDestination(int); + void linkEnabled(bool); + void removeServer(); + void serverNameChanged(const QString&); + void serverUrlChanged(const QString&); + void destNameChanged(const QString&); + void destUrlChanged(const QString&); + void installationSettingChange(int); + void newInstallationSetting(); + void removeInstallationSetting(); + void renameInstallationSetting(); +}; + +#endif |