|
Freya
0.0.1
A Gtk3 MPD Client
|
A Singletonclass to provide Access to libnotify, use the macros down preferrably. More...
#include <Notify.hh>
Public Member Functions | |
| ~Notify () | |
| void | send_big (Glib::ustring hl, Glib::ustring msg) |
| Calls libnotifys notify-send indirectly. | |
| void | send_full (Glib::ustring hl, Glib::ustring msg, GdkPixbuf *pixbuf) |
| Equivalent to send_big() but with an Imageicon. | |
| void | set_stock_icon (const char *stock) |
| Sets the Image to be displayed in the next Notification to a Stock-Icon. | |
| void | set_next_extra () |
| Detaches the next Notifcation, causing it to be displayed seperately rather than replacing the default Notification. | |
Friends | |
| class | Browser::Settings |
A Singletonclass to provide Access to libnotify, use the macros down preferrably.
| void Notify::Notify::send_big | ( | Glib::ustring | hl, |
| Glib::ustring | msg | ||
| ) |
Calls libnotifys notify-send indirectly.
| hl | The headline of the Notification-Popup. |
| msg | Actual text to display. |
| void Notify::Notify::send_full | ( | Glib::ustring | hl, |
| Glib::ustring | msg, | ||
| GdkPixbuf * | pixbuf | ||
| ) |
Equivalent to send_big() but with an Imageicon.
| hl | The headline of the Notification-Popup. |
| msg | Actual text to display. |
| pixbuf | GdkPixbuf-Pointer to the Image in Memory |
| void Notify::Notify::set_next_extra | ( | ) |
Detaches the next Notifcation, causing it to be displayed seperately rather than replacing the default Notification.
The next Notification can't be altered in anyway from within the calling application for now. Also this method is NOT threadsafe. If you need a threadsafe version, just write yourself a wrapper method that first aquires a mutex and then calls set_next_extra() AND a send-method. Then ONLY use your thread safe wrapper to call this method.
| void Notify::Notify::set_stock_icon | ( | const char * | stock | ) |
Sets the Image to be displayed in the next Notification to a Stock-Icon.
This method is not threadsafe. If you need a threadsafe version see set_next_extra() on how to create a thread safe version
| stock | Stock icon name. Examples |
friend class Browser::Settings [friend] |
1.8.0