diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-12-01 16:28:01 +0200 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-12-01 16:28:01 +0200 |
commit | bece735d920909a83e290a790be0d76224653b07 (patch) | |
tree | 2d56daf9f1cc79039a7d9c40722ab566ab9ad424 /libresourceqt/include/qt4/policy/resource-set.h | |
parent | 6a47ede3a71e22b09a09169818705351c00abf9d (diff) | |
parent | 78db2c0b916d68a0c4056d4be7228a606b2f9dac (diff) |
Merge branch 'master' into meego
Diffstat (limited to 'libresourceqt/include/qt4/policy/resource-set.h')
-rw-r--r-- | libresourceqt/include/qt4/policy/resource-set.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libresourceqt/include/qt4/policy/resource-set.h b/libresourceqt/include/qt4/policy/resource-set.h index dad892e..a36254d 100644 --- a/libresourceqt/include/qt4/policy/resource-set.h +++ b/libresourceqt/include/qt4/policy/resource-set.h @@ -104,6 +104,10 @@ USA. * So it is important that you connect to it. * * To modify the properties of the resources you can use the ResourcePolicy::ResourceSet::resource() method. + * + * \section see_devel_doc See Also + * For a more detailed guide see the + * <a href="https://projects.maemo.org/mediawiki/index.php/Maemo_Developer_Guide/Developing_Harmattan_applications/Application_policy_guidelines">Application policy guidelines</a>. */ /** @@ -209,6 +213,13 @@ public: QString applicationClass(); /** + * Initialize and connect the ResourceEngine of this ResourceSet. + * Use this method after adding resources to the ResourceSet initially. + * \return true if the method succeeds without encountering errors. + */ + bool initAndConnect(); + + /** * Try to acquire the \ref ResourceSet. The resourcesGranted() or * resourcesDenied() signal will be emited depending on whether the * requested resources could be acquired or not. @@ -280,6 +291,12 @@ signals: */ void resourcesReleased(); /** + * This signal is emited when the manager releases our acquired resources, + * so that we have to acquire them again when the user wishes to interact + * with us. + */ + void resourcesReleasedByManager(); + /** * This signal is emitted when some other program with a higher priority * supersedes us, and as a result we loose (some of) our resources. * It is very important to connect to this signal as it is signaling when @@ -293,6 +310,11 @@ signals: */ void errorCallback(quint32, const char*); + /** + * This signals that we have connected to the Resource Manager. + */ + void connectedToManager(); + private: bool initialize(); |