Changeset View
Changeset View
Standalone View
Standalone View
network/network/network.cpp
Show All 17 Lines | 1 | /* | |||
---|---|---|---|---|---|
18 | 18 | | |||
19 | You should have received a copy of the GNU Lesser General Public | 19 | You should have received a copy of the GNU Lesser General Public | ||
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 "network.h" | 23 | #include "network.h" | ||
24 | #include "network_p.h" | 24 | #include "network_p.h" | ||
25 | 25 | | |||
26 | // KDE | | |||
27 | #include <KGlobal> | | |||
28 | // Qt | 26 | // Qt | ||
27 | #include <QtCore/QGlobalStatic> | ||||
29 | #include <QtCore/QList> | 28 | #include <QtCore/QList> | ||
30 | 29 | | |||
31 | 30 | | |||
32 | namespace Mollet | 31 | namespace Mollet | ||
33 | { | 32 | { | ||
34 | 33 | | |||
34 | Q_GLOBAL_STATIC( Network, networkSingleton ) | ||||
35 | | ||||
35 | Network* Network::network() | 36 | Network* Network::network() | ||
36 | { | 37 | { | ||
37 | K_GLOBAL_STATIC( Network, networkSingleton ) | | |||
38 | return networkSingleton; | 38 | return networkSingleton; | ||
39 | } | 39 | } | ||
40 | 40 | | |||
41 | Network::Network() | 41 | Network::Network() | ||
42 | : d( new NetworkPrivate(this) ) | 42 | : d( new NetworkPrivate(this) ) | ||
43 | { | 43 | { | ||
44 | d->init(); | 44 | d->init(); | ||
45 | } | 45 | } | ||
Show All 10 Lines |