-rw-r--r-- | libopie2/opienet/onetutils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libopie2/opienet/onetutils.h b/libopie2/opienet/onetutils.h index 8be042b..73d52cc 100644 --- a/libopie2/opienet/onetutils.h +++ b/libopie2/opienet/onetutils.h | |||
@@ -47,24 +47,27 @@ class OWirelessNetworkInterface; | |||
47 | * OMacAddress | 47 | * OMacAddress |
48 | *======================================================================================*/ | 48 | *======================================================================================*/ |
49 | 49 | ||
50 | class OMacAddress | 50 | class OMacAddress |
51 | { | 51 | { |
52 | public: | 52 | public: |
53 | OMacAddress( unsigned char* ); | 53 | OMacAddress( unsigned char* ); |
54 | OMacAddress( const unsigned char* ); | 54 | OMacAddress( const unsigned char* ); |
55 | OMacAddress( struct ifreq& ); | 55 | OMacAddress( struct ifreq& ); |
56 | ~OMacAddress(); | 56 | ~OMacAddress(); |
57 | 57 | ||
58 | QString toString() const; | 58 | QString toString() const; |
59 | const unsigned char* native() const; | ||
60 | |||
61 | static OMacAddress fromString( const QString& ); | ||
59 | 62 | ||
60 | public: | 63 | public: |
61 | static const OMacAddress& broadcast; // ff:ff:ff:ff:ff:ff | 64 | static const OMacAddress& broadcast; // ff:ff:ff:ff:ff:ff |
62 | static const OMacAddress& unknown; // 44:44:44:44:44:44 | 65 | static const OMacAddress& unknown; // 44:44:44:44:44:44 |
63 | 66 | ||
64 | private: | 67 | private: |
65 | unsigned char _bytes[6]; | 68 | unsigned char _bytes[6]; |
66 | 69 | ||
67 | friend bool operator==( const OMacAddress &m1, const OMacAddress &m2 ); | 70 | friend bool operator==( const OMacAddress &m1, const OMacAddress &m2 ); |
68 | 71 | ||
69 | }; | 72 | }; |
70 | 73 | ||