From c7caa2579263eb0ec07625627e9d090f1292a0b0 Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Wed, 10 Jan 2007 01:34:47 +0000 Subject: More work on the themeing engine git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@150 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/theme/libkvitheme.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/modules/theme/libkvitheme.cpp') 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; } -- cgit v1.3.1-10-gc9f91