vdr-plugin-tvguide/messagebox.h

29 lines
727 B
C
Raw Normal View History

2013-01-17 13:16:44 +01:00
#ifndef __TVGUIDE_MESSAGEBOX_H
#define __TVGUIDE_MESSAGEBOX_H
// --- cMessageBox -------------------------------------------------------------
class cMessageBoxThread : public cThread {
private:
2013-05-26 11:38:05 +02:00
cPixmap *content;
int FadeTime;
int FrameTime;
int displayTime;
virtual void Action(void);
2013-01-17 13:16:44 +01:00
public:
2013-05-26 11:38:05 +02:00
cMessageBoxThread(cPixmap *content, int displayTime);
virtual ~cMessageBoxThread(void);
2013-01-17 13:16:44 +01:00
};
class cMessageBox {
private:
2013-05-26 11:38:05 +02:00
static cMutex mutex;
static cMessageBoxThread *msgboxThread;
static cPixmap *content;
2013-01-17 13:16:44 +01:00
public:
2013-05-26 11:38:05 +02:00
static bool Start(int displayTime, cString msg);
static void Stop(void);
static void Destroy(void);
2013-01-17 13:16:44 +01:00
};
#endif //__TVGUIDE_MESSAGEBOX_H