summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/interfaces/interfaces.h
authorkergoth <kergoth>2003-04-14 23:27:22 (UTC)
committer kergoth <kergoth>2003-04-14 23:27:22 (UTC)
commit68c558ca78e5416145b64ca87fd01361f033ef34 (patch) (side-by-side diff)
tree53287d7a641fc37d4f52e0e13dfb576149e41f8e /noncore/settings/networksettings/interfaces/interfaces.h
parent9c0ba9922e12081ba87cce6583fe413ab5794cf6 (diff)
downloadopie-68c558ca78e5416145b64ca87fd01361f033ef34.zip
opie-68c558ca78e5416145b64ca87fd01361f033ef34.tar.gz
opie-68c558ca78e5416145b64ca87fd01361f033ef34.tar.bz2
Add remove methods which do not require that you pass the current value of the option, to avoid having to retain that information unnecessarily
Diffstat (limited to 'noncore/settings/networksettings/interfaces/interfaces.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/interfaces/interfaces.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/interfaces/interfaces.h b/noncore/settings/networksettings/interfaces/interfaces.h
index bac2a7e..bc9eaaa 100644
--- a/noncore/settings/networksettings/interfaces/interfaces.h
+++ b/noncore/settings/networksettings/interfaces/interfaces.h
@@ -41,6 +41,7 @@ public:
bool setInterfaceMethod(const QString &newName);
QString getInterfaceOption(const QString &option, bool &error);
bool setInterfaceOption(const QString &option, const QString &value);
+ bool removeInterfaceOption(const QString &option);
bool removeInterfaceOption(const QString &option, const QString &value);
bool removeAllInterfaceOptions();
@@ -60,6 +61,7 @@ private:
bool removeStanza(QStringList::Iterator &stanza);
bool setOption(const QStringList::Iterator &start, const QString &option, const QString &value);
bool removeAllOptions(const QStringList::Iterator &start);
+ bool removeOption(const QStringList::Iterator &start, const QString &option);
bool removeOption(const QStringList::Iterator &start, const QString &option, const QString &value);
QString getOption(const QStringList::Iterator &start, const QString &option, bool &error);