]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/notifmsg.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / gtk / notifmsg.h
... / ...
CommitLineData
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk/notifmsg.h
3// Purpose: wxNotificationMessage for wxGTK.
4// Author: Vadim Zeitlin
5// Created: 2012-07-25
6// Copyright: (c) 2012 Vadim Zeitlin <vadim@wxwidgets.org>
7// Licence: wxWindows licence
8///////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_GTK_NOTIFMSG_H_
11#define _WX_GTK_NOTIFMSG_H_
12
13typedef struct _NotifyNotification NotifyNotification;
14
15// ----------------------------------------------------------------------------
16// wxNotificationMessage
17// ----------------------------------------------------------------------------
18
19class WXDLLIMPEXP_ADV wxNotificationMessage : public wxNotificationMessageBase
20{
21public:
22 wxNotificationMessage() { Init(); }
23 wxNotificationMessage(const wxString& title,
24 const wxString& message = wxString(),
25 wxWindow *parent = NULL,
26 int flags = wxICON_INFORMATION)
27 : wxNotificationMessageBase(title, message, parent, flags)
28 {
29 Init();
30 }
31
32 virtual ~wxNotificationMessage();
33
34
35 virtual bool Show(int timeout = Timeout_Auto);
36 virtual bool Close();
37
38 // Set the name of the icon to use, overriding the default icon determined
39 // by the flags. Call with empty string to reset custom icon.
40 bool GTKSetIconName(const wxString& name);
41
42private:
43 void Init() { m_notification = NULL; }
44
45 NotifyNotification* m_notification;
46 wxString m_iconName;
47
48 wxDECLARE_NO_COPY_CLASS(wxNotificationMessage);
49};
50
51#endif // _WX_GTK_NOTIFMSG_H_