summaryrefslogtreecommitdiff
path: root/weatherosd.h
blob: 58f12d551bfbde853edceb928a7292fb33b4f1df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __WEATHEROSD_H
#define __WEATHEROSD_H

#include <vdr/osdbase.h>
#include <string>
#include <libskindesignerapi/skindesignerapi.h>
#include <libskindesignerapi/skindesignerosdbase.h>
#include "libforecastio/forecastio.h"
#include "definitions.h"

class cWeatherOsd : public skindesignerapi::cSkindesignerOsdMenu {
private:
    bool isDetailedView;
    int lastRootMenuElement;
    cForecastIO *forecastIO;
    void SetRootMenu(void);
    void SetDetailViewCurrent(void);
    void SetDetailViewHourly(void);
    void SetDetailViewDaily(void);
public:
    cWeatherOsd(cForecastIO *forecastIO, skindesignerapi::cPluginStructure *plugStruct);
    virtual ~cWeatherOsd();
    virtual eOSState ProcessKey(eKeys key);
    static void DefineTokens(eMenus menu, skindesignerapi::cTokenContainer *tk);
};

#endif //__WEATHEROSD_H