summaryrefslogtreecommitdiff
path: root/weatherosd.h
diff options
context:
space:
mode:
Diffstat (limited to 'weatherosd.h')
-rw-r--r--weatherosd.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/weatherosd.h b/weatherosd.h
new file mode 100644
index 0000000..d1e757f
--- /dev/null
+++ b/weatherosd.h
@@ -0,0 +1,31 @@
+#ifndef __WEATHEROSD_H
+#define __WEATHEROSD_H
+
+#include <vdr/osdbase.h>
+#include <string>
+#include "libskindesigner/skindesignerosdbase.h"
+#include "libforecastio/forecastio.h"
+
+enum eMenus {
+ meRoot,
+ meDetailCurrent,
+ meDetailHourly,
+ meDetailDaily
+};
+
+class cWeatherOsd : public cSkindesignerOsdMenu {
+private:
+ bool isDetailedView;
+ int lastRootMenuElement;
+ cForecastIO *forecastIO;
+ void SetRootMenu(void);
+ void SetDetailViewCurrent(void);
+ void SetDetailViewHourly(void);
+ void SetDetailViewDaily(void);
+public:
+ cWeatherOsd(cForecastIO *forecastIO);
+ virtual ~cWeatherOsd();
+ virtual eOSState ProcessKey(eKeys key);
+};
+
+#endif //__WEATHEROSD_H \ No newline at end of file