2
* Copyright 2016 Canonical Ltd.
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.
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.
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/>.
17
* Charles Kerr <charles.kerr@canonical.com>
20
#ifndef __INDICATOR_POWER_SOUND_PLAYER__H__
21
#define __INDICATOR_POWER_SOUND_PLAYER__H__
23
#include <glib-object.h>
27
#define INDICATOR_TYPE_POWER_SOUND_PLAYER \
28
(indicator_power_sound_player_get_type ())
30
#define INDICATOR_POWER_SOUND_PLAYER(obj) \
31
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
32
INDICATOR_TYPE_POWER_SOUND_PLAYER, \
33
IndicatorPowerSoundPlayer))
35
#define INDICATOR_IS_POWER_SOUND_PLAYER(obj) \
36
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), INDICATOR_TYPE_POWER_SOUND_PLAYER))
38
#define INDICATOR_POWER_SOUND_PLAYER_GET_INTERFACE(inst) \
39
(G_TYPE_INSTANCE_GET_INTERFACE ((inst), \
40
INDICATOR_TYPE_POWER_SOUND_PLAYER, \
41
IndicatorPowerSoundPlayerInterface))
43
typedef struct _IndicatorPowerSoundPlayer
44
IndicatorPowerSoundPlayer;
46
typedef struct _IndicatorPowerSoundPlayerInterface
47
IndicatorPowerSoundPlayerInterface;
50
* An interface class for an object that plays sounds.
52
struct _IndicatorPowerSoundPlayerInterface
54
GTypeInterface parent_iface;
56
/* virtual functions */
57
void (*play_uri) (IndicatorPowerSoundPlayer * self,
61
GType indicator_power_sound_player_get_type (void);
67
void indicator_power_sound_player_play_uri (IndicatorPowerSoundPlayer * self,
72
#endif /* __INDICATOR_POWER_SOUND_PLAYER__H__ */