42 #ifndef QNETWORKSESSION_IMPL_H 43 #define QNETWORKSESSION_IMPL_H 56 #include <QtNetwork/private/qnetworksession_p.h> 57 #include <QtNetwork/qnetworkconfigmanager.h> 59 #include <QtCore/qdatetime.h> 60 #include <QtCore/qtimer.h> 61 #include <QtCore/quuid.h> 63 #include <QtDBus/qdbusconnection.h> 64 #include <QtDBus/qdbusinterface.h> 65 #include <QtDBus/qdbusmessage.h> 66 #include <QtDBus/qdbusmetatype.h> 68 #include <icd/dbus_api.h> 70 #ifndef QT_NO_BEARERMANAGEMENT 95 connectFlags(ICD_CONNECTION_FLAG_USER_EVENT),
97 m_asynchCallActive(false)
99 m_stopTimer.setSingleShot(
true);
100 connect(&m_stopTimer,
SIGNAL(timeout()),
this,
SLOT(finishStopBySendingClosedSignal()));
108 ICD_DBUS_API_INTERFACE,
112 systemBus.
connect(ICD_DBUS_API_INTERFACE,
114 ICD_DBUS_API_INTERFACE,
115 ICD_DBUS_API_CONNECT_SIG,
119 qDBusRegisterMetaType<ICd2DetailsDBusStruct>();
120 qDBusRegisterMetaType<ICd2DetailsList>();
122 m_connectRequestTimer.setSingleShot(
true);
123 connect(&m_connectRequestTimer,
SIGNAL(timeout()),
this,
SLOT(connectTimeout()));
137 void syncStateWithInterface();
139 #ifndef QT_NO_NETWORKINTERFACE 162 void updateStateFromServiceNetwork();
163 void updateStateFromActiveConfig();
167 void networkConfigurationsChanged();
168 void iapStateChanged(
const QString& iapid,
uint icd_connection_state);
170 void finishStopBySendingClosedSignal();
172 void connectTimeout();
197 friend class IcdListener;
199 void updateIdentifier(
const QString &newId);
201 void cleanupSession(
void);
203 void updateProxyInformation();
204 void clearProxyInformation();
226 #endif // QT_NO_BEARERMANAGEMENT 228 #endif //QNETWORKSESSIONPRIVATE_H The QVariant class acts like a union for the most common Qt data types.
QNetworkConfiguration config
#define QT_END_NAMESPACE
This macro expands to.
QNetworkSession::State currentState
~QNetworkSessionPrivateImpl()
The QDBusArgument class is used to marshall and demarshall D-Bus arguments.
static QUuid createUuid()
On any platform other than Windows, this function returns a new UUID with variant QUuid::DCE and vers...
icd_connection_flags connectFlags
The QByteArray class provides an array of bytes.
QNetworkSession::SessionError lastError
QList< ICd2DetailsDBusStruct > ICd2DetailsList
static bool ignore(const char *test, const char *const *table)
State
This enum describes the connectivity state of the session.
The QDBusInterface class is a proxy for interfaces on remote objects.
QDBusInterface * m_dbusInterface
The QNetworkConfigurationManager class manages the network configurations provided by the system...
The QString class provides a Unicode character string.
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
QNetworkSessionPrivateImpl(QIcdEngine *engine)
QTimer m_connectRequestTimer
static QString toString(Register *reg, int type, bool *ok=0)
SessionError
This enum describes the session errors that can occur.
The QNetworkConfiguration class provides an abstraction of one or more access point configurations...
#define QT_BEGIN_NAMESPACE
This macro expands to.
static void disconnectFromBus(const QString &name)
Closes the bus connection of name name.
QNetworkConfigurationManager manager
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
Connects the signal specified by the service, path, interface and name parameters to the slot slot in...
const QDBusArgument & operator>>(const QDBusArgument &argument, ICd2DetailsDBusStruct &icd2)
The QDateTime class provides date and time functions.
The QNetworkSession class provides control over the system's access points and enables session manage...
Q_DECLARE_METATYPE(ICd2DetailsDBusStruct)
The QDBusConnection class represents a connection to the D-Bus bus daemon.
static QDBusConnection connectToBus(BusType type, const QString &name)
Opens a connection of type type to one of the known busses and associate with it the connection name ...
The QDBusMessage class represents one message sent or received over the D-Bus bus.
QString currentNetworkInterface
The QNetworkInterface class provides a listing of the host's IP addresses and network interfaces...
QDBusArgument & operator<<(QDBusArgument &argument, const ICd2DetailsDBusStruct &icd2)
The QTimer class provides repetitive and single-shot timers.
int open(const char *, int,...)
The QList class is a template class that provides lists.