summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-11-09 15:54:37 +0200
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-11-09 15:54:37 +0200
commit25e8d19e13b0fe85a1233c650f36b9527c641560 (patch)
treebdcf3961e8e271f39d04dfceda18aa75ae85dcf4
parent2527f203a61103fa2c681156f328a196f264e1f6 (diff)
downloadlibresourceqt-25e8d19e13b0fe85a1233c650f36b9527c641560.tar.gz
Added support for -v flag to turn on debugging
-rw-r--r--libresourceqt/src/resource-engine.cpp2
-rw-r--r--resourceqt-client/commandlineparser.cpp5
2 files changed, 6 insertions, 1 deletions
diff --git a/libresourceqt/src/resource-engine.cpp b/libresourceqt/src/resource-engine.cpp
index 20cd157..b9d9ee2 100644
--- a/libresourceqt/src/resource-engine.cpp
+++ b/libresourceqt/src/resource-engine.cpp
@@ -230,7 +230,7 @@ void ResourceEngine::receivedAdvice(resmsg_notify_t *message)
{
uint32_t allResources = allResourcesToBitmask(resourceSet);
qDebug("ResourceEngine(%d) - %s: have: %02x got %02x", identifier, __FUNCTION__, allResources, message->resrc);
- emit resourcesBecameAvailable(message->resrc);
+ emit resourcesBecameAvailable(message->resrc);
}
bool ResourceEngine::connectToManager()
diff --git a/resourceqt-client/commandlineparser.cpp b/resourceqt-client/commandlineparser.cpp
index 2e1a7ce..f169801 100644
--- a/resourceqt-client/commandlineparser.cpp
+++ b/resourceqt-client/commandlineparser.cpp
@@ -22,6 +22,8 @@ USA.
#include <QDebug>
#include "commandlineparser.h"
+extern bool verbose;
+
QHash<QString, ResourcePolicy::ResourceType> CommandLineParser::resourceValues;
CommandLineParser::CommandLineParser():
@@ -77,6 +79,9 @@ bool CommandLineParser::parseArguments()
case 'u':
allowUnkownResourceClass = true;
break;
+ case 'v':
+ verbose = true;
+ break;
case 'h':
default:
usage();