From fdb67c341fcb9ea0ae29a7889227ded6ac66a362 Mon Sep 17 00:00:00 2001 From: Wolf Bergenheim Date: Wed, 17 Feb 2010 15:23:29 +0200 Subject: Implemented modes => we now get deny messages --- libresourceqt/include/qt4/policy/resource-set.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'libresourceqt/include') diff --git a/libresourceqt/include/qt4/policy/resource-set.h b/libresourceqt/include/qt4/policy/resource-set.h index 1f38c11..8f0c7a6 100644 --- a/libresourceqt/include/qt4/policy/resource-set.h +++ b/libresourceqt/include/qt4/policy/resource-set.h @@ -163,16 +163,23 @@ public: * re-gain our resources without having to re-request them. However if * the AutoRelease is set we release the resources and need to re-acquire * them, when the pre-emting application releases it s resources. + * * This feature is by default disabled. - * Remember to call update() when changing this. + * + * This flag should be set once only before the first acquire is called, + * and cannot be unset. */ - void setAutoRelease(); + bool setAutoRelease(); + bool willAutoRelease(); /** * Sets that the resourcesGranted() signal is emited even if we already * have the requested resources granted. By default this feature is off. - * This flag should be set once only before finalize is called, and cannot be unset. + * + * This flag should be set once only before the first acquire is called, + * and cannot be unset. */ - void setAlwaysReply(); + bool setAlwaysReply(); + bool alwaysGetReply(); signals: /** -- cgit v1.2.3