summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/interfaces.h
Unidiff
Diffstat (limited to 'noncore/net/networksetup/interfaces.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/interfaces.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/net/networksetup/interfaces.h b/noncore/net/networksetup/interfaces.h
index 7cf04f0..e09ea71 100644
--- a/noncore/net/networksetup/interfaces.h
+++ b/noncore/net/networksetup/interfaces.h
@@ -32,38 +32,42 @@ public:
32 bool addInterface(QString interface, QString family, QString method); 32 bool addInterface(QString interface, QString family, QString method);
33 bool copyInterface(QString oldInterface, QString newInterface); 33 bool copyInterface(QString oldInterface, QString newInterface);
34 bool setInterface(QString interface); 34 bool setInterface(QString interface);
35 bool isInterfaceSet(); 35 bool isInterfaceSet();
36 QString getInterfaceName(bool &error); 36 QString getInterfaceName(bool &error);
37 bool setInterfaceName(QString newName); 37 bool setInterfaceName(QString newName);
38 QString getInterfaceFamily(bool &error); 38 QString getInterfaceFamily(bool &error);
39 bool setInterfaceFamily(QString newName); 39 bool setInterfaceFamily(QString newName);
40 QString getInterfaceMethod(bool &error); 40 QString getInterfaceMethod(bool &error);
41 bool setInterfaceMethod(QString newName); 41 bool setInterfaceMethod(QString newName);
42 QString getInterfaceOption(QString option, bool &error); 42 QString getInterfaceOption(QString option, bool &error);
43 bool setInterfaceOption(QString option, QString value); 43 bool setInterfaceOption(QString option, QString value);
44 bool removeInterfaceOption(QString option, QString value);
44 bool removeAllInterfaceOptions(); 45 bool removeAllInterfaceOptions();
45 46
46 bool setMapping(QString interface); 47 bool setMapping(QString interface);
48 bool removeMapping();
47 void addMapping(QString options); 49 void addMapping(QString options);
48 bool setMap(QString map, QString value); 50 bool setMap(QString map, QString value);
51 bool removeMap(QString map, QString value);
49 QString getMap(QString map, bool &error); 52 QString getMap(QString map, bool &error);
50 bool setScript(QString); 53 bool setScript(QString);
51 QString getScript(bool &error); 54 QString getScript(bool &error);
52 55
53 bool write(); 56 bool write();
54 57
55private: 58private:
56 bool setStanza(QString stanza, QString option,QStringList::Iterator &iterator); 59 bool setStanza(QString stanza, QString option,QStringList::Iterator &iterator);
57 bool setOption(QStringList::Iterator start, QString option, QString value); 60 bool setOption(QStringList::Iterator start, QString option, QString value);
61 bool removeOption(QStringList::Iterator start, QString option, QString value);
58 QString getOption(QStringList::Iterator start, QString option, bool &error); 62 QString getOption(QStringList::Iterator start, QString option, bool &error);
59 bool removeAllOptions(QStringList::Iterator start); 63 bool removeAllOptions(QStringList::Iterator start);
60 64
61 QString interfacesFile; 65 QString interfacesFile;
62 QStringList interfaces; 66 QStringList interfaces;
63 QStringList::Iterator currentIface; 67 QStringList::Iterator currentIface;
64 QStringList::Iterator currentMapping; 68 QStringList::Iterator currentMapping;
65 69
66 QStringList acceptedFamily; 70 QStringList acceptedFamily;
67}; 71};
68 72
69#endif 73#endif