5684
|
1 /**
|
|
2 * @file gtksound.h GTK+ Sound API
|
|
3 *
|
|
4 * gaim
|
|
5 *
|
|
6 * Copyright (C) 2003, Nathan Walp <faceprint@faceprint.com>
|
|
7 *
|
|
8 * This program is free software; you can redistribute it and/or modify
|
|
9 * it under the terms of the GNU General Public License as published by
|
|
10 * the Free Software Foundation; either version 2 of the License, or
|
|
11 * (at your option) any later version.
|
|
12 *
|
|
13 * This program is distributed in the hope that it will be useful,
|
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16 * GNU General Public License for more details.
|
|
17 *
|
|
18 * You should have received a copy of the GNU General Public License
|
|
19 * along with this program; if not, write to the Free Software
|
|
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
21 */
|
|
22
|
|
23 #ifndef _GAIM_GTKSOUND_H_
|
|
24 #define _GAIM_GTKSOUND_H_
|
|
25
|
|
26 /**************************************************************************/
|
|
27 /** @name GTK+ Sound API */
|
|
28 /**************************************************************************/
|
|
29 /*@{*/
|
|
30
|
|
31 /**
|
|
32 * Gets GTK Sound UI opsA
|
|
33 *
|
|
34 * @return UI operations struct
|
|
35 */
|
|
36 GaimSoundUiOps *gaim_get_gtk_sound_ui_ops(void);
|
|
37 /**
|
|
38 * Mutes or un-mutes sounds.
|
|
39 *
|
|
40 * @param mute The mute state.
|
|
41 */
|
|
42 void gaim_gtk_sound_set_mute(gboolean mute);
|
|
43
|
|
44 /**
|
|
45 * Gets mute state for sounds.
|
|
46 *
|
|
47 * @return The mute state.
|
|
48 */
|
|
49 gboolean gaim_gtk_sound_get_mute();
|
|
50
|
|
51 /**
|
|
52 * Mutes or un-mutes login sounds.
|
|
53 *
|
|
54 * @param mute The mute state.
|
|
55 */
|
|
56 void gaim_gtk_sound_set_login_mute(gboolean mute);
|
|
57
|
|
58 /**
|
|
59 * Get the prefs option for an event.
|
|
60 *
|
|
61 * @param event The event.
|
|
62 * @return The option.
|
|
63 */
|
|
64 const char *gaim_gtk_sound_get_event_option(GaimSoundEventID event);
|
|
65
|
|
66 /**
|
|
67 * Get the label for an event.
|
|
68 *
|
|
69 * @param event The event.
|
|
70 * @return The label.
|
|
71 */
|
|
72 char *gaim_gtk_sound_get_event_label(GaimSoundEventID event);
|
|
73
|
|
74 /*@}*/
|
|
75
|
|
76 #endif /* _GAIM_GTKSOUND_H_ */
|