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) (side-by-side diff)
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 @@
+#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