Debian Codegraph @

src/common/icons.h

raw
1 /*
2 * Copyright (C) 2007 Zeeshan Ali (Khattak) <[email protected]>
3 *
4 * Authors: Zeeshan Ali (Khattak) <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21 #ifndef __GUPNP_UNIVERSAL_CP_ICONS_H__
22 #define __GUPNP_UNIVERSAL_CP_ICONS_H__
23
24 #include <libgupnp/gupnp-control-point.h>
25 #include <gtk/gtk.h>
26
27 typedef enum
28 {
29 ICON_FIRST = -1,
30 ICON_DEVICE,
31 ICON_SERVICE,
32 ICON_VARIABLE,
33 ICON_ACTION_ARG_IN,
34 ICON_ACTION_ARG_OUT,
35 ICON_MEDIA_RENDERER,
36 ICON_MISSING,
37 ICON_NETWORK,
38 ICON_ACTION,
39 ICON_VARIABLES,
40 ICON_FILE,
41 ICON_CONTAINER,
42 ICON_AUDIO_ITEM,
43 ICON_VIDEO_ITEM,
44 ICON_IMAGE_ITEM,
45 ICON_TEXT_ITEM,
46 ICON_LAST
47 } IconID;
48
49 void
50 update_icon_async (GUPnPDeviceInfo *info,
51 GCancellable *cancellable,
52 GAsyncReadyCallback callback,
53 gpointer user_data);
54
55 GdkPixbuf *
56 update_icon_finish (GUPnPDeviceInfo *info, GAsyncResult *res, GError **error);
57
58 GdkPixbuf *
59 get_icon_by_id (IconID icon_id);
60
61 GdkPixbuf *
62 load_pixbuf_file (const char *file_name);
63
64 void
65 init_icons (void);
66
67 void
68 deinit_icons (void);
69
70 #endif /* __GUPNP_UNIVERSAL_CP_ICONS_H__ */