summaryrefslogtreecommitdiff
path: root/libresourceqt/src/resource-engine.cpp
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-02-10 11:55:19 +0200
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-02-10 13:52:50 +0200
commit80042b6e527238d11dd2c955e47b652941c2ba6e (patch)
tree5f9bcc28129af5235742af32d26817a06ddf1800 /libresourceqt/src/resource-engine.cpp
parent8fe83d5fd968d7e475600691bd9a72f5f888a8c9 (diff)
downloadlibresourceqt-80042b6e527238d11dd2c955e47b652941c2ba6e.tar.gz
Updated API to hide the whole resource manager and stuff
Diffstat (limited to 'libresourceqt/src/resource-engine.cpp')
-rw-r--r--libresourceqt/src/resource-engine.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/libresourceqt/src/resource-engine.cpp b/libresourceqt/src/resource-engine.cpp
index 9f42a48..1478e33 100644
--- a/libresourceqt/src/resource-engine.cpp
+++ b/libresourceqt/src/resource-engine.cpp
@@ -17,7 +17,7 @@ static void handleAdviceMessage(resmsg_t *msg, resset_t *rs, void *data);
ResourceEngine::ResourceEngine(ResourceSet *resourceSet)
: QObject(resourceSet), connected(false), resourceSet(resourceSet),
libresourceConnection(NULL), libresourceSet(NULL), requestId(0),
- messageMap()
+ messageMap(), mode(0)
{
}
@@ -105,17 +105,16 @@ bool ResourceEngine::connect()
uint32_t allResources, optionalResources, sharedResources;
allResources = allResourcesToBitmask(resourceSet);
optionalResources = optionalResourcesToBitmask(resourceSet);
- sharedResources = sharedResourcesToBitmask(resourceSet);
resourceMessage.record.rset.all = allResources;
resourceMessage.record.rset.opt = optionalResources;
- resourceMessage.record.rset.share = sharedResources;
- resourceMessage.record.rset.mask = 0; //find out what it is
+ resourceMessage.record.rset.share = 0;
+ resourceMessage.record.rset.mask = 0;
QByteArray ba = resourceSet->applicationClass().toLatin1();
resourceMessage.record.klass = ba.data();
- resourceMessage.record.mode = 0; //No auto release
+ resourceMessage.record.mode = mode;
libresourceSet = resconn_connect(libresourceConnection, &resourceMessage,
statusCallbackHandler);
@@ -299,3 +298,8 @@ void ResourceEngine::handleConnectionIsUp()
emit connectedToManager();
}
+void ResourceEngine::setMode(quint32 newMode)
+{
+ mode = newMode;
+}
+