Changeset View
Changeset View
Standalone View
Standalone View
network/network/netservice.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 NETSERVICE_H | 23 | #ifndef NETSERVICE_H | ||
24 | #define NETSERVICE_H | 24 | #define NETSERVICE_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 NetDevice; | 32 | class NetDevice; | ||
33 | class NetService; | 33 | class NetService; | ||
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 35 Lines | 72 | public: | |||
73 | NetService& operator =( const NetService& other ); | 73 | NetService& operator =( const NetService& other ); | ||
74 | 74 | | |||
75 | private: | 75 | private: | ||
76 | NetService( NetServicePrivate* _d ); | 76 | NetService( NetServicePrivate* _d ); | ||
77 | void setDPtr( NetServicePrivate* _d ); | 77 | void setDPtr( NetServicePrivate* _d ); | ||
78 | NetServicePrivate* dPtr() const; | 78 | NetServicePrivate* dPtr() const; | ||
79 | 79 | | |||
80 | private: | 80 | private: | ||
81 | KSharedPtr<NetServicePrivate> d; | 81 | QSharedPointer<NetServicePrivate> d; | ||
82 | }; | 82 | }; | ||
83 | 83 | | |||
84 | typedef QList<NetService> NetServiceList; | 84 | typedef QList<NetService> NetServiceList; | ||
85 | 85 | | |||
86 | 86 | | |||
87 | inline NetServicePrivate* NetService::dPtr() const { return const_cast<NetServicePrivate*>( d.data() ); } | 87 | inline NetServicePrivate* NetService::dPtr() const { return const_cast<NetServicePrivate*>( d.data() ); } | ||
88 | 88 | | |||
89 | } | 89 | } | ||
90 | 90 | | |||
91 | #endif | 91 | #endif |