~indicator-applet-developers/indicator-power/trunk.16.04

« back to all changes in this revision

Viewing changes to src/sound-player-gst.h

  • Committer: CI Train Bot
  • Author(s): Charles Kerr, charles kerr
  • Date: 2016-01-05 14:37:48 UTC
  • mfrom: (290.1.24 lp-1470767-low-battery-sound)
  • Revision ID: ci-train-bot@canonical.com-20160105143748-8vkmb6yhgz603fus
Play a 'low battery' sound when the low battery notification is shown.
 Fixes: #1470767
Approved by: Ted Gould, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2016 Canonical Ltd.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it
 
5
 * under the terms of the GNU General Public License version 3, as published
 
6
 * by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
10
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
11
 * PURPOSE.  See the GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License along
 
14
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Authors:
 
17
 *   Charles Kerr <charles.kerr@canonical.com>
 
18
 */
 
19
 
 
20
#ifndef __INDICATOR_POWER_SOUND_PLAYER_GST__H__
 
21
#define __INDICATOR_POWER_SOUND_PLAYER_GST__H__
 
22
 
 
23
#include <glib-object.h> /* parent class */
 
24
 
 
25
#include "device-provider.h"
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define INDICATOR_TYPE_POWER_SOUND_PLAYER_GST \
 
30
  (indicator_power_sound_player_gst_get_type())
 
31
 
 
32
#define INDICATOR_POWER_SOUND_PLAYER_GST(o) \
 
33
  (G_TYPE_CHECK_INSTANCE_CAST ((o), \
 
34
                               INDICATOR_TYPE_POWER_SOUND_PLAYER_GST, \
 
35
                               IndicatorPowerSoundPlayerGST))
 
36
 
 
37
#define INDICATOR_POWER_SOUND_PLAYER_GST_GET_CLASS(o) \
 
38
 (G_TYPE_INSTANCE_GET_CLASS ((o), \
 
39
                             INDICATOR_TYPE_POWER_SOUND_PLAYER_GST, \
 
40
                             IndicatorPowerSoundPlayerGSTClass))
 
41
 
 
42
#define INDICATOR_IS_POWER_SOUND_PLAYER_GST(o) \
 
43
  (G_TYPE_CHECK_INSTANCE_TYPE ((o), \
 
44
                               INDICATOR_TYPE_POWER_SOUND_PLAYER_GST))
 
45
 
 
46
typedef struct _IndicatorPowerSoundPlayerGST
 
47
                IndicatorPowerSoundPlayerGST;
 
48
typedef struct _IndicatorPowerSoundPlayerGSTClass
 
49
                IndicatorPowerSoundPlayerGSTClass;
 
50
 
 
51
/**
 
52
 * An IndicatorPowerSoundPlayer which gets its devices from GST.
 
53
 */
 
54
struct _IndicatorPowerSoundPlayerGST
 
55
{
 
56
  GObject parent_instance;
 
57
};
 
58
 
 
59
struct _IndicatorPowerSoundPlayerGSTClass
 
60
{
 
61
  GObjectClass parent_class;
 
62
};
 
63
 
 
64
GType indicator_power_sound_player_gst_get_type (void);
 
65
 
 
66
IndicatorPowerSoundPlayer * indicator_power_sound_player_gst_new (void);
 
67
 
 
68
G_END_DECLS
 
69
 
 
70
#endif /* __INDICATOR_POWER_SOUND_PLAYER_GST__H__ */