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 + resourceqt-client/client.cpp | 150 +++++++++++++++--------- resourceqt-client/client.h | 1 + 3 files changed, 99 insertions(+), 54 deletions(-) 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(); diff --git a/resourceqt-client/client.cpp b/resourceqt-client/client.cpp index fe15586..23d5acb 100644 --- a/resourceqt-client/client.cpp +++ b/resourceqt-client/client.cpp @@ -59,9 +59,8 @@ Client::Client() commandList["free"] = CommandListArgs("", "destroy and free the resources"); commandList["acquire"] = CommandListArgs("", "acquire required resources"); commandList["release"] = CommandListArgs("", "release resources"); - commandList["update"] = CommandListArgs("", "update modified resource set after add or remove command"); - commandList["add"] = CommandListArgs("reslist [-o]", "add resource list, if -o provided, set as optional"); - commandList["remove"] = CommandListArgs("reslist [-o]", "remove resource list, if -o provided, removed only optional flag"); + commandList["update"] = CommandListArgs("update all[:opt] where 'all' and 'opt' are comma separated resources", + "update the resource set by specifying the new set"); commandList["audio"] = CommandListArgs("pid | group