summaryrefslogtreecommitdiff
path: root/weatherosd.h
blob: d1e757fea853d532f3ea787ccc87df57cb8c6f6d (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
28
29
30
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