2 * @file gntsound.h GNT Sound API
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
31 /**********************************************************************/
32 /** @name GNT Sound API */
33 /**********************************************************************/
37 * Get the name of the active sound profile.
39 * @return The name of the profile
43 const char *finch_sound_get_active_profile(void);
46 * Set the active profile. If the profile doesn't exist, nothing is changed.
48 * @param name The name of the profile
52 void finch_sound_set_active_profile(const char *name
);
55 * Get a list of available sound profiles.
57 * @return A list of strings denoting sound profile names.
58 * Caller must free the list (but not the data).
62 GList
*finch_sound_get_profiles(void);
65 * Determine whether any sound will be played or not.
67 * @return Returns FALSE if preference is set to 'No sound', or if volume is
72 gboolean
finch_sound_is_enabled(void);
75 * Gets GNT sound UI ops.
77 * @return The UI operations structure.
81 PurpleSoundUiOps
*finch_sound_get_ui_ops(void);
84 * Show the sound settings dialog.
88 void finch_sounds_show_all(void);