25#ifndef TRANSPORTTRACKER_H_
26#define TRANSPORTTRACKER_H_
28#include "SyncCommonDefs.h"
32#include <QDBusVariant>
33#include <QDBusConnection>
34#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
35#include <QNetworkInformation>
80#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
90#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
105 void onUsbStateChanged(
bool aConnected);
108 void onBtStateChanged(
const QString &interface,
const QVariantMap &changed,
const QStringList &invalidated);
110 void onBtInterfacesAdded(
const QDBusObjectPath &path,
const InterfacesMap &interfaces);
112 void onBtInterfacesRemoved(
const QDBusObjectPath &path,
const QStringList &interfaces);
114#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
115 void onReachabilityChanged(QNetworkInformation::Reachability newReachability);
116 void onInternetStateChanged(QNetworkInformation::TransportMedium aType);
118 void onInternetStateChanged(
bool aConnected, Sync::InternetConnectionType aType);
125#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
126 QNetworkInformation *iInternet;
128 QNetworkInformation::TransportMedium m_aType;
132 QDBusConnection iSystemBus;
133 QString iDefaultBtAdapter;
135 mutable QMutex iMutex;
142#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
145 void updateState(Sync::ConnectivityType aType,
bool aState);
147#ifdef SYNCFW_UNIT_TESTS
148 friend class TransportTrackerTest;
149 friend class SynchronizerTest;
153 bool btConnectivityStatus();
Class for managing network sessions.
Definition NetworkManager.h:43
Class for tracking transport states.
Definition TransportTracker.h:52
void networkStateChanged(bool aConnected, QNetworkInformation::TransportMedium aType)
Signal emitted when a n/w state changes.
Definition moc_TransportTracker.cpp:274
bool isConnectivityAvailable(Sync::ConnectivityType aType) const
Checks the state of the given connectivity type.
Definition TransportTracker.cpp:130
void sessionError()
Signal emitted when opening a network session fails.
Definition moc_TransportTracker.cpp:287
virtual ~TransportTracker()
Destructor.
Definition TransportTracker.cpp:125
void sessionConnected()
Signal emitted when a network session is successfully opened.
Definition moc_TransportTracker.cpp:281
void connectivityStateChanged(QNetworkInformation::TransportMedium aType, bool aState)
Signal emitted when a connectivity state changes.
Definition moc_TransportTracker.cpp:267
Proxy class for interface com.meego.usb_moded
Definition USBModedProxy.h:50
Definition SyncBackupAdaptor.h:41