summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/custommainmenuitem.cpp2
-rw-r--r--src/custommainmenuitem.h5
-rw-r--r--src/i18n.h6
-rw-r--r--src/pluginmainmenuitem.cpp2
-rw-r--r--src/pluginmainmenuitem.h5
-rw-r--r--src/xmlmenu.cpp27
-rw-r--r--src/xmlmenu.h2
7 files changed, 22 insertions, 27 deletions
diff --git a/src/custommainmenuitem.cpp b/src/custommainmenuitem.cpp
index 2afded8..f2004ce 100644
--- a/src/custommainmenuitem.cpp
+++ b/src/custommainmenuitem.cpp
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * $Id$
+ * $Id:$
*
*/
diff --git a/src/custommainmenuitem.h b/src/custommainmenuitem.h
index 11316dd..1d18c1e 100644
--- a/src/custommainmenuitem.h
+++ b/src/custommainmenuitem.h
@@ -20,6 +20,9 @@
*
*/
+#ifndef ___CUSTOMMAINMENUITEM_H
+#define ___CUSTOMMAINMENUITEM_H
+
#include <vdr/menuorgpatch.h>
class CustomMainMenuItem: public MenuOrgPatch::IMainMenuItem
@@ -35,3 +38,5 @@ class CustomMainMenuItem: public MenuOrgPatch::IMainMenuItem
virtual const char* PluginMenuEntry();
virtual int PluginIndex();
};
+
+#endif
diff --git a/src/i18n.h b/src/i18n.h
index 1b4905b..739759c 100644
--- a/src/i18n.h
+++ b/src/i18n.h
@@ -16,12 +16,12 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * $Id:$
+ * $Id$
*
*/
-#ifndef _I18N__H
-#define _I18N__H
+#ifndef ___I18N__H
+#define ___I18N__H
#include <vdr/i18n.h>
diff --git a/src/pluginmainmenuitem.cpp b/src/pluginmainmenuitem.cpp
index 6a47418..d617ee9 100644
--- a/src/pluginmainmenuitem.cpp
+++ b/src/pluginmainmenuitem.cpp
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * $Id$
+ * $Id:$
*
*/
diff --git a/src/pluginmainmenuitem.h b/src/pluginmainmenuitem.h
index ce54e3b..287ba0c 100644
--- a/src/pluginmainmenuitem.h
+++ b/src/pluginmainmenuitem.h
@@ -20,6 +20,9 @@
*
*/
+#ifndef ___PLUGINMAINMENUITEM_H
+#define ___PLUGINMAINMENUITEM_H
+
#include <vdr/menuorgpatch.h>
class PluginMainMenuItem: public MenuOrgPatch::IMainMenuItem
@@ -36,3 +39,5 @@ class PluginMainMenuItem: public MenuOrgPatch::IMainMenuItem
virtual const char* PluginMenuEntry();
virtual int PluginIndex();
};
+
+#endif
diff --git a/src/xmlmenu.cpp b/src/xmlmenu.cpp
index f4e36c4..4b09772 100644
--- a/src/xmlmenu.cpp
+++ b/src/xmlmenu.cpp
@@ -16,12 +16,11 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * $Id$
+ * $Id:$
*
*/
#include "xmlmenu.h"
-#include <iostream>
#include <libxml++/libxml++.h>
#include <exception>
#include <vdr/plugin.h>
@@ -38,10 +37,10 @@ MenuNode* XmlMenu::LoadXmlMenu(string menuFileName, string schemaFileName)
try
{
- dsyslog("loading menuorg config file from %s and schema from %s",menuFileName.data(), schemaFileName.data());
+ dsyslog("loading menuorg config file from %s and schema from %s", menuFileName.c_str(), schemaFileName.c_str());
DomParser parser;
- parser.set_substitute_entities(); //We just want the text to be resolved/unescaped automatically.
+ parser.set_substitute_entities();
parser.parse_file(menuFileName);
DtdValidator validator(schemaFileName);
@@ -56,24 +55,9 @@ MenuNode* XmlMenu::LoadXmlMenu(string menuFileName, string schemaFileName)
delete menuRoot;
menuRoot = NULL;
- //TODO: print output to syslog (isyslog or dsyslog?)
- cout << "Exception caught: " << ex.what() << endl;
- isyslog("Exception caught: %s", ex.what());
- //TODO: display message on osd
+ esyslog("Exception caught when parsing xml configuration: %s", ex.what());
}
-/*
- catch(const xmlpp::parse_error& ex)
- {
- // DTD or document is not well-formed
- delete menuRoot;
- menuRoot = NULL;
- }
- catch (const xmlpp::validation_error& ex)
- {
- // document is not valid
- delete menuRoot;
- menuRoot = NULL;
- }*/
+
return menuRoot;
}
@@ -179,5 +163,6 @@ bool XmlMenu::FindPluginByName(string name, const char** mainMenuEntry, int& plu
}
i++;
}
+
return false;
}
diff --git a/src/xmlmenu.h b/src/xmlmenu.h
index f8da182..55a595f 100644
--- a/src/xmlmenu.h
+++ b/src/xmlmenu.h
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * $Id$
+ * $Id:$
*
*/