3 * Pidgin is the legal property of its developers, whose names are too numerous
4 * to list here. Please refer to the COPYRIGHT file distributed with this
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
22 #ifndef _PIDGIN_SMILEY_THEME_H_
23 #define _PIDGIN_SMILEY_THEME_H_
25 * SECTION:gtksmiley-theme
26 * @include:gtksmiley-theme.h
27 * @section_id: pidgin-smiley-theme
28 * @short_description: a per-protocol categorized sets of standard smileys
29 * @title: Pidgin's smiley themes
31 * This class implements a per-protocol based #PurpleSmileyTheme.
34 #include <glib-object.h>
35 #include <gdk-pixbuf/gdk-pixbuf.h>
37 #include "conversation.h"
38 #include "smiley-theme.h"
42 #define PIDGIN_TYPE_SMILEY_THEME pidgin_smiley_theme_get_type()
45 * pidgin_smiley_theme_get_type:
47 * Returns: the #GType for a smiley list.
49 G_DECLARE_FINAL_TYPE(PidginSmileyTheme
, pidgin_smiley_theme
, PIDGIN
,
50 SMILEY_THEME
, PurpleSmileyTheme
)
53 * pidgin_smiley_theme_get_name:
54 * @theme: the smiley theme.
56 * Returns the name for a @theme. Valid themes always have the name set.
58 * Returns: (transfer none): the name string, or %NULL if error occured.
61 pidgin_smiley_theme_get_name(PidginSmileyTheme
*theme
);
64 * pidgin_smiley_theme_get_description:
65 * @theme: the smiley theme.
67 * Returns the description for a @theme.
69 * Returns: (transfer none): the description string, or %NULL if it's not
70 * set or error occured.
73 pidgin_smiley_theme_get_description(PidginSmileyTheme
*theme
);
76 * pidgin_smiley_theme_get_icon:
77 * @theme: the smiley theme.
79 * Returns the @theme's icon image, possibly loading it from the disk (and
80 * adding it to the cache).
82 * Returns: (transfer none): the @theme's icon image.
85 pidgin_smiley_theme_get_icon(PidginSmileyTheme
*theme
);
88 * pidgin_smiley_theme_get_author:
89 * @theme: the smiley theme.
91 * Returns the autor of @theme.
93 * Returns: (transfer none): the author string, or %NULL if it's not
94 * set or error occured.
97 pidgin_smiley_theme_get_author(PidginSmileyTheme
*theme
);
100 * pidgin_smiley_theme_for_conv:
101 * @conv: the conversation.
103 * Gets the smiley list for a @conv based on current theme.
105 * Returns: (transfer none): the smiley list, or %NULL if there
106 * is no smiley theme set.
109 pidgin_smiley_theme_for_conv(PurpleConversation
*conv
);
112 * pidgin_smiley_theme_get_all:
114 * Returns the list of currently available smiley themes.
116 * Returns: (transfer none) (element-type PidginSmileyTheme): the #GList of #PidginSmileyTheme's.
119 pidgin_smiley_theme_get_all(void);
122 * _pidgin_smiley_theme_init: (skip)
124 * Initializes the Pidgin's smiley theme subsystem.
127 _pidgin_smiley_theme_init(void);
130 * _pidgin_smiley_theme_uninit: (skip)
132 * Unitializes the Pidgin's smiley theme subsystem.
135 _pidgin_smiley_theme_uninit(void);
139 #endif /* _PIDGIN_SMILEY_THEME_H_ */