-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 | |||
@@ -33,14 +33,18 @@ | |||
33 | #define ONETUTILS_H | 33 | #define ONETUTILS_H |
34 | 34 | ||
35 | #include <qdict.h> | 35 | #include <qdict.h> |
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 |
44 | *======================================================================================*/ | 48 | *======================================================================================*/ |
45 | 49 | ||
46 | class OMacAddress | 50 | class OMacAddress |
@@ -77,12 +81,33 @@ class OHostAddress : public QHostAddress | |||
77 | OHostAddress(); | 81 | OHostAddress(); |
78 | ~OHostAddress(); | 82 | ~OHostAddress(); |
79 | }; | 83 | }; |
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 | ||
86 | /* dump bytes */ | 111 | /* dump bytes */ |
87 | 112 | ||
88 | void dumpBytes( const unsigned char* data, int num ); | 113 | void dumpBytes( const unsigned char* data, int num ); |