Changeset View
Changeset View
Standalone View
Standalone View
network/network/netservice.cpp
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 | #include "netservice.h" | 23 | #include "netservice.h" | ||
24 | #include "netservice_p.h" | 24 | #include "netservice_p.h" | ||
25 | 25 | | |||
26 | // lib | 26 | // lib | ||
27 | #include "netdevice.h" | 27 | #include "netdevice.h" | ||
28 | // KDE | 28 | // Qt | ||
29 | #include <KGlobal> | 29 | #include <QGlobalStatic> | ||
30 | 30 | | |||
31 | 31 | | |||
32 | namespace Mollet | 32 | namespace Mollet | ||
33 | { | 33 | { | ||
34 | 34 | | |||
35 | // | 35 | // | ||
36 | K_GLOBAL_STATIC_WITH_ARGS(KSharedPtr< NetServicePrivate >, | 36 | Q_GLOBAL_STATIC_WITH_ARGS(QSharedPointer<NetServicePrivate>, | ||
37 | defaultEmptyNetServicePrivate, | 37 | defaultEmptyNetServicePrivate, | ||
38 | ( new NetServicePrivate(QString(),QString(),QString(),NetDevice(),QString(),QString()) )) | 38 | ( new NetServicePrivate(QString(),QString(),QString(),NetDevice(),QString(),QString()) )) | ||
39 | 39 | | |||
40 | 40 | | |||
41 | NetService::NetService() | 41 | NetService::NetService() | ||
42 | : d( *defaultEmptyNetServicePrivate ) | 42 | : d( *defaultEmptyNetServicePrivate ) | ||
43 | { | 43 | { | ||
44 | } | 44 | } | ||
Show All 19 Lines | |||||
64 | NetService& NetService::operator =( const NetService& other ) | 64 | NetService& NetService::operator =( const NetService& other ) | ||
65 | { | 65 | { | ||
66 | d = other.d; | 66 | d = other.d; | ||
67 | return *this; | 67 | return *this; | ||
68 | } | 68 | } | ||
69 | 69 | | |||
70 | void NetService::setDPtr( NetServicePrivate* _d ) | 70 | void NetService::setDPtr( NetServicePrivate* _d ) | ||
71 | { | 71 | { | ||
72 | d = _d; | 72 | d.reset(_d); | ||
73 | } | 73 | } | ||
74 | 74 | | |||
75 | NetService::~NetService() | 75 | NetService::~NetService() | ||
76 | { | 76 | { | ||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | } | 79 | } |