summaryrefslogtreecommitdiff
path: root/messagebox.h
blob: 8b9ab23dfc57913c50d00ad3aac6b1dcb6605363 (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 __TVGUIDE_MESSAGEBOX_H
#define __TVGUIDE_MESSAGEBOX_H

class cMessageBoxThreadPool;

// --- cMessageBox  -------------------------------------------------------------

class cMessageBoxThread : public cThread {
private:
	cPixmap *content;
	int FadeTime;
	int FrameTime;
	int displayTime;
	virtual void Action(void);
public:
	cMessageBoxThread(cPixmap *content, int displayTime);
	virtual ~cMessageBoxThread(void);
};

class cMessageBox {
private:
	static cMutex mutex;
	static cMessageBoxThread *msgboxThread;
	static cPixmap *content;
public:
	static bool Start(int displayTime, cString msg);
	static void Stop(void);
	static void Destroy(void);
};

#endif //__TVGUIDE_MESSAGEBOX_H