25#ifndef TRANSPORTTRACKER_H_
26#define TRANSPORTTRACKER_H_
28#include "SyncCommonDefs.h"
32#include <QDBusVariant>
33#include <QDBusConnection>
93 void onUsbStateChanged(
bool aConnected);
96 void onBtStateChanged(
const QString &interface,
const QVariantMap &changed,
const QStringList &invalidated);
97 void onBtInterfacesAdded(
const QDBusObjectPath &path,
const InterfacesMap &interfaces);
98 void onBtInterfacesRemoved(
const QDBusObjectPath &path,
const QStringList &interfaces);
101 void onInternetStateChanged(
bool aConnected, Sync::InternetConnectionType aType);
109 QDBusConnection iSystemBus;
110 QString iDefaultBtAdapter;
112 mutable QMutex iMutex;
119 void updateState(Sync::ConnectivityType aType,
bool aState);
121#ifdef SYNCFW_UNIT_TESTS
122 friend class TransportTrackerTest;
123 friend class SynchronizerTest;
127 bool btConnectivityStatus();
Class for managing network sessions.
Definition NetworkManager.h:44
void connectivityStateChanged(Sync::ConnectivityType aType, bool aState)
Signal emitted when a connectivity state changes.
bool isConnectivityAvailable(Sync::ConnectivityType aType) const
Checks the state of the given connectivity type.
Definition TransportTracker.cpp:121
void sessionError()
Signal emitted when opening a network session fails.
virtual ~TransportTracker()
Destructor.
Definition TransportTracker.cpp:116
void sessionConnected()
Signal emitted when a network session is successfully opened.
void networkStateChanged(bool aState, Sync::InternetConnectionType aType)
Signal emitted when a n/w state changes.
TransportTracker(QObject *aParent=0)
Constructor.
Definition TransportTracker.cpp:38
Proxy class for interface com.meego.usb_moded
Definition USBModedProxy.h:50
Definition SyncBackupAdaptor.h:41