equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the Qt Mobility Components. |
7 ** This file is part of the Qt Mobility Components. |
8 ** |
8 ** |
63 #include <cmmanager.h> |
63 #include <cmmanager.h> |
64 #endif |
64 #endif |
65 |
65 |
66 // Uncomment and compile QtBearer to gain detailed state tracing |
66 // Uncomment and compile QtBearer to gain detailed state tracing |
67 // #define QT_BEARERMGMT_SYMBIAN_DEBUG |
67 // #define QT_BEARERMGMT_SYMBIAN_DEBUG |
|
68 |
|
69 #define QT_BEARERMGMT_CONFIGURATION_SNAP_PREFIX "S_" |
|
70 #define QT_BEARERMGMT_CONFIGURATION_IAP_PREFIX "I_" |
68 |
71 |
69 class CCommsDatabase; |
72 class CCommsDatabase; |
70 class QEventLoop; |
73 class QEventLoop; |
71 |
74 |
72 QT_BEGIN_NAMESPACE |
75 QT_BEGIN_NAMESPACE |
111 bool changeConfigurationStateAtMinTo(QExplicitlySharedDataPointer<QNetworkConfigurationPrivate>& sharedData, |
114 bool changeConfigurationStateAtMinTo(QExplicitlySharedDataPointer<QNetworkConfigurationPrivate>& sharedData, |
112 QNetworkConfiguration::StateFlags newState); |
115 QNetworkConfiguration::StateFlags newState); |
113 bool changeConfigurationStateAtMaxTo(QExplicitlySharedDataPointer<QNetworkConfigurationPrivate>& sharedData, |
116 bool changeConfigurationStateAtMaxTo(QExplicitlySharedDataPointer<QNetworkConfigurationPrivate>& sharedData, |
114 QNetworkConfiguration::StateFlags newState); |
117 QNetworkConfiguration::StateFlags newState); |
115 #ifdef SNAP_FUNCTIONALITY_AVAILABLE |
118 #ifdef SNAP_FUNCTIONALITY_AVAILABLE |
|
119 void updateMobileBearerToConfigs(TConnMonBearerInfo bearerInfo); |
116 QNetworkConfigurationPrivate* configFromConnectionMethodL(RCmConnectionMethod& connectionMethod); |
120 QNetworkConfigurationPrivate* configFromConnectionMethodL(RCmConnectionMethod& connectionMethod); |
117 #else |
121 #else |
118 bool readNetworkConfigurationValuesFromCommsDb( |
122 bool readNetworkConfigurationValuesFromCommsDb( |
119 TUint32 aApId, QNetworkConfigurationPrivate* apNetworkConfiguration); |
123 TUint32 aApId, QNetworkConfigurationPrivate* apNetworkConfiguration); |
120 void readNetworkConfigurationValuesFromCommsDbL( |
124 void readNetworkConfigurationValuesFromCommsDbL( |
143 // MConnectionMonitorObserver |
147 // MConnectionMonitorObserver |
144 void EventL(const CConnMonEventBase& aEvent); |
148 void EventL(const CConnMonEventBase& aEvent); |
145 // For QNetworkSessionPrivate to indicate about state changes |
149 // For QNetworkSessionPrivate to indicate about state changes |
146 void configurationStateChangeReport(TUint32 accessPointId, |
150 void configurationStateChangeReport(TUint32 accessPointId, |
147 QNetworkSession::State newState); |
151 QNetworkSession::State newState); |
|
152 #ifdef OCC_FUNCTIONALITY_AVAILABLE |
|
153 QExplicitlySharedDataPointer<QNetworkConfigurationPrivate> configurationFromEasyWlan(TUint32 apId, TUint connectionId); |
|
154 #endif |
148 |
155 |
149 public: // Data |
156 public: // Data |
150 //this table contains an up to date list of all configs at any time. |
157 //this table contains an up to date list of all configs at any time. |
151 //it must be updated if configurations change, are added/removed or |
158 //it must be updated if configurations change, are added/removed or |
152 //the members of ServiceNetworks change |
159 //the members of ServiceNetworks change |