1 /* Gnome Music Player Client (GMPC) 2 * Copyright (C) 2004-2011 Qball Cow <qball@gmpclient.org> 3 * Project homepage: http://gmpclient.org/ 4 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 15 * You should have received a copy of the GNU General Public License along 16 * with this program; if not, write to the Free Software Foundation, Inc., 17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 */ 19 20 #ifndef __PLAYLIST_MESSAGES_H__ 21 #define __PLAYLIST_MESSAGES_H__ 22 /** 23 * Object based plugin integration 24 */ 25 26 typedef struct _Playlist3MessagePlugin Playlist3MessagePlugin; 27 typedef struct _Playlist3MessagePluginClass Playlist3MessagePluginClass; 28 typedef struct _Playlist3MessagePluginPrivate Playlist3MessagePluginPrivate; 29 30 typedef enum { 31 ERROR_INFO, 32 ERROR_WARNING, 33 ERROR_CRITICAL, 34 USER_FEEDBACK 35 } ErrorLevel; 36 37 extern Playlist3MessagePlugin* pl3_messages; 38 39 40 Playlist3MessagePlugin * playlist3_message_plugin_new(void); 41 42 gboolean playlist3_message_close(Playlist3MessagePlugin *self); 43 void playlist3_message_add_widget(Playlist3MessagePlugin *self, GtkWidget *widget); 44 void playlist3_message_show(Playlist3MessagePlugin *self, const gchar *message, ErrorLevel el); 45 46 /* Old interface */ 47 void playlist3_close_error(void); 48 void playlist3_show_error_message(const gchar *message, ErrorLevel el); 49 void playlist3_error_add_widget(GtkWidget *widget); 50 void message_window_open(void); 51 #endif 52