Buteo Synchronization Framework
Signals | Public Member Functions | List of all members
Buteo::TransportTracker Class Reference

Class for tracking transport states. More...

#include <TransportTracker.h>

Inheritance diagram for Buteo::TransportTracker:

Signals

void connectivityStateChanged (QNetworkInformation::TransportMedium aType, bool aState)
 Signal emitted when a connectivity state changes.
 
void networkStateChanged (bool aConnected, QNetworkInformation::TransportMedium aType)
 Signal emitted when a n/w state changes.
 
void sessionConnected ()
 Signal emitted when a network session is successfully opened.
 
void sessionError ()
 Signal emitted when opening a network session fails.
 

Public Member Functions

 TransportTracker (QObject *aParent=0)
 Constructor.
 
virtual ~TransportTracker ()
 Destructor.
 
bool isConnectivityAvailable (Sync::ConnectivityType aType) const
 Checks the state of the given connectivity type.
 

Detailed Description

Class for tracking transport states.

USB state is tracked with HAL, BT with Context Framework and Internet states with Buteo::NetworkManager.

Constructor & Destructor Documentation

◆ TransportTracker()

TransportTracker::TransportTracker ( QObject *  aParent = 0)

Constructor.

Parameters
aParentParent object

Member Function Documentation

◆ connectivityStateChanged

void Buteo::TransportTracker::connectivityStateChanged ( QNetworkInformation::TransportMedium  aType,
bool  aState 
)
signal

Signal emitted when a connectivity state changes.

Parameters
aTypeConnectivity type whose state has changed
aStateNew state. True if available, false if not.

◆ isConnectivityAvailable()

bool TransportTracker::isConnectivityAvailable ( Sync::ConnectivityType  aType) const

Checks the state of the given connectivity type.

Parameters
aTypeConnectivity type
Returns
True if available, false if not

◆ networkStateChanged

void Buteo::TransportTracker::networkStateChanged ( bool  aConnected,
QNetworkInformation::TransportMedium  aType 
)
signal

Signal emitted when a n/w state changes.

Parameters
aStateNew state. True if available, false if not.
aTypeConnection type. The type of connetcion with the Internet.

The documentation for this class was generated from the following files: