summaryrefslogtreecommitdiffstats
path: root/src/plugins/bearer/icd/qicdengine.h
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-23 03:12:44 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-23 03:12:44 (GMT)
commit055fa76e7575be55899127de2d254e0f0e90a1db (patch)
tree00047ce97412b53a265343a2f5a8bab92410bb7a /src/plugins/bearer/icd/qicdengine.h
parentb1c59bde1e29a62141a10f30a15f02bc1d59558b (diff)
downloadQt-055fa76e7575be55899127de2d254e0f0e90a1db.zip
Qt-055fa76e7575be55899127de2d254e0f0e90a1db.tar.gz
Qt-055fa76e7575be55899127de2d254e0f0e90a1db.tar.bz2
Make compile on Maemo6.
Diffstat (limited to 'src/plugins/bearer/icd/qicdengine.h')
-rw-r--r--src/plugins/bearer/icd/qicdengine.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/plugins/bearer/icd/qicdengine.h b/src/plugins/bearer/icd/qicdengine.h
index 30b5711..6ebe40d 100644
--- a/src/plugins/bearer/icd/qicdengine.h
+++ b/src/plugins/bearer/icd/qicdengine.h
@@ -80,8 +80,6 @@ class QIcdEngine : public QBearerEngine
{
Q_OBJECT
- friend class QNetworkSessionPrivateImpl;
-
public:
QIcdEngine(QObject *parent = 0);
~QIcdEngine();
@@ -98,15 +96,25 @@ public:
void deleteConfiguration(const QString &iap_id);
-private:
+ inline QNetworkConfigurationPrivatePointer configuration(const QString &id)
+ {
+ QMutexLocker locker(&mutex);
+
+ return accessPointConfigurations.value(id);
+ }
+
inline void addSessionConfiguration(QNetworkConfigurationPrivatePointer ptr)
{
+ QMutexLocker locker(&mutex);
+
accessPointConfigurations.insert(ptr->id, ptr);
emit configurationAdded(ptr);
}
inline void changedSessionConfiguration(QNetworkConfigurationPrivatePointer ptr)
{
+ QMutexLocker locker(&mutex);
+
emit configurationChanged(ptr);
}