Minor changelog updates
[pidgin-git.git] / finch / gntsound.h
blobbb816ff47f53ba3bf76e1a8e005b9a2db14c87bd
1 /**
2 * @file gntsound.h GNT Sound API
3 * @ingroup finch
4 */
6 /* finch
8 * Finch is the legal property of its developers, whose names are too numerous
9 * to list here. Please refer to the COPYRIGHT file distributed with this
10 * source distribution.
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
26 #ifndef _GNT_SOUND_H
27 #define _GNT_SOUND_H
29 #include "sound.h"
31 /**********************************************************************/
32 /** @name GNT Sound API */
33 /**********************************************************************/
34 /*@{*/
36 /**
37 * Get the name of the active sound profile.
39 * @return The name of the profile
41 const char *finch_sound_get_active_profile(void);
43 /**
44 * Set the active profile. If the profile doesn't exist, nothing is changed.
46 * @param name The name of the profile
48 void finch_sound_set_active_profile(const char *name);
50 /**
51 * Get a list of available sound profiles.
53 * @return A list of strings denoting sound profile names.
54 * Caller must free the list (but not the data).
56 GList *finch_sound_get_profiles(void);
58 /**
59 * Determine whether any sound will be played or not.
61 * @return Returns FALSE if preference is set to 'No sound', or if volume is
62 * set to zero.
64 gboolean finch_sound_is_enabled(void);
66 /**
67 * Gets GNT sound UI ops.
69 * @return The UI operations structure.
71 PurpleSoundUiOps *finch_sound_get_ui_ops(void);
73 /**
74 * Show the sound settings dialog.
76 void finch_sounds_show_all(void);
78 /*@}*/
80 #endif