From 05f8fa1ebccab6eb55ccbd8a3921bc7016512749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6fman?= Date: Thu, 18 Nov 2010 14:50:40 +0200 Subject: Added bool ResourceSet::initAndConnect() so that one can connect without acquiring. --- libresourceqt/include/qt4/policy/resource-set.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libresourceqt/include/qt4/policy') diff --git a/libresourceqt/include/qt4/policy/resource-set.h b/libresourceqt/include/qt4/policy/resource-set.h index dad892e..03c9d95 100644 --- a/libresourceqt/include/qt4/policy/resource-set.h +++ b/libresourceqt/include/qt4/policy/resource-set.h @@ -208,6 +208,11 @@ public: */ QString applicationClass(); + /** + * Initialize and connect the ResourceEngine of this ResourceSet. + */ + bool initAndConnect(); + /** * Try to acquire the \ref ResourceSet. The resourcesGranted() or * resourcesDenied() signal will be emited depending on whether the -- cgit v1.2.3 From b723c98d18c4fdec1654ea283e5bfd9ea44dc701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6fman?= Date: Fri, 26 Nov 2010 15:26:32 +0200 Subject: Added connectedToManager() signal --- libresourceqt/include/qt4/policy/resource-set.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libresourceqt/include/qt4/policy') diff --git a/libresourceqt/include/qt4/policy/resource-set.h b/libresourceqt/include/qt4/policy/resource-set.h index 03c9d95..538f9ae 100644 --- a/libresourceqt/include/qt4/policy/resource-set.h +++ b/libresourceqt/include/qt4/policy/resource-set.h @@ -298,6 +298,11 @@ signals: */ void errorCallback(quint32, const char*); + /** + * This signals that we have connected to the Resource Manager. + */ + void connectedToManager(); + private: bool initialize(); -- cgit v1.2.3 From bd39d64e2e0c08f323187fe9946c437b5ea8af35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6fman?= Date: Fri, 26 Nov 2010 15:38:14 +0200 Subject: Changed the update command in resourceqt-client to match resource-client. --- libresourceqt/include/qt4/policy/resource-set.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libresourceqt/include/qt4/policy') diff --git a/libresourceqt/include/qt4/policy/resource-set.h b/libresourceqt/include/qt4/policy/resource-set.h index 538f9ae..fbf8bd8 100644 --- a/libresourceqt/include/qt4/policy/resource-set.h +++ b/libresourceqt/include/qt4/policy/resource-set.h @@ -210,6 +210,8 @@ public: /** * 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(); -- cgit v1.2.3