10#include <vdr/status.h>
22 virtual void Recording(
const cDevice *Device,
const char *Name,
const char *FileName,
bool On)
override;
23 virtual void Replaying(
const cControl *Control,
const char *Name,
const char *FileName,
bool On)
override;
24 virtual void SetVolume(
int Volume,
bool Absolute)
override;
28 virtual void OsdClear(
void)
override;
29 virtual void OsdTitle(
const char *Title)
override;
31 virtual void OsdHelpKeys(
const char *Red,
const char *Green,
const char *Yellow,
const char *Blue)
override;
32 virtual void OsdItem(
const char *Text,
int Index,
bool Selectable)
override;
34 virtual void OsdTextItem(
const char *Text,
bool Scroll)
override;
35 virtual void OsdChannel(
const char *Text)
override;
36 virtual void OsdProgramme(time_t PresentTime,
const char *PresentTitle,
const char *PresentSubtitle, time_t FollowingTime,
const char *FollowingTitle,
const char *FollowingSubtitle)
override;
41 dsyslog(
"status: cStatusTest::TimerChange %s %d", Timer ? *Timer->
ToText(
true) :
"-", Change);
46 dsyslog(
"status: cStatusTest::ChannelSwitch %d %d %d", Device->
CardIndex(), ChannelNumber, LiveView);
51 dsyslog(
"status: cStatusTest::Recording %d %s %s %d", Device->
CardIndex(), Name, FileName, On);
56 dsyslog(
"status: cStatusTest::Replaying %s %s %d", Name, FileName, On);
61 dsyslog(
"status: cStatusTest::SetVolume %d %d", Volume, Absolute);
71 dsyslog(
"status: cStatusTest::SetAudioChannel %d", AudioChannel);
81 dsyslog(
"status: cStatusTest::OsdClear");
86 dsyslog(
"status: cStatusTest::OsdTitle '%s'", Title);
91 dsyslog(
"status: cStatusTest::OsdStatusMessage %d '%s'", Type, Message);
96 dsyslog(
"status: cStatusTest::OsdHelpKeys %s - %s - %s - %s", Red, Green, Yellow, Blue);
101 dsyslog(
"status: cStatusTest::OsdItem %s %d %d", Text,
Index, Selected);
106 dsyslog(
"status: cStatusTest::OsdCurrentItem %s %d", Text,
Index);
111 dsyslog(
"status: cStatusTest::OsdTextItem %s %d", Text, Scroll);
116 dsyslog(
"status: cStatusTest::OsdChannel %s", Text);
119void cStatusTest::OsdProgramme(time_t PresentTime,
const char *PresentTitle,
const char *PresentSubtitle, time_t FollowingTime,
const char *FollowingTitle,
const char *FollowingSubtitle)
123 dsyslog(
"status: cStatusTest::OsdProgramme");
124 strftime(buffer,
sizeof(buffer),
"%R", localtime_r(&PresentTime, &tm_r));
125 dsyslog(
"%5s %s", buffer, PresentTitle);
126 dsyslog(
"%5s %s",
"", PresentSubtitle);
127 strftime(buffer,
sizeof(buffer),
"%R", localtime_r(&FollowingTime, &tm_r));
128 dsyslog(
"%5s %s", buffer, FollowingTitle);
129 dsyslog(
"%5s %s",
"", FollowingSubtitle);
144 virtual bool ProcessArgs(
int argc,
char *argv[])
override;
145 virtual bool Start(
void)
override;
150 virtual bool SetupParse(
const char *
Name,
const char *Value)
override;
static const char * VERSION
static const char * DESCRIPTION
static const char * MAINMENUENTRY
int CardIndex(void) const
Returns the card index of this device (0 ... MAXDEVICES - 1).
virtual bool ProcessArgs(int argc, char *argv[]) override
virtual void Housekeeping(void) override
virtual const char * CommandLineHelp(void) override
virtual bool SetupParse(const char *Name, const char *Value) override
virtual const char * Version(void) override
virtual cOsdObject * MainMenuAction(void) override
virtual ~cPluginStatus() override
virtual cMenuSetupPage * SetupMenu(void) override
virtual bool Start(void) override
virtual const char * Description(void) override
virtual const char * MainMenuEntry(void) override
virtual void Recording(const cDevice *Device, const char *Name, const char *FileName, bool On) override
virtual void SetVolume(int Volume, bool Absolute) override
virtual void SetSubtitleTrack(int Index, const char *const *Tracks) override
virtual void OsdCurrentItem(const char *Text, int Index) override
virtual void TimerChange(const cTimer *Timer, eTimerChange Change) override
virtual void OsdHelpKeys(const char *Red, const char *Green, const char *Yellow, const char *Blue) override
virtual void OsdChannel(const char *Text) override
virtual void Replaying(const cControl *Control, const char *Name, const char *FileName, bool On) override
virtual void OsdTextItem(const char *Text, bool Scroll) override
virtual void OsdTitle(const char *Title) override
virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView) override
virtual void OsdProgramme(time_t PresentTime, const char *PresentTitle, const char *PresentSubtitle, time_t FollowingTime, const char *FollowingTitle, const char *FollowingSubtitle) override
virtual void OsdStatusMessage(eMessageType Type, const char *Message) override
virtual void SetAudioTrack(int Index, const char *const *Tracks) override
virtual void OsdItem(const char *Text, int Index, bool Selectable) override
virtual void SetAudioChannel(int AudioChannel) override
virtual void OsdClear(void) override
cString ToText(bool UseChannelID=false) const
static const char * VERSION
static const char * DESCRIPTION
static const char * MAINMENUENTRY
#define VDRPLUGINCREATOR(PluginClass)