summaryrefslogtreecommitdiff
path: root/libresourceqt/src/resource-set.cpp
diff options
context:
space:
mode:
authorVsevolod Buzinov <ext-vsevolod.buzinov@nokia.com>2010-06-10 10:45:18 +0300
committerVsevolod Buzinov <ext-vsevolod.buzinov@nokia.com>2010-06-10 10:45:18 +0300
commit705b4c51fb64e0f0290332d3a3413c2a6b82ac05 (patch)
tree5bd9bcdf1b5a19859953e5b50c6f6622dd3364d0 /libresourceqt/src/resource-set.cpp
parent6a6d3799cb686d5cc91c79e281fb8b0ba436fe0c (diff)
parent3cbcb1b12a5280f95e0b887aad37a695927f7ac7 (diff)
Merge branch 'master' of ssh://karma.research.nokia.com/u/repositories/libresourceqt
Diffstat (limited to 'libresourceqt/src/resource-set.cpp')
-rw-r--r--libresourceqt/src/resource-set.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/libresourceqt/src/resource-set.cpp b/libresourceqt/src/resource-set.cpp
index d39d445..7dfd5d7 100644
--- a/libresourceqt/src/resource-set.cpp
+++ b/libresourceqt/src/resource-set.cpp
@@ -193,19 +193,19 @@ Resource * ResourceSet::resource(ResourceType type) const
bool ResourceSet::acquire()
{
if (!initialized) {
- qDebug("**************** ResourceSet::%s().... %d", __FUNCTION__, __LINE__);
+ qDebug("ResourceSet::%s().... initializing...", __FUNCTION__);
pendingAcquire = true;
return initialize();
}
if (!resourceEngine->isConnectedToManager()) {
- qDebug("**************** ResourceSet::%s().... %d", __FUNCTION__, __LINE__);
+ qDebug("ResourceSet::%s().... connecting...", __FUNCTION__);
pendingAcquire = true;
resourceEngine->connectToManager();
return true;
}
else {
- qDebug("**************** ResourceSet::%s().... %d", __FUNCTION__, __LINE__);
+ qDebug("ResourceSet::%s().... acquiring", __FUNCTION__);
return resourceEngine->acquireResources();
}
}
@@ -216,6 +216,7 @@ bool ResourceSet::release()
return true;
}
+ qDebug("ResourceSet::%s().... releasing...", __FUNCTION__);
return resourceEngine->releaseResources();
}
@@ -227,8 +228,10 @@ bool ResourceSet::update()
if (!resourceEngine->isConnectedToManager()) {
pendingUpdate = true;
+ resourceEngine->connectToManager();
return true;
}
+ qDebug("ResourceSet::%s().... updating...", __FUNCTION__);
return resourceEngine->updateResources();
}
@@ -267,6 +270,7 @@ void ResourceSet::connectedHandler()
{
qDebug("**************** ResourceSet::%s().... %d", __FUNCTION__, __LINE__);
qDebug("Connected to manager!");
+
if (pendingAudioProperties) {
registerAudioProperties();
}
@@ -287,8 +291,9 @@ void ResourceSet::registerAudioProperties()
pendingAudioProperties = true;
initialize();
}
- else if (!resourceEngine->isConnectedToManager()) {
+ if (!resourceEngine->isConnectedToManager() && !resourceEngine->isConnectingToManager()) {
qDebug("%s(): Connecting to Manager...", __FUNCTION__);
+
pendingAudioProperties = true;
resourceEngine->connectToManager();
}