Wed, 12 Oct 2005 02:27:32 +0000
[gaim-migrate @ 13919]
sf patch #1324285, from Casey Harkins
fix "sounds while away" in HEAD
This patch adds a GaimAccount as a parameter to the
sound playing functions, allowing the caller to specify
the account the sound is related to. If the account is
not NULL and the while_away preference is not set, then
the account is checked to see if it is away, if so, the
sound is not played.
committer: Mark Doliner <markdoliner@pidgin.im>
| 11118 | 1 | #include "module.h" |
| 2 | ||
| 3 | MODULE = Gaim::Sound PACKAGE = Gaim::Sound PREFIX = gaim_sound_ | |
| 4 | PROTOTYPES: ENABLE | |
| 5 | ||
| 6 | Gaim::Sound::UiOps | |
| 7 | gaim_sound_get_ui_ops() | |
| 8 | ||
| 9 | ||
| 10 | void | |
| 11 | gaim_sound_init() | |
| 12 | ||
| 13 | ||
| 14 | void | |
|
11642
76b60f0bf467
[gaim-migrate @ 13919]
Casey Harkins <charkins@pidgin.im>
parents:
11290
diff
changeset
|
15 | gaim_sound_play_event(event, account) |
| 11118 | 16 | Gaim::SoundEventID event |
|
11642
76b60f0bf467
[gaim-migrate @ 13919]
Casey Harkins <charkins@pidgin.im>
parents:
11290
diff
changeset
|
17 | Gaim::Account account |
| 11118 | 18 | |
| 19 | void | |
|
11642
76b60f0bf467
[gaim-migrate @ 13919]
Casey Harkins <charkins@pidgin.im>
parents:
11290
diff
changeset
|
20 | gaim_sound_play_file(filename, account) |
| 11118 | 21 | const char *filename |
|
11642
76b60f0bf467
[gaim-migrate @ 13919]
Casey Harkins <charkins@pidgin.im>
parents:
11290
diff
changeset
|
22 | Gaim::Account account |
| 11118 | 23 | |
| 24 | void | |
| 25 | gaim_sound_set_ui_ops(ops) | |
| 26 | Gaim::Sound::UiOps ops | |
| 27 | ||
| 28 | void | |
| 29 | gaim_sound_uninit() | |
| 30 | ||
| 31 |