summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-05-22 13:34:23 +0200
committerlouis <louis.braun@gmx.de>2015-05-22 13:34:23 +0200
commitf483aef4a85e9451e2e348541d981b31b5af51d3 (patch)
tree5461b80a8209b285066de0ead30c1e81bdfd6f58 /config.c
parentf9278c805a8d9ff911673b6e635b80e3374db63d (diff)
downloadvdr-plugin-skindesigner-f483aef4a85e9451e2e348541d981b31b5af51d3.tar.gz
vdr-plugin-skindesigner-f483aef4a85e9451e2e348541d981b31b5af51d3.tar.bz2
implemented skininstaller config file
Diffstat (limited to 'config.c')
-rw-r--r--config.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/config.c b/config.c
index b870cec..92feb46 100644
--- a/config.c
+++ b/config.c
@@ -6,6 +6,7 @@ cDesignerConfig::cDesignerConfig() {
tmplGlobals = NULL;
epgImagePathSet = false;
skinPathSet = false;
+ installerSkinPathSet = false;
logoPathSet = false;
//Common
numLogosPerSizeInitial = 30;
@@ -37,12 +38,15 @@ cDesignerConfig::~cDesignerConfig() {
void cDesignerConfig::SetPathes(void) {
if (!skinPathSet)
skinPath = cString::sprintf("%s/skins/", cPlugin::ResourceDirectory(PLUGIN_NAME_I18N));
+ if (!installerSkinPathSet)
+ installerSkinPath = cString::sprintf("%s/installerskins/", cPlugin::ConfigDirectory(PLUGIN_NAME_I18N));
if (!logoPathSet)
logoPath = cString::sprintf("%s/logos/", cPlugin::ResourceDirectory(PLUGIN_NAME_I18N));
if (!epgImagePathSet)
epgImagePath = cString::sprintf("%s/epgimages/", cPlugin::CacheDirectory(PLUGIN_NAME_I18N));
dsyslog("skindesigner: using Skin Directory %s", *skinPath);
+ dsyslog("skindesigner: using Installer Skin Directory %s", *installerSkinPath);
dsyslog("skindesigner: using common ChannelLogo Directory %s", *logoPath);
dsyslog("skindesigner: using EPG Images Directory %s", *epgImagePath);
}
@@ -52,6 +56,11 @@ void cDesignerConfig::SetSkinPath(cString path) {
skinPathSet = true;
}
+void cDesignerConfig::SetInstallerSkinPath(cString path) {
+ installerSkinPath = CheckSlashAtEnd(*path);
+ installerSkinPathSet = true;
+}
+
void cDesignerConfig::SetLogoPath(cString path) {
logoPath = CheckSlashAtEnd(*path);
logoPathSet = true;
@@ -141,7 +150,6 @@ cSkinSetupMenu* cDesignerConfig::GetSkinSetupMenu(string &skin, string &menu) {
cSkinSetup *skinSetup = GetSkinSetup(skin);
if (!skinSetup)
return NULL;
- esyslog("skindesigner: skinsetup found");
return skinSetup->GetMenu(menu);
}
@@ -195,6 +203,19 @@ void cDesignerConfig::SetSkinSetupParameters(void) {
}
}
+void cDesignerConfig::ReadSkinRepos(void) {
+ skinRepos.Read(*skinPath);
+ skinRepos.Debug();
+ /*
+ cSkinRepo *holo = skinRepos.GetRepo("Holo");
+ if (holo) {
+ esyslog("skindesigner: installing Holo");
+ holo->Install(*installerSkinPath);
+ }
+ */
+}
+
+
void cDesignerConfig::UpdateGlobals(void) {
string activeSkin = Setup.OSDSkin;
cSkinSetup *skinSetupActiveSkin = GetSkinSetup(activeSkin);