aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/libkvitheme.cpp
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2007-01-10 01:34:47 +0000
committerGravatar Szymon Tomasz Stefanek2007-01-10 01:34:47 +0000
commitc7caa2579263eb0ec07625627e9d090f1292a0b0 (patch)
treee6744b330ed28b0a319edd172a86c605de68a99d /src/modules/theme/libkvitheme.cpp
parentctrl+w, alt+backspace shortcuts (diff)
downloadKVIrc-c7caa2579263eb0ec07625627e9d090f1292a0b0.tar.gz
KVIrc-c7caa2579263eb0ec07625627e9d090f1292a0b0.tar.bz2
KVIrc-c7caa2579263eb0ec07625627e9d090f1292a0b0.zip
More work on the themeing engine
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@150 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/theme/libkvitheme.cpp')
-rw-r--r--src/modules/theme/libkvitheme.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/modules/theme/libkvitheme.cpp b/src/modules/theme/libkvitheme.cpp
index 72b6261a3..12c7786ca 100644
--- a/src/modules/theme/libkvitheme.cpp
+++ b/src/modules/theme/libkvitheme.cpp
@@ -36,6 +36,7 @@
#include "kvi_sourcesdate.h"
#include "managementdialog.h"
+#include "themefunctions.h"
QRect g_rectManagementDialogGeometry(0,0,0,0);
@@ -56,6 +57,19 @@ QRect g_rectManagementDialogGeometry(0,0,0,0);
static bool theme_kvs_cmd_install(KviKvsModuleCommandCall * c)
{
+ QString szThemePackFile;
+
+ KVSM_PARAMETERS_BEGIN(c)
+ KVSM_PARAMETER("package_path",KVS_PT_STRING,0,szThemePackFile)
+ KVSM_PARAMETERS_END(c)
+
+ QString szError;
+ if(!KviThemeFunctions::installThemePackage(szThemePackFile,szError))
+ {
+ c->error(__tr2qs_ctx("Error installing theme package: %Q","theme"),&szError);
+ return false;
+ }
+
return true;
}