diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-04-08 17:00:31 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-04-08 17:00:31 +0200 |
commit | 0bb11d711bb02bad0cf4a8694522dff766aa1c54 (patch) | |
tree | 798e07e274d453b6faab28e7f12dd059797192c2 /plugin/status.h | |
parent | a1f19e122cca43e5c07079e99e3544301cf3a1c8 (diff) | |
download | vdr-plugin-markad-0bb11d711bb02bad0cf4a8694522dff766aa1c54.tar.gz vdr-plugin-markad-0bb11d711bb02bad0cf4a8694522dff766aa1c54.tar.bz2 |
Added plugin setup, plugin main menu
Diffstat (limited to 'plugin/status.h')
-rw-r--r-- | plugin/status.h | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/plugin/status.h b/plugin/status.h index fbdd7c7..83dd23f 100644 --- a/plugin/status.h +++ b/plugin/status.h @@ -7,24 +7,52 @@ #ifndef __status_h_ #define __status_h_ +#include <signal.h> #include <vdr/status.h> +#include "setup.h" #define UNUSED(v) UNUSED_ ## v __attribute__((unused)) +struct recs +{ + char *Name; + char *FileName; + pid_t Pid; + char Status; +}; + // --- cStatusMarkAd class cStatusMarkAd : public cStatus { private: - char *recs[MAXDEVICES*MAXRECEIVERS]; + struct recs recs[MAXDEVICES*MAXRECEIVERS]; + struct setup *setup; + const char *bindir; const char *logodir; - void Add(const char *FileName); + + int actpos; + + bool getPid(int Position); + bool getStatus(int Position); + int Recording(); + bool Replaying(); + int Add(const char *FileName, const char *Name); + void Remove(int Position); + void Pause(const char *FileName); + void Continue(const char *FileName); protected: virtual void Recording(const cDevice *Device, const char *Name, const char *FileName, bool On); + virtual void Replaying(const cControl *Control, const char *Name, const char *FileName, bool On); public: - cStatusMarkAd(const char *BinDir,const char *LogoDir); + cStatusMarkAd(const char *BinDir,const char *LogoDir, struct setup *Setup); ~cStatusMarkAd(); bool MarkAdRunning(void); + void ResetActPos(void) + { + actpos=0; + } + bool GetNextActive(struct recs **RecEntry); }; #endif |