author | benmeyer <benmeyer> | 2002-10-18 14:28:42 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-10-18 14:28:42 (UTC) |
commit | 88b3a159060ed7057bfee4cc1ccfcf81a63a4780 (patch) (unidiff) | |
tree | 3dd78d403f337c73bb3ca9d75ef0a29f2adae9b6 /noncore/net/networksetup/interfaces.h | |
parent | 461113126af82cd6343eedab36ecabb4253780ee (diff) | |
download | opie-88b3a159060ed7057bfee4cc1ccfcf81a63a4780.zip opie-88b3a159060ed7057bfee4cc1ccfcf81a63a4780.tar.gz opie-88b3a159060ed7057bfee4cc1ccfcf81a63a4780.tar.bz2 |
More profile stuff works
Diffstat (limited to 'noncore/net/networksetup/interfaces.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/networksetup/interfaces.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/networksetup/interfaces.h b/noncore/net/networksetup/interfaces.h index 8b4788c..e617c17 100644 --- a/noncore/net/networksetup/interfaces.h +++ b/noncore/net/networksetup/interfaces.h | |||
@@ -22,49 +22,49 @@ | |||
22 | class Interfaces { | 22 | class Interfaces { |
23 | 23 | ||
24 | public: | 24 | public: |
25 | Interfaces(QString useInterfacesFile = "/etc/network/interfaces"); | 25 | Interfaces(QString useInterfacesFile = "/etc/network/interfaces"); |
26 | QStringList getInterfaceList(); | 26 | QStringList getInterfaceList(); |
27 | 27 | ||
28 | bool isAuto(QString interface); | 28 | bool isAuto(QString interface); |
29 | bool setAuto(QString interface, bool setAuto); | 29 | bool setAuto(QString interface, bool setAuto); |
30 | 30 | ||
31 | bool removeInterface(); | 31 | bool removeInterface(); |
32 | bool addInterface(QString interface, QString family, QString method); | 32 | bool addInterface(QString interface, QString family, QString method); |
33 | bool setInterface(QString interface); | 33 | bool setInterface(QString interface); |
34 | bool isInterfaceSet(); | 34 | bool isInterfaceSet(); |
35 | QString getInterfaceName(bool &error); | 35 | QString getInterfaceName(bool &error); |
36 | bool setInterfaceName(QString newName); | 36 | bool setInterfaceName(QString newName); |
37 | QString getInterfaceFamily(bool &error); | 37 | QString getInterfaceFamily(bool &error); |
38 | bool setInterfaceFamily(QString newName); | 38 | bool setInterfaceFamily(QString newName); |
39 | QString getInterfaceMethod(bool &error); | 39 | QString getInterfaceMethod(bool &error); |
40 | bool setInterfaceMethod(QString newName); | 40 | bool setInterfaceMethod(QString newName); |
41 | QString getInterfaceOption(QString option, bool &error); | 41 | QString getInterfaceOption(QString option, bool &error); |
42 | bool setInterfaceOption(QString option, QString value); | 42 | bool setInterfaceOption(QString option, QString value); |
43 | bool removeAllInterfaceOptions(); | 43 | bool removeAllInterfaceOptions(); |
44 | 44 | ||
45 | bool setMapping(QString interface); | 45 | bool setMapping(QString interface); |
46 | void addMapping(QString interfaces); | 46 | void addMapping(QString options); |
47 | bool setMap(QString map, QString value); | 47 | bool setMap(QString map, QString value); |
48 | QString getMap(QString map, bool &error); | 48 | QString getMap(QString map, bool &error); |
49 | bool setScript(QString); | 49 | bool setScript(QString); |
50 | QString getScript(bool &error); | 50 | QString getScript(bool &error); |
51 | 51 | ||
52 | bool write(); | 52 | bool write(); |
53 | 53 | ||
54 | private: | 54 | private: |
55 | bool setStanza(QString stanza, QString option,QStringList::Iterator &iterator); | 55 | bool setStanza(QString stanza, QString option,QStringList::Iterator &iterator); |
56 | bool setOption(QStringList::Iterator start, QString option, QString value); | 56 | bool setOption(QStringList::Iterator start, QString option, QString value); |
57 | QString getOption(QStringList::Iterator start, QString option, bool &error); | 57 | QString getOption(QStringList::Iterator start, QString option, bool &error); |
58 | bool removeAllOptions(QStringList::Iterator start); | 58 | bool removeAllOptions(QStringList::Iterator start); |
59 | 59 | ||
60 | QString interfacesFile; | 60 | QString interfacesFile; |
61 | QStringList interfaces; | 61 | QStringList interfaces; |
62 | QStringList::Iterator currentIface; | 62 | QStringList::Iterator currentIface; |
63 | QStringList::Iterator currentMapping; | 63 | QStringList::Iterator currentMapping; |
64 | 64 | ||
65 | QStringList acceptedFamily; | 65 | QStringList acceptedFamily; |
66 | }; | 66 | }; |
67 | 67 | ||
68 | #endif | 68 | #endif |
69 | 69 | ||
70 | // interfaces | 70 | // interfaces |