]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/hildon/notifmsg.h
add #if WXWIN_COMPATIBILITY_2_6 around wxUsleep
[wxWidgets.git] / include / wx / gtk / hildon / notifmsg.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/hildon/notifmsg.h
3 // Purpose: Hildon implementation of wxNotificationMessage
4 // Author: Vadim Zeitlin
5 // Created: 2007-11-21
6 // RCS-ID: $Id$
7 // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_GTK_HILDON_NOTIFMSG_H_
12 #define _WX_GTK_HILDON_NOTIFMSG_H_
13
14 typedef struct _HildonBanner HildonBanner;
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 : wxNotificationMessageBase(title, message, parent)
28 {
29 Init();
30 }
31
32 virtual ~wxNotificationMessage();
33
34
35 virtual bool Show(int timeout = Timeout_Auto);
36 virtual bool Close();
37
38 private:
39 void Init() { m_banner = NULL; }
40
41 // return the string containing markup for both the title and, if
42 // specified, the message
43 wxString HildonGetMarkup() const;
44
45 // returns the widget of the parent GtkWindow to use or NULL
46 GtkWidget *HildonGetWindow() const;
47
48
49 // the banner we're showing, only non-NULL if it's an animation or progress
50 // banner as the informational dialog times out on its own and we don't
51 // need to store it (nor do we have any way to get its widget anyhow)
52 GtkWidget *m_banner;
53
54
55 DECLARE_NO_COPY_CLASS(wxNotificationMessage)
56 };
57
58 #endif // _WX_GTK_HILDON_NOTIFMSG_H_
59