summaryrefslogtreecommitdiff
path: root/src/common/icons.h
blob: 7708a38b8273edb56778f43f7aa59185f4503fb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
 * Copyright (C) 2007 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
 *
 * Authors: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

#ifndef __GUPNP_UNIVERSAL_CP_ICONS_H__
#define __GUPNP_UNIVERSAL_CP_ICONS_H__

#include <libgupnp/gupnp-control-point.h>
#include <gtk/gtk.h>

typedef enum
{
        ICON_FIRST = -1,
        ICON_DEVICE,
        ICON_SERVICE,
        ICON_VARIABLE,
        ICON_ACTION_ARG_IN,
        ICON_ACTION_ARG_OUT,
        ICON_MEDIA_RENDERER,
        ICON_MISSING,
        ICON_NETWORK,
        ICON_ACTION,
        ICON_VARIABLES,
        ICON_FILE,
        ICON_CONTAINER,
        ICON_AUDIO_ITEM,
        ICON_VIDEO_ITEM,
        ICON_IMAGE_ITEM,
        ICON_TEXT_ITEM,
        ICON_LAST
} IconID;

void
update_icon_async (GUPnPDeviceInfo *info,
                   GCancellable *cancellable,
                   GAsyncReadyCallback callback,
                   gpointer user_data);

GdkPixbuf *
update_icon_finish (GUPnPDeviceInfo *info, GAsyncResult *res, GError **error);

GdkPixbuf *
get_icon_by_id         (IconID icon_id);

GdkPixbuf *
load_pixbuf_file       (const char *file_name);

void
init_icons             (void);

void
deinit_icons           (void);

#endif /* __GUPNP_UNIVERSAL_CP_ICONS_H__ */