summaryrefslogtreecommitdiff
path: root/resourceqt-client/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'resourceqt-client/client.cpp')
-rw-r--r--resourceqt-client/client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/resourceqt-client/client.cpp b/resourceqt-client/client.cpp
index e0adbd0..c7e97f6 100644
--- a/resourceqt-client/client.cpp
+++ b/resourceqt-client/client.cpp
@@ -367,6 +367,7 @@ void Client::timerEvent(QTimerEvent*)
printf("Available commands:\n");
printf("\t help \tprint this help message\n");
printf("\t quit \texit application\n");
+ printf("\t free \tdestroy and free the resources\n");
printf("\t acquire\tacquire required resources\n");
printf("\t release\trelease resources\n");
printf("\t update\tupdate modified resource set after add or remove command\n");
@@ -513,6 +514,10 @@ void Client::timerEvent(QTimerEvent*)
}
}
}
+ else if (params[0] == "free") {
+ delete resourceSet;
+ resourceSet = new ResourceSet(applicationClass);
+ }
else if (!params[0].isEmpty()) {
QByteArray ba = line.toLatin1();
const char *c_line = ba.data();