// Purpose: class allowing to show notification messages to the user
// Author: Vadim Zeitlin
// Created: 2007-11-19
-// RCS-ID: $Id$
// Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// create a notification object with the given title and message (the
// latter may be empty in which case only the title will be shown)
wxNotificationMessageBase(const wxString& title,
- const wxString& message = wxString(),
+ const wxString& message = wxEmptyString,
wxWindow *parent = NULL,
int flags = wxICON_INFORMATION)
: m_title(title),
int m_flags;
- DECLARE_NO_COPY_CLASS(wxNotificationMessageBase)
+ wxDECLARE_NO_COPY_CLASS(wxNotificationMessageBase);
};
-#if defined(__WXGTK__) && wxUSE_LIBHILDON
- #include "wx/gtk/hildon/notifmsg.h"
/*
- TODO: provide support for
- - libnotify (Gnome)
- - Growl (http://growl.info/, OS X)
+ TODO: Implement under OS X using notification centre (10.8+) or
+ Growl (http://growl.info/) for the previous versions.
*/
-#elif defined(__WXMSW__) && wxUSE_TASKBARICON
+#if defined(__WXGTK__) && wxUSE_LIBNOTIFY
+ #include "wx/gtk/notifmsg.h"
+#elif defined(__WXGTK__) && (wxUSE_LIBHILDON || wxUSE_LIBHILDON2)
+ #include "wx/gtk/hildon/notifmsg.h"
+#elif defined(__WXMSW__) && wxUSE_TASKBARICON && wxUSE_TASKBARICON_BALLOONS
#include "wx/msw/notifmsg.h"
#else
#include "wx/generic/notifmsg.h"
public:
wxNotificationMessage() { }
wxNotificationMessage(const wxString& title,
- const wxString& message = wxString(),
+ const wxString& message = wxEmptyString,
wxWindow *parent = NULL,
int flags = wxICON_INFORMATION)
: wxGenericNotificationMessage(title, message, parent, flags)