summaryrefslogtreecommitdiff
path: root/libresourceqt/src/resource-set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libresourceqt/src/resource-set.cpp')
-rw-r--r--libresourceqt/src/resource-set.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/libresourceqt/src/resource-set.cpp b/libresourceqt/src/resource-set.cpp
index bc6fd8c..27e809b 100644
--- a/libresourceqt/src/resource-set.cpp
+++ b/libresourceqt/src/resource-set.cpp
@@ -4,11 +4,12 @@ using namespace ResourcePolicy;
static quint32 resourceSetId=1;
-ResourceSet::ResourceSet(const QString &applicationClass, QObject * parent)
+ResourceSet::ResourceSet(const QString &applicationClass, QObject * parent,
+ bool initialAlwaysReply, bool initialAutoRelease)
: QObject(parent), resourceClass(applicationClass), resourceEngine(NULL),
- audioResource(NULL), autoRelease(false), alwaysReply(false),
- initialized(false), pendingAcquire(false), pendingUpdate(false),
- pendingAudioProperties(false)
+ audioResource(NULL), autoRelease(initialAutoRelease),
+ alwaysReply(initialAlwaysReply), initialized(false), pendingAcquire(false),
+ pendingUpdate(false), pendingAudioProperties(false)
{
identifier = resourceSetId++;
memset(resourceSet, 0, sizeof(QPointer<Resource *>)*NumberOfTypes);