NetworkHandler class. More...
#include <networkhandler.h>
Signals | |
void | connected () |
Signals when connected to network. | |
void | disconnected () |
Signals when disconnected from network. | |
Public Member Functions | |
void | connect () |
Requests network connection. | |
void | disconnect () |
Requests to disconnect a connection. | |
bool | isConnected () |
Checks if connected to network. | |
void | state () |
Requests network state. | |
Static Public Member Functions | |
static NetworkHandler * | instance () |
Returns instance of NetworkHandler. | |
Protected Member Functions | |
NetworkHandler () | |
Constructor. | |
~NetworkHandler () | |
Destructor. | |
Private Attributes | |
NetworkHandlerPrivate * | m_networkHandlerPrivate |
Instance of NetworkHandlerPrivate. | |
Static Private Attributes | |
static NetworkHandler * | m_instance = 0 |
Instance of NetworkHandler. | |
Friends | |
class | NetworkHandlerPrivate |
Friend class for NetworkHandlerPrivate. |
NetworkHandler class.
This class handles network connection. Class notifies about network connection states.
NetworkHandler::NetworkHandler | ( | ) | [protected] |
Constructor.
Instance of this class can only be created by using instance method.
NetworkHandler::~NetworkHandler | ( | ) | [protected] |
Destructor.
Destructor is not accessible.
void NetworkHandler::connect | ( | ) |
Requests network connection.
Request is done via ICD D-Bus.
void NetworkHandler::disconnect | ( | ) |
Requests to disconnect a connection.
Request is done via ICD D-Bus.
NetworkHandler * NetworkHandler::instance | ( | ) | [static] |
Returns instance of NetworkHandler.
Creates instance if not created.
bool NetworkHandler::isConnected | ( | ) |
Checks if connected to network.