blob: 410ef6aae30758e059c2d88c94341012fb4b4af2 (
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
|
#ifndef __RUN_H
#define __RUN_H
#include <vdr/keys.h>
enum eOrgin {oStartUp, oShutDown, oRunning};
class cRun {
private:
char *myConfigDirectory;
char *myCacheDirectory;
char *myResourceDirectory;
cKey myKey;
static const char *OrginToString(eOrgin Orgin);
static const char *ActivityStatusToString(bool Active);
public:
cRun() { };
~cRun();
void SetConfigDirectory(const char *Directory);
void SetCacheDirectory(const char *Directory);
void SetResourceDirectory(const char *Directory);
void CallActivity(eOrgin Orgin, bool Active);
void CallKey(eOrgin Orgin, eKeys Key);
void CallWatchdog(eOrgin Orgin, bool Active);
};
extern cRun Run;
#endif //__RUN_H
|