2
* Copyright (C) 2014 Canonical Ltd
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License version 3 as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Author: Jim Hodapp <jim.hodapp@canonical.com>
19
#include <core/dbus/dbus.h>
20
#include <core/dbus/fixture.h>
21
#include <core/dbus/object.h>
22
#include <core/dbus/property.h>
23
#include <core/dbus/service.h>
24
#include <core/dbus/interfaces/properties.h>
25
#include <core/dbus/types/stl/tuple.h>
26
#include <core/dbus/types/stl/vector.h>
28
#include <core/dbus/asio/executor.h>
37
static std::string& name()
39
static std::string s = "com.canonical.indicator.power.Battery";
45
static std::string name()
47
static std::string s = "PowerLevel";
51
typedef IndicatorPower Interface;
52
// Possible values: "ok", "low", "very_low", "critical"
53
typedef std::string ValueType;
54
static const bool readable = true;
55
static const bool writable = false;
60
static std::string name()
62
static std::string s = "IsWarning";
66
typedef IndicatorPower Interface;
67
typedef bool ValueType;
68
static const bool readable = true;
69
static const bool writable = false;