2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Jussi Laitinen - jussi.laitinen@ixonos.com
7 Situare is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 version 2 as published by the Free Software Foundation.
11 Situare is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Situare; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22 #ifndef NETWORKHANDLER_H
23 #define NETWORKHANDLER_H
27 class NetworkHandlerPrivate;
30 * @brief NetworkHandler class.
32 * This class handles network connection. Class notifies about
33 * network connection states.
35 class NetworkHandler : public QObject
41 * @brief Friend class for NetworkHandlerPrivate.
43 friend class NetworkHandlerPrivate;
46 * @brief Returns instance of NetworkHandler.
48 * Creates instance if not created.
50 static NetworkHandler *instance();
52 /*******************************************************************************
53 * MEMBER FUNCTIONS AND SLOTS
54 ******************************************************************************/
57 * @brief Requests network connection.
59 * Request is done via ICD D-Bus.
64 * @brief Requests to disconnect a connection.
66 * Request is done via ICD D-Bus.
71 * @brief Checks if connected to network.
73 * @return true if connected, false otherwise
78 * @brief Requests network state.
86 * Instance of this class can only be created by using instance method.
93 * Destructor is not accessible.
96 /*******************************************************************************
98 ******************************************************************************/
101 * @brief Signals when connected to network.
106 * @brief Signals when disconnected from network.
110 /*******************************************************************************
112 ******************************************************************************/
114 static NetworkHandler *m_instance; ///< Instance of NetworkHandler
115 NetworkHandlerPrivate *m_networkHandlerPrivate; ///< Instance of NetworkHandlerPrivate
118 #endif // NETWORKHANDLER_H