summaryrefslogtreecommitdiff
path: root/libresourceqt
diff options
context:
space:
mode:
authorKrisztian Litkey <krisztian.litkey@nokia.com>2010-12-13 14:16:37 +0200
committerKrisztian Litkey <krisztian.litkey@nokia.com>2010-12-13 14:16:37 +0200
commitd95f7b0938ec7c8081abd6d5a5fa94800eb27d12 (patch)
tree18522d60a96580c70f260a41fe83f55bb2dd7a13 /libresourceqt
parent349f6476da55a8c729cd8cd21b3906d8f5459d4e (diff)
parente533ea1abcb5dd43d894c0f4fc2d2cf1f6239074 (diff)
Merge branch 'master' into meego
Diffstat (limited to 'libresourceqt')
-rw-r--r--libresourceqt/include/qt4/policy/resource-set.h1
-rw-r--r--libresourceqt/src/resource-set.cpp8
2 files changed, 7 insertions, 2 deletions
diff --git a/libresourceqt/include/qt4/policy/resource-set.h b/libresourceqt/include/qt4/policy/resource-set.h
index a36254d..cbc29f0 100644
--- a/libresourceqt/include/qt4/policy/resource-set.h
+++ b/libresourceqt/include/qt4/policy/resource-set.h
@@ -339,6 +339,7 @@ private slots:
void handleGranted(quint32);
void handleDeny();
void handleReleased();
+ void handleReleasedByManager();
void handleResourcesLost(quint32);
void handleResourcesBecameAvailable(quint32);
diff --git a/libresourceqt/src/resource-set.cpp b/libresourceqt/src/resource-set.cpp
index 190df5e..d5eac09 100644
--- a/libresourceqt/src/resource-set.cpp
+++ b/libresourceqt/src/resource-set.cpp
@@ -81,7 +81,7 @@ bool ResourceSet::initialize()
QObject::connect(resourceEngine, SIGNAL(errorCallback(quint32, const char*)),
this, SIGNAL(errorCallback(quint32, const char*)));
QObject::connect(resourceEngine, SIGNAL(resourcesReleasedByManager()),
- this, SIGNAL(resourcesReleasedByManager()));
+ this, SLOT(handleReleasedByManager()));
qDebug("initializing resource engine...");
if (!resourceEngine->initialize()) {
@@ -236,7 +236,6 @@ bool ResourceSet::initAndConnect()
qDebug("ResourceSet::%s().... initializing...", __FUNCTION__);
return initialize();
}
-
if ( !resourceEngine->isConnectedToManager() ) {
qDebug("ResourceSet::%s().... connecting...", __FUNCTION__);
return resourceEngine->connectToManager();
@@ -469,3 +468,8 @@ void ResourceSet::handleAudioPropertiesChanged(const QString &, quint32,
registerAudioProperties();
}
+void ResourceSet::handleReleasedByManager()
+{
+ resourceEngine->releaseResources();
+ emit resourcesReleasedByManager();
+}