1 /*
2  *  Copyright (C) 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, or (at your option)
7  *  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 #include <gtk/gtk.h>
21 
22 #ifndef __ARIO_COVER_HANDLER_H
23 #define __ARIO_COVER_HANDLER_H
24 
25 G_BEGIN_DECLS
26 
27 #define TYPE_ARIO_COVER_HANDLER         (ario_cover_handler_get_type ())
28 #define ARIO_COVER_HANDLER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ARIO_COVER_HANDLER, ArioCoverHandler))
29 #define ARIO_COVER_HANDLER_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), TYPE_ARIO_COVER_HANDLER, ArioCoverHandlerClass))
30 #define IS_ARIO_COVER_HANDLER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ARIO_COVER_HANDLER))
31 #define IS_ARIO_COVER_HANDLER_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ARIO_COVER_HANDLER))
32 #define ARIO_COVER_HANDLER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ARIO_COVER_HANDLER, ArioCoverHandlerClass))
33 
34 typedef struct ArioCoverHandlerPrivate ArioCoverHandlerPrivate;
35 
36 typedef struct
37 {
38         GtkWindow parent;
39 
40         ArioCoverHandlerPrivate *priv;
41 } ArioCoverHandler;
42 
43 typedef struct
44 {
45         GtkWindowClass parent_class;
46 
47         /* Signals */
48         void (*cover_changed)            (ArioCoverHandler *cover_handler);
49 } ArioCoverHandlerClass;
50 
51 GType              ario_cover_handler_get_type         (void) G_GNUC_CONST;
52 
53 ArioCoverHandler * ario_cover_handler_new              (void);
54 
55 void               ario_cover_handler_force_reload     (void);
56 
57 ArioCoverHandler * ario_cover_handler_get_instance     (void);
58 
59 GdkPixbuf *        ario_cover_handler_get_cover        (void);
60 
61 gchar *            ario_cover_handler_get_cover_path   (void);
62 
63 GdkPixbuf *        ario_cover_handler_get_large_cover  (void);
64 
65 G_END_DECLS
66 
67 #endif /* __ARIO_COVER_HANDLER_H */
68