bme-dbus-names.h 2.35 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/**
 * @file bme-dbus-names.h
 * Mode Control Entity - D-Bus constants related to BME service
 * <p>
 * Copyright (C) 2010-2011 Nokia Corporation.  All rights reserved.
 * Copyright (C) 2018-2019 Jolla Ltd.
 * <p>
 * @author David Weinehall <david.weinehall@nokia.com>
 * @author Santtu Lakkala <ext-santtu.1.lakkala@nokia.com>
 * @author Simo Piiroinen <simo.piiroinen@jollamobile.com>
 *
 * mce is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License
 * version 2.1 as published by the Free Software Foundation.
 *
 * mce is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with mce.  If not, see <http://www.gnu.org/licenses/>.
 */

25 26 27 28 29 30
/**
 * @file bme-dbus-names.h
 */
#ifndef _BME_DBUS_NAMES_H_
#define _BME_DBUS_NAMES_H_

31
#define DBUS_BROADCAST                  "org.freedesktop.DBus.Broadcast"
32

33
#define BME_SERVICE                     "com.nokia.bme"
34

35 36
#define BME_REQUEST_IF                  "com.nokia.bme.request"
#define BME_REQUEST_PATH                "/com/nokia/bme/request"
37

38 39
#define BME_SIGNAL_IF                   "com.nokia.bme.signal"
#define BME_SIGNAL_PATH                 "/com/nokia/bme/signal"
40

41 42
#define BME_ERROR_FATAL                 "com.nokia.bme.error.fatal"
#define BME_ERROR_INVALID_ARGS          "org.freedesktop.DBus.Error.InvalidArgs"
43

44 45 46 47 48 49
#define BME_BATTERY_STATE_UPDATE        "battery_state_changed"
#define BME_BATTERY_FULL                "battery_full"
#define BME_BATTERY_OK                  "battery_ok"
#define BME_BATTERY_LOW                 "battery_low"
#define BME_BATTERY_EMPTY               "battery_empty"
#define BME_BATTERY_TIMELEFT            "battery_timeleft"
50

51 52 53 54 55
#define BME_CHARGER_CONNECTED           "charger_connected"
#define BME_CHARGER_DISCONNECTED        "charger_disconnected"
#define BME_CHARGER_CHARGING_ON         "charger_charging_on"
#define BME_CHARGER_CHARGING_OFF        "charger_charging_off"
#define BME_CHARGER_CHARGING_FAILED     "charger_charging_failed"
56

57 58
#define BME_STATUS_INFO_REQ             "status_info_req"
#define BME_TIMELEFT_INFO_REQ           "timeleft_info_req"
59

Santtu Lakkala's avatar
Santtu Lakkala committed
60
#endif /* _BME_DBUS_NAMES_H_ */