1 /////////////////////////////////////////////////////////////////////////////// 2 // Name: wx/generic/notifmsg.h 3 // Purpose: generic implementation of wxGenericNotificationMessage 4 // Author: Vadim Zeitlin 5 // Created: 2007-11-24 6 // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwidgets.org> 7 // Licence: wxWindows licence 8 /////////////////////////////////////////////////////////////////////////////// 9 10 #ifndef _WX_GENERIC_NOTIFMSG_H_ 11 #define _WX_GENERIC_NOTIFMSG_H_ 12 13 // ---------------------------------------------------------------------------- 14 // wxGenericNotificationMessage 15 // ---------------------------------------------------------------------------- 16 17 class WXDLLIMPEXP_ADV wxGenericNotificationMessage : public wxNotificationMessageBase 18 { 19 public: wxGenericNotificationMessage()20 wxGenericNotificationMessage() 21 { 22 Init(); 23 } 24 25 wxGenericNotificationMessage(const wxString& title, 26 const wxString& message = wxString(), 27 wxWindow *parent = NULL, 28 int flags = wxICON_INFORMATION) 29 { 30 Init(); 31 Create(title, message, parent, flags); 32 } 33 34 // generic implementation-specific methods 35 36 // get/set the default timeout (used if Timeout_Auto is specified) 37 static int GetDefaultTimeout(); 38 static void SetDefaultTimeout(int timeout); 39 40 private: 41 void Init(); 42 43 wxDECLARE_NO_COPY_CLASS(wxGenericNotificationMessage); 44 }; 45 46 #endif // _WX_GENERIC_NOTIFMSG_H_ 47 48