]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/notifmsg.h
Implement wxNotificationMessage using libnotify in wxGTK.
[wxWidgets.git] / include / wx / gtk / notifmsg.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/notifmsg.h
3 // Purpose: wxNotificationMessage for wxGTK.
4 // Author: Vadim Zeitlin
5 // Created: 2012-07-25
6 // RCS-ID: $Id$
7 // Copyright: (c) 2012 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_GTK_NOTIFMSG_H_
12 #define _WX_GTK_NOTIFMSG_H_
13
14 typedef struct _NotifyNotification NotifyNotification;
15
16 // ----------------------------------------------------------------------------
17 // wxNotificationMessage
18 // ----------------------------------------------------------------------------
19
20 class WXDLLIMPEXP_ADV wxNotificationMessage : public wxNotificationMessageBase
21 {
22 public:
23 wxNotificationMessage() { Init(); }
24 wxNotificationMessage(const wxString& title,
25 const wxString& message = wxString(),
26 wxWindow *parent = NULL,
27 int flags = wxICON_INFORMATION)
28 : wxNotificationMessageBase(title, message, parent, flags)
29 {
30 Init();
31 }
32
33 virtual ~wxNotificationMessage();
34
35
36 virtual bool Show(int timeout = Timeout_Auto);
37 virtual bool Close();
38
39 private:
40 void Init() { m_notification = NULL; }
41
42 NotifyNotification* m_notification;
43
44 wxDECLARE_NO_COPY_CLASS(wxNotificationMessage);
45 };
46
47 #endif // _WX_GTK_NOTIFMSG_H_