1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/notifmsg.h
3 // Purpose: generic implementation of wxNotificationMessage
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_GENERIC_NOTIFMSG_H_
12 #define _WX_GENERIC_NOTIFMSG_H_
14 class wxNotificationMessageDialog
;
16 // ----------------------------------------------------------------------------
17 // wxNotificationMessage
18 // ----------------------------------------------------------------------------
20 class WXDLLIMPEXP_ADV wxNotificationMessage
: public wxNotificationMessageBase
23 wxNotificationMessage() { Init(); }
24 wxNotificationMessage(const wxString
& title
,
25 const wxString
& message
= wxString(),
26 wxWindow
*parent
= NULL
)
27 : wxNotificationMessageBase(title
, message
, parent
)
32 virtual ~wxNotificationMessage();
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 DECLARE_NO_COPY_CLASS(wxNotificationMessage
)
59 #endif // _WX_GENERIC_NOTIFMSG_H_