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.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/libresourceqt/src/resource-set.cpp b/libresourceqt/src/resource-set.cpp
index 3652939..bbb8d6e 100644
--- a/libresourceqt/src/resource-set.cpp
+++ b/libresourceqt/src/resource-set.cpp
@@ -174,14 +174,30 @@ QString ResourceSet::applicationClass()
return this->resourceClass;
}
-void ResourceSet::setAutoRelease()
+bool ResourceSet::setAutoRelease()
{
+ if(initialized)
+ return false;
autoRelease = true;
+ return true;
+}
+
+bool ResourceSet::willAutoRelease()
+{
+ return autoRelease;
}
-void ResourceSet::setAlwaysReply()
+bool ResourceSet::setAlwaysReply()
{
+ if(initialized)
+ return false;
alwaysReply = true;
+ return true;
+}
+
+bool ResourceSet::alwaysGetReply()
+{
+ return alwaysReply;
}
void ResourceSet::connectedHandler()