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 Abstact Class
32 #include <glib-object.h>
36 typedef struct _PurpleSoundTheme PurpleSoundTheme
;
37 typedef struct _PurpleSoundThemeClass PurpleSoundThemeClass
;
39 #define PURPLE_TYPE_SOUND_THEME (purple_sound_theme_get_type())
40 #define PURPLE_SOUND_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_SOUND_THEME, PurpleSoundTheme))
41 #define PURPLE_SOUND_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_SOUND_THEME, PurpleSoundThemeClass))
42 #define PURPLE_IS_SOUND_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_SOUND_THEME))
43 #define PURPLE_IS_SOUND_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_SOUND_THEME))
44 #define PURPLE_SOUND_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_SOUND_THEME, PurpleSoundThemeClass))
49 * A purple sound theme.
50 * This is an object for Purple to represent a sound theme.
52 struct _PurpleSoundTheme
58 struct _PurpleSoundThemeClass
61 PurpleThemeClass parent_class
;
63 void (*purple_reserved1
)(void);
64 void (*purple_reserved2
)(void);
65 void (*purple_reserved3
)(void);
66 void (*purple_reserved4
)(void);
69 /**************************************************************************/
70 /* Purple Sound Theme API */
71 /**************************************************************************/
75 * purple_sound_theme_get_type:
77 * Returns: The #GType for a sound theme.
79 GType
purple_sound_theme_get_type(void);
82 * purple_sound_theme_get_file:
84 * @event: The purple sound event to look up.
86 * Returns a copy of the filename for the sound event.
88 * Returns: The filename of the sound event.
90 const gchar
*purple_sound_theme_get_file(PurpleSoundTheme
*theme
,
94 * purple_sound_theme_get_file_full:
96 * @event: The purple sound event to look up
98 * Returns a copy of the directory and filename for the sound event
100 * Returns: The directory + '/' + filename of the sound event. This is
101 * a newly allocated string that should be freed with g_free.
103 gchar
*purple_sound_theme_get_file_full(PurpleSoundTheme
*theme
,
107 * purple_sound_theme_set_file:
109 * @event: the purple sound event to look up
110 * @filename: the name of the file to be used for the event
112 * Sets the filename for a given sound event
114 void purple_sound_theme_set_file(PurpleSoundTheme
*theme
,
116 const gchar
*filename
);
120 #endif /* PURPLE_SOUND_THEME_H */