~seb128/indicator-power/use-universe-translations

« back to all changes in this revision

Viewing changes to src/notifier.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
1
/*
2
 
 * Copyright 2014 Canonical Ltd.
 
2
 * Copyright 2014-2016 Canonical Ltd.
3
3
 *
4
4
 * This program is free software: you can redistribute it and/or modify it
5
5
 * under the terms of the GNU General Public License version 3, as published
23
23
#include <gio/gio.h>
24
24
 
25
25
#include "device.h"
 
26
#include "sound-player.h"
26
27
 
27
28
G_BEGIN_DECLS
28
29
 
55
56
 
56
57
GType indicator_power_notifier_get_type (void);
57
58
 
58
 
IndicatorPowerNotifier * indicator_power_notifier_new (void);
 
59
IndicatorPowerNotifier * indicator_power_notifier_new (IndicatorPowerSoundPlayer * sound_player);
59
60
 
60
61
void indicator_power_notifier_set_bus (IndicatorPowerNotifier  * self,
61
62
                                       GDBusConnection         * connection);
63
64
void indicator_power_notifier_set_battery (IndicatorPowerNotifier  * self,
64
65
                                           IndicatorPowerDevice    * battery);
65
66
 
 
67
void indicator_power_notifier_set_sound_player (IndicatorPowerNotifier     * self,
 
68
                                                IndicatorPowerSoundPlayer  * battery);
 
69
 
66
70
#define POWER_LEVEL_STR_OK "ok"
67
71
#define POWER_LEVEL_STR_LOW "low"
68
72
#define POWER_LEVEL_STR_VERY_LOW "very_low"