Changeset View
Changeset View
Standalone View
Standalone View
network/network/netdevice.h
Show All 19 Lines | 1 | /* | |||
---|---|---|---|---|---|
20 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | 20 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
21 | */ | 21 | */ | ||
22 | 22 | | |||
23 | #ifndef NETDEVICE_H | 23 | #ifndef NETDEVICE_H | ||
24 | #define NETDEVICE_H | 24 | #define NETDEVICE_H | ||
25 | 25 | | |||
26 | // lib | 26 | // lib | ||
27 | #include "molletnetwork_export.h" | 27 | #include "molletnetwork_export.h" | ||
28 | // KDE | 28 | // Qt | ||
29 | #include <KSharedPtr> | 29 | #include <QSharedPointer> | ||
30 | 30 | | |||
31 | namespace Mollet { | 31 | namespace Mollet { | ||
32 | class NetService; | 32 | class NetService; | ||
33 | class NetDevice; | 33 | class NetDevice; | ||
34 | } | 34 | } | ||
35 | template < class T > class QList; | 35 | template < class T > class QList; | ||
36 | class QString; | 36 | class QString; | ||
37 | class QDBusArgument; | 37 | class QDBusArgument; | ||
Show All 39 Lines | 76 | public: | |||
77 | NetDevice& operator =( const NetDevice& other ); | 77 | NetDevice& operator =( const NetDevice& other ); | ||
78 | 78 | | |||
79 | private: | 79 | private: | ||
80 | NetDevice( NetDevicePrivate* _d ); | 80 | NetDevice( NetDevicePrivate* _d ); | ||
81 | void setDPtr( NetDevicePrivate* _d ); | 81 | void setDPtr( NetDevicePrivate* _d ); | ||
82 | NetDevicePrivate* dPtr() const; | 82 | NetDevicePrivate* dPtr() const; | ||
83 | 83 | | |||
84 | private: | 84 | private: | ||
85 | KSharedPtr<NetDevicePrivate> d; | 85 | QSharedPointer<NetDevicePrivate> d; | ||
86 | }; | 86 | }; | ||
87 | 87 | | |||
88 | typedef QList<NetDevice> NetDeviceList; | 88 | typedef QList<NetDevice> NetDeviceList; | ||
89 | 89 | | |||
90 | 90 | | |||
91 | inline NetDevicePrivate* NetDevice::dPtr() const { return const_cast<NetDevicePrivate*>( d.data() ); } | 91 | inline NetDevicePrivate* NetDevice::dPtr() const { return const_cast<NetDevicePrivate*>( d.data() ); } | ||
92 | 92 | | |||
93 | } | 93 | } | ||
94 | 94 | | |||
95 | #endif | 95 | #endif |