summaryrefslogtreecommitdiff
path: root/vdr-vdrmanager/helpers.h
diff options
context:
space:
mode:
authorbju <bju@maxi.fritz.box>2011-03-31 00:37:16 +0200
committerbju <bju@maxi.fritz.box>2011-03-31 00:37:16 +0200
commit32ba3fb9f2a1f7b073b3a121762385ac237a2af8 (patch)
treef3cbdbe2ced3e202d0c1cd3d037a8ed3108817e2 /vdr-vdrmanager/helpers.h
parentacc1396153d7fb9c22d2b3cee3f2eef383ad681d (diff)
downloadvdr-manager-32ba3fb9f2a1f7b073b3a121762385ac237a2af8.tar.gz
vdr-manager-32ba3fb9f2a1f7b073b3a121762385ac237a2af8.tar.bz2
Renamed from androvdr to vdrmanager
Diffstat (limited to 'vdr-vdrmanager/helpers.h')
-rw-r--r--vdr-vdrmanager/helpers.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/vdr-vdrmanager/helpers.h b/vdr-vdrmanager/helpers.h
new file mode 100644
index 0000000..7fc38d4
--- /dev/null
+++ b/vdr-vdrmanager/helpers.h
@@ -0,0 +1,37 @@
+/*
+ * helper tools
+ */
+
+#include <time.h>
+#include <string>
+#include <vdr/epg.h>
+
+using namespace std;
+
+class cHelpers
+{
+public:
+ static string GetTimers(string args);
+ static string GetChannels(string args);
+ static string GetChannelEvents(string args);
+ static string GetTimeEvents(string args);
+ static string SetTimer(string args);
+ static string SearchEvents(string args);
+ static string ToUpper(string text);
+ static string Trim(string text);
+private:
+ static string SafeCall(string (*)());
+ static string SafeCall(string (*)(string), string arg);
+ static string SafeCall(string (*)(string, string), string arg1, string arg2);
+ static string GetTimersIntern();
+ static string GetChannelsIntern(string wantedChannels);
+ static string GetEventsIntern(string wantedChannels, string when);
+ static string SetTimerIntern(string args);
+ static string SearchEventsIntern(string wantedChannels, string pattern);
+ static bool IsWantedEvent(cEvent * event, string pattern);
+ static bool IsWantedChannel(cChannel * channel, string wantedChannels);
+ static bool IsWantedTime(time_t when, cEvent * event);
+ static string MapSpecialChars(string text);
+ static string ToText(cEvent * event);
+ static string ToText(cTimer * timer);
+};