Changeset View
Changeset View
Standalone View
Standalone View
network/network/network.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 43 | { | |||
---|---|---|---|---|---|
44 | Q_OBJECT | 44 | Q_OBJECT | ||
45 | 45 | | |||
46 | friend class NetworkPrivate; | 46 | friend class NetworkPrivate; | ||
47 | 47 | | |||
48 | public: | 48 | public: | ||
49 | static Network* network(); | 49 | static Network* network(); | ||
50 | 50 | | |||
51 | public: | 51 | public: | ||
52 | Network(); | ||||
52 | virtual ~Network(); | 53 | virtual ~Network(); | ||
53 | 54 | | |||
54 | public: | 55 | public: | ||
55 | QList<NetDevice> deviceList() const; | 56 | QList<NetDevice> deviceList() const; | ||
56 | 57 | | |||
57 | Q_SIGNALS: | 58 | Q_SIGNALS: | ||
58 | void devicesAdded( const QList<NetDevice>& deviceList ); | 59 | void devicesAdded( const QList<NetDevice>& deviceList ); | ||
59 | void devicesRemoved( const QList<NetDevice>& deviceList ); | 60 | void devicesRemoved( const QList<NetDevice>& deviceList ); | ||
60 | void servicesAdded( const QList<NetService>& serviceList ); | 61 | void servicesAdded( const QList<NetService>& serviceList ); | ||
61 | void servicesRemoved( const QList<NetService>& serviceList ); | 62 | void servicesRemoved( const QList<NetService>& serviceList ); | ||
62 | 63 | | |||
63 | void initDone(); | 64 | void initDone(); | ||
64 | 65 | | |||
65 | private: | 66 | private: | ||
66 | Network(); | | |||
67 | Q_PRIVATE_SLOT( d, void onBuilderInit() ) | 67 | Q_PRIVATE_SLOT( d, void onBuilderInit() ) | ||
68 | 68 | | |||
69 | private: | 69 | private: | ||
70 | NetworkPrivate* const d; | 70 | NetworkPrivate* const d; | ||
71 | }; | 71 | }; | ||
72 | 72 | | |||
73 | // void connect( Network& network, const char* signal, QObject* object, const char* slot ); | 73 | // void connect( Network& network, const char* signal, QObject* object, const char* slot ); | ||
74 | 74 | | |||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | #endif | 77 | #endif |