15 #define TOAST_DISPLAY_TIME 5000L // default 5 seconds 16 #define TOAST_MESSAGE_TIME 1000L // minimal message time 1 second 24 enum eMessageType { Default = 0, Info, Warning, Error };
29 std::string description;
30 std::string imagefile;
32 unsigned int displayTime;
33 unsigned int messageTime;
37 typedef std::queue<Notification> TOASTQUEUE;
39 static void QueueNotification(eMessageType eType,
const std::string& aCaption,
const std::string& aDescription,
unsigned int displayTime = TOAST_DISPLAY_TIME,
bool withSound =
true,
unsigned int messageTime = TOAST_MESSAGE_TIME);
40 static void QueueNotification(
const std::string& aCaption,
const std::string& aDescription);
41 static void QueueNotification(
const std::string& aImageFile,
const std::string& aCaption,
const std::string& aDescription,
unsigned int displayTime = TOAST_DISPLAY_TIME,
bool withSound =
true,
unsigned int messageTime = TOAST_MESSAGE_TIME);
49 static void AddToQueue(
const std::string& aImageFile,
const eMessageType eType,
const std::string& aCaption,
const std::string& aDescription,
unsigned int displayTime,
bool withSound,
unsigned int messageTime);
53 unsigned int m_toastDisplayTime;
54 unsigned int m_toastMessageTime;
56 static TOASTQUEUE m_notifications;
57 static CCriticalSection m_critical;
Definition: GUIDialogKaiToast.h:26
void FrameMove() override
Main update function, called every frame prior to rendering Any window that requires updating on a fr...
Definition: GUIDialogKaiToast.cpp:160
Definition: GUIDialog.h:35
Definition: GUIMessage.h:365
Definition: GUIDialogKaiToast.h:18