diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-02-10 11:55:19 +0200 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-02-10 13:52:50 +0200 |
commit | 80042b6e527238d11dd2c955e47b652941c2ba6e (patch) | |
tree | 5f9bcc28129af5235742af32d26817a06ddf1800 /libresourceqt/include/qt4/policy/resource.h | |
parent | 8fe83d5fd968d7e475600691bd9a72f5f888a8c9 (diff) |
Updated API to hide the whole resource manager and stuff
Diffstat (limited to 'libresourceqt/include/qt4/policy/resource.h')
-rw-r--r-- | libresourceqt/include/qt4/policy/resource.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/libresourceqt/include/qt4/policy/resource.h b/libresourceqt/include/qt4/policy/resource.h index 13265d5..4b68ab1 100644 --- a/libresourceqt/include/qt4/policy/resource.h +++ b/libresourceqt/include/qt4/policy/resource.h @@ -45,21 +45,7 @@ namespace ResourcePolicy { * programs are allowed to share this resource. * \return true when this resource is shared. */ - bool isShared() const; - /** - * Sets the resource to be shared/private. - * \param resourceIsShared This optional parameter defaults to true. - * When it is set to true (de default) the resource is shared with - * other programs. Setting it to false makes this resource exclusive. - */ - void setShared(bool resourceIsShared=true); - /** - * Whether or not this resource has been granted. - * \return true if this resource has been granted. - */ bool isGranted() const; - void setGranted(); - void unsetGranted(); virtual ResourceType type() const = 0; virtual Resource * clone() const = 0; @@ -70,9 +56,12 @@ namespace ResourcePolicy { ResourceType resourceType; bool optional; - bool shared; quint32 identifier; + private: + void setGranted(); + void unsetGranted(); bool granted; + }; } |