~ted/indicator-sound/revert-notifications

« back to all changes in this revision

Viewing changes to src/indicator-sound.h

  • Committer: Conor Curran
  • Date: 2010-03-04 15:52:59 UTC
  • mfrom: (36.2.9 indicator-sound)
  • Revision ID: conor.curran@canonical.com-20100304155259-mozczr2wfohxrn7p
merge with the test branch - service side refactored and tests introduced

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __INCLUDE_INDICATOR_SOUND_H__
 
2
#define __INCLUDE_INDICATOR_SOUND_H__
 
3
 
 
4
/*
 
5
A small wrapper utility to load indicators and put them as menu items
 
6
into the gnome-panel using it's applet interface.
 
7
 
 
8
Copyright 2010 Canonical Ltd.
 
9
 
 
10
Authors:
 
11
    Conor Curran <conor.curra@canonical.com>
 
12
    Ted Gould <ted@canonical.com>
 
13
 
 
14
This program is free software: you can redistribute it and/or modify it 
 
15
under the terms of the GNU General Public License version 3, as published 
 
16
by the Free Software Foundation.
 
17
 
 
18
This program is distributed in the hope that it will be useful, but 
 
19
WITHOUT ANY WARRANTY; without even the implied warranties of 
 
20
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
 
21
PURPOSE.  See the GNU General Public License for more details.
 
22
 
 
23
You should have received a copy of the GNU General Public License along 
 
24
with this program.  If not, see <http://www.gnu.org/licenses/>.
 
25
*/
 
26
 
 
27
// Essentially these are all exported to faciltiate testing
 
28
void prepare_state_machine();
 
29
void determine_state_from_volume(gdouble volume_percent);
 
30
gint get_state();
 
31
gchar* get_state_image_name(gint state);
 
32
void prepare_for_tests(IndicatorObject * io);
 
33
void tidy_up_hash();
 
34
 
 
35
#endif