1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/notifmsg.h
3 // Purpose: generic implementation of wxGenericNotificationMessage
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GENERIC_NOTIFMSG_H_
11 #define _WX_GENERIC_NOTIFMSG_H_
13 class wxNotificationMessageDialog
;
15 // ----------------------------------------------------------------------------
16 // wxGenericNotificationMessage
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_ADV wxGenericNotificationMessage
: public wxNotificationMessageBase
22 wxGenericNotificationMessage() { Init(); }
23 wxGenericNotificationMessage(const wxString
& title
,
24 const wxString
& message
= wxString(),
25 wxWindow
*parent
= NULL
,
26 int flags
= wxICON_INFORMATION
)
27 : wxNotificationMessageBase(title
, message
, parent
, flags
)
32 virtual ~wxGenericNotificationMessage();
35 virtual bool Show(int timeout
= Timeout_Auto
);
38 // generic implementation-specific methods
40 // get/set the default timeout (used if Timeout_Auto is specified)
41 static int GetDefaultTimeout() { return ms_timeout
; }
42 static void SetDefaultTimeout(int timeout
);
49 static int ms_timeout
;
51 // notification message is represented by a modeless dialog in this
53 wxNotificationMessageDialog
*m_dialog
;
56 wxDECLARE_NO_COPY_CLASS(wxGenericNotificationMessage
);
59 #endif // _WX_GENERIC_NOTIFMSG_H_