summaryrefslogtreecommitdiff
path: root/libresourceqt/src/resource-set.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-set.cpp
parent8fe83d5fd968d7e475600691bd9a72f5f888a8c9 (diff)
downloadlibresourceqt-80042b6e527238d11dd2c955e47b652941c2ba6e.tar.gz
Updated API to hide the whole resource manager and stuff
Diffstat (limited to 'libresourceqt/src/resource-set.cpp')
-rw-r--r--libresourceqt/src/resource-set.cpp41
1 files changed, 29 insertions, 12 deletions
diff --git a/libresourceqt/src/resource-set.cpp b/libresourceqt/src/resource-set.cpp
index 64bdf8e..f8f3826 100644
--- a/libresourceqt/src/resource-set.cpp
+++ b/libresourceqt/src/resource-set.cpp
@@ -3,7 +3,9 @@ using namespace ResourcePolicy;
ResourceSet::ResourceSet(const QString &applicationClass, QObject * parent)
- : QObject(parent), resourceClass(applicationClass)
+ : QObject(parent), resourceClass(applicationClass), autoRelease(false),
+ alwaysReply(false)
+
{
identifier = (quint32)this;
memset(resourceSet, 0, sizeof(QPointer<Resource *>)*NumberOfTypes);
@@ -16,8 +18,16 @@ ResourceSet::~ResourceSet()
}
}
+bool ResourceSet::finalize()
+{
+ return false;
+}
+
void ResourceSet::addResource(const Resource *resource)
{
+ if((resource->type() == AudioPlaybackType) || (resource->type() == AudioRecorderType)) {
+ qDebug("audioResource...");
+ }
resourceSet[resource->type()] = resource->clone();
}
@@ -80,36 +90,43 @@ Resource * ResourceSet::resource(ResourceType type) const
return NULL;
}
-bool ResourceSet::connectToManager(bool reconnectOnDisconnect)
+bool ResourceSet::acquire()
{
return false;
}
-void ResourceSet::disconnectFromManager()
+bool ResourceSet::release()
{
+ return false;
}
-bool ResourceSet::isConnectedToManager()
+bool ResourceSet::update()
{
return false;
}
-bool ResourceSet::acquire()
+QString ResourceSet::applicationClass()
{
- return false;
+ return this->resourceClass;
}
-bool ResourceSet::release()
+void ResourceSet::setAutoRelease()
{
- return false;
+ autoRelease = true;
}
-bool ResourceSet::update()
+void ResourceSet::unsetAutoRelease()
{
- return false;
+ autoRelease = false;
}
-QString ResourceSet::applicationClass()
+void ResourceSet::setAlwaysReply()
{
- return this->resourceClass;
+ alwaysReply = true;
+}
+
+void ResourceSet::unsetAlwaysReply()
+{
+ alwaysReply = false;
}
+