1 /* 2 * Copyright (C) 2004,2005 Marc Pavot <marc.pavot@gmail.com> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 */ 19 20 #ifndef __ARIO_SHELL_COVERDOWNLOADER_H 21 #define __ARIO_SHELL_COVERDOWNLOADER_H 22 23 #include <glib.h> 24 #include <gtk/gtk.h> 25 26 G_BEGIN_DECLS 27 28 #define TYPE_ARIO_SHELL_COVERDOWNLOADER (ario_shell_coverdownloader_get_type ()) 29 #define ARIO_SHELL_COVERDOWNLOADER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ARIO_SHELL_COVERDOWNLOADER, ArioShellCoverdownloader)) 30 #define ARIO_SHELL_COVERDOWNLOADER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), TYPE_ARIO_SHELL_COVERDOWNLOADER, ArioShellCoverdownloaderClass)) 31 #define IS_ARIO_SHELL_COVERDOWNLOADER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ARIO_SHELL_COVERDOWNLOADER)) 32 #define IS_ARIO_SHELL_COVERDOWNLOADER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ARIO_SHELL_COVERDOWNLOADER)) 33 #define ARIO_SHELL_COVERDOWNLOADER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ARIO_SHELL_COVERDOWNLOADER, ArioShellCoverdownloaderClass)) 34 35 typedef struct ArioShellCoverdownloaderPrivate ArioShellCoverdownloaderPrivate; 36 37 /** 38 * ArioShellCoverdownloader is a dialog window used to see the 39 * progress of cover arts downloading. 40 */ 41 typedef struct 42 { 43 GtkWindow parent; 44 45 ArioShellCoverdownloaderPrivate *priv; 46 } ArioShellCoverdownloader; 47 48 typedef struct 49 { 50 GtkWindowClass parent_class; 51 } ArioShellCoverdownloaderClass; 52 53 typedef enum 54 { 55 GET_COVERS, 56 REMOVE_COVERS 57 } ArioShellCoverdownloaderOperation; 58 59 GType ario_shell_coverdownloader_get_type (void) G_GNUC_CONST; 60 61 GtkWidget * ario_shell_coverdownloader_new (void); 62 63 void ario_shell_coverdownloader_get_covers (ArioShellCoverdownloader *ario_shell_coverdownloader, 64 const ArioShellCoverdownloaderOperation operation); 65 void ario_shell_coverdownloader_get_covers_from_albums (ArioShellCoverdownloader *ario_shell_coverdownloader, 66 const GSList *albums, 67 const ArioShellCoverdownloaderOperation operation); 68 69 G_END_DECLS 70 71 #endif /* __ARIO_SHELL_COVERDOWNLOADER_H */ 72