author | benmeyer <benmeyer> | 2002-11-08 17:42:03 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-11-08 17:42:03 (UTC) |
commit | 24da3ab5dd821dd552f13fa7b22f5b3c2986eecd (patch) (side-by-side diff) | |
tree | 5403ee460b8bc628fabc1607f4d84315cddef1cd | |
parent | 56a6d067a51d741eb9be1912b69325bdd424dd84 (diff) | |
download | opie-24da3ab5dd821dd552f13fa7b22f5b3c2986eecd.zip opie-24da3ab5dd821dd552f13fa7b22f5b3c2986eecd.tar.gz opie-24da3ab5dd821dd552f13fa7b22f5b3c2986eecd.tar.bz2 |
Fix compile error
-rw-r--r-- | noncore/net/networksetup/interfaces/interfaces.h | 26 | ||||
-rw-r--r-- | noncore/net/networksetup/networksetup.pro | 2 | ||||
-rw-r--r-- | noncore/settings/networksettings/interfaces/interfaces.h | 26 | ||||
-rw-r--r-- | noncore/settings/networksettings/networksetup.pro | 2 |
4 files changed, 28 insertions, 28 deletions
diff --git a/noncore/net/networksetup/interfaces/interfaces.h b/noncore/net/networksetup/interfaces/interfaces.h index 5a8feb6..d662919 100644 --- a/noncore/net/networksetup/interfaces/interfaces.h +++ b/noncore/net/networksetup/interfaces/interfaces.h @@ -1,77 +1,77 @@ #ifndef INTERFACES_H #define INTERFACES_H #include <qstring.h> #include <qstringlist.h> #define INTERFACES_LOOPBACK "loopback" #define INTERFACES_FAMILY_INET "inet" #define INTERFACES_FAMILY_IPX "ipx" #define INTERFACES_FAMILY_INET6 "inet6" #define INTERFACES_METHOD_DHCP "dhcp" #define INTERFACES_METHOD_STATIC "static" #define INTERFACES_METHOD_PPP "ppp" /** * This class provides a clean frontend for parsing the network interfaces file. * It provides helper functions to minipulate the options within the file. * See the interfaces man page for the syntax rules. */ class Interfaces { public: Interfaces(QString useInterfacesFile = "/etc/network/interfaces"); QStringList getInterfaceList(); bool isAuto(const QString &interface); bool setAuto(const QString &interface, bool setAuto); - inline bool removeInterface(); + bool removeInterface(); bool addInterface(const QString &interface, const QString &family, const QString &method); bool copyInterface(const QString &oldInterface, const QString &newInterface); bool setInterface(QString interface); - inline bool isInterfaceSet(); + bool isInterfaceSet(); QString getInterfaceName(bool &error); bool setInterfaceName(const QString &newName); QString getInterfaceFamily(bool &error); bool setInterfaceFamily(const QString &newName); QString getInterfaceMethod(bool &error); bool setInterfaceMethod(const QString &newName); - inline QString getInterfaceOption(const QString &option, bool &error); - inline bool setInterfaceOption(const QString &option, const QString &value); - inline bool removeInterfaceOption(const QString &option, const QString &value); - inline bool removeAllInterfaceOptions(); + QString getInterfaceOption(const QString &option, bool &error); + bool setInterfaceOption(const QString &option, const QString &value); + bool removeInterfaceOption(const QString &option, const QString &value); + bool removeAllInterfaceOptions(); bool setMapping(const QString &interface); - inline bool removeMapping(); - inline void addMapping(const QString &options); - inline bool setMap(const QString &map, const QString &value); - inline bool removeMap(const QString &map, const QString &value); - inline QString getMap(const QString &map, bool &error); - inline bool setScript(const QString &argument); - inline QString getScript(bool &error); + bool removeMapping(); + void addMapping(const QString &options); + bool setMap(const QString &map, const QString &value); + bool removeMap(const QString &map, const QString &value); + QString getMap(const QString &map, bool &error); + bool setScript(const QString &argument); + QString getScript(bool &error); bool write(); private: bool setStanza(const QString &stanza, const QString &option, QStringList::Iterator &iterator); bool setOption(const QStringList::Iterator &start, const QString &option, const QString &value); bool removeOption(const QStringList::Iterator &start, const QString &option, const QString &value); QString getOption(const QStringList::Iterator &start, const QString &option, bool &error); bool removeStanza(QStringList::Iterator &stanza); bool removeAllOptions(const QStringList::Iterator &start); QString interfacesFile; QStringList interfaces; QStringList::Iterator currentIface; QStringList::Iterator currentMapping; QStringList acceptedFamily; }; #endif // interfaces diff --git a/noncore/net/networksetup/networksetup.pro b/noncore/net/networksetup/networksetup.pro index cb517ce..fbf125f 100644 --- a/noncore/net/networksetup/networksetup.pro +++ b/noncore/net/networksetup/networksetup.pro @@ -1,11 +1,11 @@ #DESTDIR = $(OPIEDIR)/bin TEMPLATE = app #CONFIG = qt warn_on debug CONFIG = qt warn_on release HEADERS = mainwindowimp.h addconnectionimp.h defaultmodule.h module.h SOURCES = main.cpp mainwindowimp.cpp addconnectionimp.cpp INCLUDEPATH += $(OPIEDIR)/include interfaces/ -DEPENDPATH += $(OPIEDIR)/include interfaces/ wlan +DEPENDPATH += $(OPIEDIR)/include interfaces/ wlan/ LIBS += -lqpe -L$(OPIEDIR)/plugins/networksetup -Linterfaces/ -linterfaces INTERFACES = mainwindow.ui addconnection.ui TARGET = networksetup diff --git a/noncore/settings/networksettings/interfaces/interfaces.h b/noncore/settings/networksettings/interfaces/interfaces.h index 5a8feb6..d662919 100644 --- a/noncore/settings/networksettings/interfaces/interfaces.h +++ b/noncore/settings/networksettings/interfaces/interfaces.h @@ -1,77 +1,77 @@ #ifndef INTERFACES_H #define INTERFACES_H #include <qstring.h> #include <qstringlist.h> #define INTERFACES_LOOPBACK "loopback" #define INTERFACES_FAMILY_INET "inet" #define INTERFACES_FAMILY_IPX "ipx" #define INTERFACES_FAMILY_INET6 "inet6" #define INTERFACES_METHOD_DHCP "dhcp" #define INTERFACES_METHOD_STATIC "static" #define INTERFACES_METHOD_PPP "ppp" /** * This class provides a clean frontend for parsing the network interfaces file. * It provides helper functions to minipulate the options within the file. * See the interfaces man page for the syntax rules. */ class Interfaces { public: Interfaces(QString useInterfacesFile = "/etc/network/interfaces"); QStringList getInterfaceList(); bool isAuto(const QString &interface); bool setAuto(const QString &interface, bool setAuto); - inline bool removeInterface(); + bool removeInterface(); bool addInterface(const QString &interface, const QString &family, const QString &method); bool copyInterface(const QString &oldInterface, const QString &newInterface); bool setInterface(QString interface); - inline bool isInterfaceSet(); + bool isInterfaceSet(); QString getInterfaceName(bool &error); bool setInterfaceName(const QString &newName); QString getInterfaceFamily(bool &error); bool setInterfaceFamily(const QString &newName); QString getInterfaceMethod(bool &error); bool setInterfaceMethod(const QString &newName); - inline QString getInterfaceOption(const QString &option, bool &error); - inline bool setInterfaceOption(const QString &option, const QString &value); - inline bool removeInterfaceOption(const QString &option, const QString &value); - inline bool removeAllInterfaceOptions(); + QString getInterfaceOption(const QString &option, bool &error); + bool setInterfaceOption(const QString &option, const QString &value); + bool removeInterfaceOption(const QString &option, const QString &value); + bool removeAllInterfaceOptions(); bool setMapping(const QString &interface); - inline bool removeMapping(); - inline void addMapping(const QString &options); - inline bool setMap(const QString &map, const QString &value); - inline bool removeMap(const QString &map, const QString &value); - inline QString getMap(const QString &map, bool &error); - inline bool setScript(const QString &argument); - inline QString getScript(bool &error); + bool removeMapping(); + void addMapping(const QString &options); + bool setMap(const QString &map, const QString &value); + bool removeMap(const QString &map, const QString &value); + QString getMap(const QString &map, bool &error); + bool setScript(const QString &argument); + QString getScript(bool &error); bool write(); private: bool setStanza(const QString &stanza, const QString &option, QStringList::Iterator &iterator); bool setOption(const QStringList::Iterator &start, const QString &option, const QString &value); bool removeOption(const QStringList::Iterator &start, const QString &option, const QString &value); QString getOption(const QStringList::Iterator &start, const QString &option, bool &error); bool removeStanza(QStringList::Iterator &stanza); bool removeAllOptions(const QStringList::Iterator &start); QString interfacesFile; QStringList interfaces; QStringList::Iterator currentIface; QStringList::Iterator currentMapping; QStringList acceptedFamily; }; #endif // interfaces diff --git a/noncore/settings/networksettings/networksetup.pro b/noncore/settings/networksettings/networksetup.pro index cb517ce..fbf125f 100644 --- a/noncore/settings/networksettings/networksetup.pro +++ b/noncore/settings/networksettings/networksetup.pro @@ -1,11 +1,11 @@ #DESTDIR = $(OPIEDIR)/bin TEMPLATE = app #CONFIG = qt warn_on debug CONFIG = qt warn_on release HEADERS = mainwindowimp.h addconnectionimp.h defaultmodule.h module.h SOURCES = main.cpp mainwindowimp.cpp addconnectionimp.cpp INCLUDEPATH += $(OPIEDIR)/include interfaces/ -DEPENDPATH += $(OPIEDIR)/include interfaces/ wlan +DEPENDPATH += $(OPIEDIR)/include interfaces/ wlan/ LIBS += -lqpe -L$(OPIEDIR)/plugins/networksetup -Linterfaces/ -linterfaces INTERFACES = mainwindow.ui addconnection.ui TARGET = networksetup |