sound-theme.h

Go to the documentation of this file.
00001 
00005 /* purple
00006  *
00007  * Purple is the legal property of its developers, whose names are too numerous
00008  * to list here.  Please refer to the COPYRIGHT file distributed with this
00009  * source distribution.
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
00024  */
00025 
00026 #ifndef PURPLE_SOUND_THEME_H
00027 #define PURPLE_SOUND_THEME_H
00028 
00029 #include <glib.h>
00030 #include <glib-object.h>
00031 #include "theme.h"
00032 #include "sound.h"
00033 
00041 typedef struct _PurpleSoundTheme        PurpleSoundTheme;
00042 typedef struct _PurpleSoundThemeClass   PurpleSoundThemeClass;
00043 
00044 #define PURPLE_TYPE_SOUND_THEME             (purple_sound_theme_get_type())
00045 #define PURPLE_SOUND_THEME(obj)             (G_TYPE_CHECK_INSTANCE_CAST((obj), PURPLE_TYPE_SOUND_THEME, PurpleSoundTheme))
00046 #define PURPLE_SOUND_THEME_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST((klass), PURPLE_TYPE_SOUND_THEME, PurpleSoundThemeClass))
00047 #define PURPLE_IS_SOUND_THEME(obj)          (G_TYPE_CHECK_INSTANCE_TYPE((obj), PURPLE_TYPE_SOUND_THEME))
00048 #define PURPLE_IS_SOUND_THEME_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE((klass), PURPLE_TYPE_SOUND_THEME))
00049 #define PURPLE_SOUND_THEME_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj), PURPLE_TYPE_SOUND_THEME, PurpleSoundThemeClass))
00050 
00051 struct _PurpleSoundTheme
00052 {
00053     PurpleTheme parent;
00054     gpointer priv;
00055 };
00056 
00057 struct _PurpleSoundThemeClass
00058 {
00059     PurpleThemeClass parent_class;
00060 };
00061 
00062 /**************************************************************************/
00064 /**************************************************************************/
00065 G_BEGIN_DECLS
00066 
00071 GType purple_sound_theme_get_type(void);
00072 
00081 const gchar *purple_sound_theme_get_file(PurpleSoundTheme *theme,
00082         const gchar *event);
00083 
00093 gchar *purple_sound_theme_get_file_full(PurpleSoundTheme *theme,
00094         const gchar *event);
00095 
00103 void purple_sound_theme_set_file(PurpleSoundTheme *theme,
00104         const gchar *event,
00105         const gchar *filename);
00106 
00107 G_END_DECLS
00108 #endif /* PURPLE_SOUND_THEME_H */