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 NETWORKHANDLERPRIVATE_H
23 #define NETWORKHANDLERPRIVATE_H
30 * @brief NetworkHandlerPrivate class.
32 * This class handles network connection. Class notifies about
33 * network connection states.
35 class NetworkHandlerPrivate : public QObject
43 * Creates ICD D-Bus interface.
45 NetworkHandlerPrivate(QObject *parent);
47 /*******************************************************************************
48 * MEMBER FUNCTIONS AND SLOTS
49 ******************************************************************************/
52 * @brief Requests network connection.
54 * Request is done via ICD D-Bus.
59 * @brief Requests to disconnect a connection.
61 * Request is done via ICD D-Bus.
66 * @brief Checks if connected to network.
68 * @return true if connected, false otherwise
73 * @brief Requests network state.
79 * @brief Slot for ICD D-Bus state change.
81 * @param message received D-Bus message
83 void stateChanged(const QDBusMessage &message);
85 /*******************************************************************************
87 ******************************************************************************/
89 QDBusInterface *dBusInterface; ///< D-Bus interface
90 bool m_connected; ///< Connection state variable
91 bool m_connecting; ///< Connecting state variable
93 NetworkHandler *m_parent; ///< Parent object
96 #endif // NETWORKHANDLERPRIVATE_H