Compare commits

...

3 Commits

Author SHA1 Message Date
Simo Piiroinen
14f1508a42 Bump mce-dev version to 1.30.0
Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
2022-02-22 04:22:05 +02:00
Simo Piiroinen
e1a09b9119 Merge pull request #2 from spiiroin/jb40062_charging_hysteresis
[mce] Add charging hysteresis state D-Bus constants. JB#40062
2022-02-22 04:18:48 +02:00
Simo Piiroinen
ebe124e018 [mce] Add charging hysteresis state D-Bus constants. JB#40062
Constants related to exposing charging hysteresis state on D-Bus.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
2022-02-22 04:16:51 +02:00
5 changed files with 62 additions and 6 deletions

6
debian/changelog vendored
View File

@@ -1,3 +1,9 @@
mce-dev (1.30.0) unstable; urgency=low
* [mce] Add charging hysteresis state D-Bus constants. JB#40062
-- Simo Piiroinen <simo.piiroinen@jolla.com> Tue, 22 Feb 2022 04:19:53 +0200
mce-dev (1.29.0) unstable; urgency=low mce-dev (1.29.0) unstable; urgency=low
* [mce] Add mouse availability state D-Bus constants. JB#55866 * [mce] Add mouse availability state D-Bus constants. JB#55866

View File

@@ -4,8 +4,8 @@
* <p> * <p>
* This file is part of mce-dev * This file is part of mce-dev
* <p> * <p>
* Copyright © 2004-2011 Nokia Corporation and/or its subsidiary(-ies). * Copyright (c) 2004 - 2011 Nokia Corporation and/or its subsidiary(-ies).
* Copyright (C) 2013-2019 Jolla Ltd. * Copyright (c) 2013 - 2022 Jolla Ltd.
* Copyright (c) 2019 Open Mobile Platform LLC. * Copyright (c) 2019 Open Mobile Platform LLC.
* <p> * <p>
* @author David Weinehall <david.weinehall@nokia.com> * @author David Weinehall <david.weinehall@nokia.com>
@@ -919,6 +919,30 @@
*/ */
# define MCE_CHARGER_TYPE_SIG "charger_type_ind" # define MCE_CHARGER_TYPE_SIG "charger_type_ind"
/** Query current charging hysteresis state
*
* @since mce 1.110.0
*
* @return string: charging hysteresis policy state, one of:
* - #MCE_CHARGING_STATE_UNKNOWN
* - #MCE_CHARGING_STATE_ENABLED
* - #MCE_CHARGING_STATE_DISABLED
*/
# define MCE_CHARGING_STATE_GET "get_charging_state"
/** Signal that indicates that charging hysteresis state has changed
*
* Charging hysteresis policy decision.
*
* @since mce 1.110.0
*
* @param string: charging hysteresis policy state, one of:
* - #MCE_CHARGING_STATE_UNKNOWN
* - #MCE_CHARGING_STATE_ENABLED
* - #MCE_CHARGING_STATE_DISABLED
*/
# define MCE_CHARGING_STATE_SIG "charging_state_ind"
/*@}*/ /*@}*/
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@@ -4,8 +4,8 @@
* <p> * <p>
* This file is part of mce-dev * This file is part of mce-dev
* <p> * <p>
* Copyright © 2004-2011 Nokia Corporation and/or its subsidiary(-ies). * Copyright (c) 2004 - 2011 Nokia Corporation and/or its subsidiary(-ies).
* Copyright (C) 2012-2019 Jolla Ltd. * Copyright (c) 2012 - 2022 Jolla Ltd.
* Copyright (c) 2019 Open Mobile Platform LLC. * Copyright (c) 2019 Open Mobile Platform LLC.
* <p> * <p>
* @author David Weinehall <david.weinehall@nokia.com> * @author David Weinehall <david.weinehall@nokia.com>
@@ -482,6 +482,32 @@
/*@}*/ /*@}*/
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
/** @name Charging Hysteresis State Constants
*
*@{
*/
/** Charging hysteresis policy state is not known
*
* @since mce 1.110.0
*/
# define MCE_CHARGING_STATE_UNKNOWN "unknown"
/** Charging hysteresis policy allows charging
*
* @since mce 1.110.0
*/
# define MCE_CHARGING_STATE_ENABLED "enabled"
/** Charging hysteresis policy denies charging
*
* @since mce 1.110.0
*/
# define MCE_CHARGING_STATE_DISABLED "disabled"
/*@}*/
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
/** @name Battery Status Constants /** @name Battery Status Constants

2
mce.pc
View File

@@ -3,7 +3,7 @@ includedir=${prefix}/include
Name: mce Name: mce
Description: Mode Control Entity Description: Mode Control Entity
Version: 1.29.0 Version: 1.30.0
Requires: Requires:
Libs: Libs:
Cflags: -I${includedir} Cflags: -I${includedir}

View File

@@ -1,6 +1,6 @@
Name: mce-headers Name: mce-headers
Summary: Development files for mce Summary: Development files for mce
Version: 1.29.0 Version: 1.30.0
Release: 1 Release: 1
Group: Development/Libraries Group: Development/Libraries
License: LGPLv2 License: LGPLv2