annotate finch/gntsound.h @ 19154:01d574f529e0

One leak fix. Mostly cosmetic changes.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 11 Jul 2007 17:36:15 +0000
parents 5ff1231993af
children fbecc35c23bb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19100
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
1 /**
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
2 * @file gntsound.h GNT Sound API
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
3 * @ingroup finch
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
4 *
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
5 * finch
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
6 *
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
7 * Finch is the legal property of its developers, whose names are too numerous
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
8 * to list here. Please refer to the COPYRIGHT file distributed with this
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
9 * source distribution.
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
10 *
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
11 * This program is free software; you can redistribute it and/or modify
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
12 * it under the terms of the GNU General Public License as published by
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
13 * the Free Software Foundation; either version 2 of the License, or
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
14 * (at your option) any later version.
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
15 *
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
16 * This program is distributed in the hope that it will be useful,
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
19 * GNU General Public License for more details.
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
20 *
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
21 * You should have received a copy of the GNU General Public License
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
22 * along with this program; if not, write to the Free Software
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
24 */
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
25 #ifndef _GNT_SOUND_H
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
26 #define _GNT_SOUND_H
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
27
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
28 #include "sound.h"
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
29
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
30 /**********************************************************************/
19154
01d574f529e0 One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 19146
diff changeset
31 /** @name GNT Sound API */
19100
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
32 /**********************************************************************/
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
33 /*@{*/
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
34
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
35 /**
19146
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
36 * Get the name of the active sound profile.
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
37 *
19154
01d574f529e0 One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 19146
diff changeset
38 * @return The name of the profile
19146
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
39 */
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
40 const char *finch_sound_get_active_profile(void);
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
41
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
42 /**
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
43 * Set the active profile. If the profile doesn't exist, nothing is changed.
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
44 *
19154
01d574f529e0 One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 19146
diff changeset
45 * @param name The name of the profile
19146
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
46 */
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
47 void finch_sound_set_active_profile(const char *name);
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
48
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
49 /**
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
50 * Get a list of available sound profiles.
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
51 *
19154
01d574f529e0 One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 19146
diff changeset
52 * @return A list of strings denoting sound profile names.
01d574f529e0 One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 19146
diff changeset
53 * Caller must free the list (but not the data).
19146
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
54 */
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
55 GList *finch_sound_get_profiles(void);
5ff1231993af Added sound profiles
Eric Polino <aluink@pidgin.im>
parents: 19117
diff changeset
56
19100
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
57 /**
19154
01d574f529e0 One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 19146
diff changeset
58 * Gets GNT sound UI ops.
01d574f529e0 One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 19146
diff changeset
59 *
01d574f529e0 One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 19146
diff changeset
60 * @return The UI operations structure.
01d574f529e0 One leak fix. Mostly cosmetic changes.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents: 19146
diff changeset
61 */
19100
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
62 PurpleSoundUiOps *finch_sound_get_ui_ops(void);
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
63
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
64 /**
19117
907c41608ada Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents: 19100
diff changeset
65 * Show the sound settings dialog.
907c41608ada Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents: 19100
diff changeset
66 */
907c41608ada Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents: 19100
diff changeset
67 void finch_sounds_show_all(void);
907c41608ada Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents: 19100
diff changeset
68
19100
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
69 /*@}*/
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
70
68a3b83795c6 Added sound to Finch.
Eric Polino <aluink@pidgin.im>
parents:
diff changeset
71 #endif