3 * Purple 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 PURPLE_SOUND_THEME_H
23 #define PURPLE_SOUND_THEME_H
26 * @section_id: libpurple-sound-theme
27 * @short_description: <filename>sound-theme.h</filename>
28 * @title: Sound Theme Class
32 #include <glib-object.h>
36 #define PURPLE_TYPE_SOUND_THEME purple_sound_theme_get_type()
38 /**************************************************************************/
39 /* Purple Sound Theme API */
40 /**************************************************************************/
44 * purple_sound_theme_get_type:
46 * Returns: The #GType for a sound theme.
48 G_DECLARE_FINAL_TYPE(PurpleSoundTheme
, purple_sound_theme
, PURPLE
, SOUND_THEME
,
52 * purple_sound_theme_get_file:
54 * @event: The purple sound event to look up.
56 * Returns a copy of the filename for the sound event.
58 * Returns: The filename of the sound event.
60 const gchar
*purple_sound_theme_get_file(PurpleSoundTheme
*theme
,
64 * purple_sound_theme_get_file_full:
66 * @event: The purple sound event to look up
68 * Returns a copy of the directory and filename for the sound event
70 * Returns: The directory + '/' + filename of the sound event. This is
71 * a newly allocated string that should be freed with g_free.
73 gchar
*purple_sound_theme_get_file_full(PurpleSoundTheme
*theme
,
77 * purple_sound_theme_set_file:
79 * @event: the purple sound event to look up
80 * @filename: the name of the file to be used for the event
82 * Sets the filename for a given sound event
84 void purple_sound_theme_set_file(PurpleSoundTheme
*theme
,
86 const gchar
*filename
);
90 #endif /* PURPLE_SOUND_THEME_H */