Tue, 04 Feb 2014 04:53:18 +0530
Add sections for finch and re-arrange its doc index
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* finch |
| 18155 | 2 | * |
| 3 | * Finch is the legal property of its developers, whose names are too numerous | |
| 4 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 5 | * source distribution. | |
| 6 | * | |
| 7 | * This program is free software; you can redistribute it and/or modify | |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19612
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 18155 | 20 | */ |
|
35449
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
21 | /** |
|
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
22 | * SECTION:gntsound |
|
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
23 | * @section_id: finch-gntsound |
|
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
24 | * @short_description: <filename>gntsound.h</filename> |
|
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
25 | * @title: Sound API |
|
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
26 | */ |
|
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
27 | |
| 18155 | 28 | #ifndef _GNT_SOUND_H |
| 29 | #define _GNT_SOUND_H | |
| 30 | ||
| 31 | #include "sound.h" | |
| 32 | ||
| 33 | /**********************************************************************/ | |
|
19315
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
34 | /** @name GNT Sound API */ |
| 18155 | 35 | /**********************************************************************/ |
| 36 | /*@{*/ | |
| 37 | ||
| 38 | /** | |
|
35410
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
39 | * finch_sound_get_active_profile: |
|
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
40 | * |
| 18683 | 41 | * Get the name of the active sound profile. |
| 42 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
43 | * Returns: The name of the profile |
| 18683 | 44 | */ |
| 45 | const char *finch_sound_get_active_profile(void); | |
| 46 | ||
| 47 | /** | |
|
35410
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
48 | * finch_sound_set_active_profile: |
|
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
49 | * @name: The name of the profile |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
20939
diff
changeset
|
50 | * |
|
35410
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
51 | * Set the active profile. If the profile doesn't exist, nothing is changed. |
| 18683 | 52 | */ |
| 53 | void finch_sound_set_active_profile(const char *name); | |
| 54 | ||
| 55 | /** | |
|
35410
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
56 | * finch_sound_get_profiles: |
|
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
57 | * |
| 18683 | 58 | * Get a list of available sound profiles. |
| 59 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
60 | * Returns: A list of strings denoting sound profile names. |
|
19315
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
61 | * Caller must free the list (but not the data). |
| 18683 | 62 | */ |
| 63 | GList *finch_sound_get_profiles(void); | |
| 64 | ||
| 18155 | 65 | /** |
|
35410
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
66 | * finch_sound_is_enabled: |
|
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
67 | * |
|
19612
043dcbf3a36e
Fix #2767 (per-conversation/chat mute option).
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19316
diff
changeset
|
68 | * Determine whether any sound will be played or not. |
|
043dcbf3a36e
Fix #2767 (per-conversation/chat mute option).
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19316
diff
changeset
|
69 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
70 | * Returns: Returns FALSE if preference is set to 'No sound', or if volume is |
|
19612
043dcbf3a36e
Fix #2767 (per-conversation/chat mute option).
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19316
diff
changeset
|
71 | * set to zero. |
|
043dcbf3a36e
Fix #2767 (per-conversation/chat mute option).
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19316
diff
changeset
|
72 | */ |
|
043dcbf3a36e
Fix #2767 (per-conversation/chat mute option).
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19316
diff
changeset
|
73 | gboolean finch_sound_is_enabled(void); |
|
043dcbf3a36e
Fix #2767 (per-conversation/chat mute option).
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19316
diff
changeset
|
74 | |
|
043dcbf3a36e
Fix #2767 (per-conversation/chat mute option).
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
19316
diff
changeset
|
75 | /** |
|
35410
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
76 | * finch_sound_get_ui_ops: |
|
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
77 | * |
|
19315
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
78 | * Gets GNT sound UI ops. |
|
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
79 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
80 | * Returns: The UI operations structure. |
|
19315
0bc6119bbf7b
Fix a memory leak.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
18697
diff
changeset
|
81 | */ |
| 18155 | 82 | PurpleSoundUiOps *finch_sound_get_ui_ops(void); |
| 83 | ||
| 84 | /** | |
|
35410
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
85 | * finch_sounds_show_all: |
|
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
86 | * |
|
18294
8186bc6ffbb4
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
18155
diff
changeset
|
87 | * Show the sound settings dialog. |
|
8186bc6ffbb4
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
18155
diff
changeset
|
88 | */ |
|
8186bc6ffbb4
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
18155
diff
changeset
|
89 | void finch_sounds_show_all(void); |
|
8186bc6ffbb4
Added Sounds to the actions list
Eric Polino <aluink@pidgin.im>
parents:
18155
diff
changeset
|
90 | |
| 18155 | 91 | /*@}*/ |
| 92 | ||
| 93 | #endif |