summaryrefslogtreecommitdiff
path: root/resourceqt-client/client.h
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-08-25 11:28:10 +0300
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-09-06 14:36:42 +0300
commit2a45589132802628d7e61b40a8fb510d5d5e19d1 (patch)
treed684dabd489a5701893aab343299ac5e42348b07 /resourceqt-client/client.h
parent4f784dc5fd2178b98a19c0b60c5bbf5ea92782fa (diff)
downloadlibresourceqt-2a45589132802628d7e61b40a8fb510d5d5e19d1.tar.gz
Replaced printf with QTextStream
Diffstat (limited to 'resourceqt-client/client.h')
-rw-r--r--resourceqt-client/client.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/resourceqt-client/client.h b/resourceqt-client/client.h
index 249a7a8..36e6d48 100644
--- a/resourceqt-client/client.h
+++ b/resourceqt-client/client.h
@@ -11,6 +11,16 @@
#include "commandlineparser.h"
#include "time-stat.h"
+class CommandListArgs
+{
+public:
+ CommandListArgs(const QString &arguments, const QString &helpText);
+ CommandListArgs();
+ ~CommandListArgs();
+ QString args;
+ QString help;
+};
+
class Client : public QObject
{
Q_OBJECT
@@ -35,18 +45,18 @@ protected:
private:
QTextStream standardInput;
int mainTimerID;
-
QString applicationClass;
-
ResourcePolicy::ResourceSet *resourceSet;
+ QTextStream output;
+
+ static QMap<QString, CommandListArgs> commandList;
ResourcePolicy::Resource* allocateResource(ResourcePolicy::ResourceType resource, bool optional);
ResourcePolicy::ResourceType getResourceType(uint32_t resource);
void showPrompt();
- void showResources(const QList<ResourcePolicy::ResourceType> resList);
- void showResources(const QList<ResourcePolicy::Resource*> resList);
- void updateSet(uint32_t list, uint32_t optional, bool remove);
+ void showResources(const QList<ResourcePolicy::ResourceType> &resList);
+ void showResources(const QList<ResourcePolicy::Resource*> &resList);
};
#endif