author | mickeyl <mickeyl> | 2003-04-03 14:17:03 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-04-03 14:17:03 (UTC) |
commit | f62005c53c93148eaa13eac50ea6814a41afb216 (patch) (unidiff) | |
tree | 93e7e626205fd9d06b5ac7c29e78be52ce749e5d /libopie2/opienet/onetutils.h | |
parent | e9eeb493c75bfe6078f40952e85e859fb71fe970 (diff) | |
download | opie-f62005c53c93148eaa13eac50ea6814a41afb216.zip opie-f62005c53c93148eaa13eac50ea6814a41afb216.tar.gz opie-f62005c53c93148eaa13eac50ea6814a41afb216.tar.bz2 |
- ONetworkInterfaces are now QObjects
- add support for private IOCTLS
- make buildChannelList() more safe in case of faulty drivers
Diffstat (limited to 'libopie2/opienet/onetutils.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opienet/onetutils.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libopie2/opienet/onetutils.h b/libopie2/opienet/onetutils.h index 0dabe8d..6640515 100644 --- a/libopie2/opienet/onetutils.h +++ b/libopie2/opienet/onetutils.h | |||
@@ -36,8 +36,12 @@ | |||
36 | #include <qmap.h> | 36 | #include <qmap.h> |
37 | #include <qstring.h> | 37 | #include <qstring.h> |
38 | #include <qhostaddress.h> | 38 | #include <qhostaddress.h> |
39 | #include <qobject.h> | ||
40 | |||
41 | #include <sys/types.h> | ||
39 | 42 | ||
40 | struct ifreq; | 43 | struct ifreq; |
44 | class OWirelessNetworkInterface; | ||
41 | 45 | ||
42 | /*====================================================================================== | 46 | /*====================================================================================== |
43 | * OMacAddress | 47 | * OMacAddress |
@@ -80,6 +84,27 @@ class OHostAddress : public QHostAddress | |||
80 | 84 | ||
81 | 85 | ||
82 | /*====================================================================================== | 86 | /*====================================================================================== |
87 | * OPrivateIOCTL | ||
88 | *======================================================================================*/ | ||
89 | |||
90 | class OPrivateIOCTL : public QObject | ||
91 | { | ||
92 | public: | ||
93 | OPrivateIOCTL( QObject* parent, const char* name, int cmd, int getargs, int setargs ); | ||
94 | ~OPrivateIOCTL(); | ||
95 | |||
96 | int numberGetArgs() const; | ||
97 | int typeGetArgs() const; | ||
98 | int numberSetArgs() const; | ||
99 | int typeSetArgs() const; | ||
100 | |||
101 | private: | ||
102 | u_int32_t _ioctl; | ||
103 | u_int16_t _getargs; | ||
104 | u_int16_t _setargs; | ||
105 | }; | ||
106 | |||
107 | /*====================================================================================== | ||
83 | * Miscellaneous | 108 | * Miscellaneous |
84 | *======================================================================================*/ | 109 | *======================================================================================*/ |
85 | 110 | ||