[mce] Add input policy related D-Bus constants. JB#38001

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
This commit is contained in:
Simo Piiroinen
2017-04-06 07:56:39 +03:00
parent 6ca93012d5
commit 1629e7c932
2 changed files with 67 additions and 0 deletions

View File

@@ -790,4 +790,59 @@
/*@}*/
/**
* @name Input policy D-Bus methods and signals
*/
/*@{*/
/** Get current touch screen input policy
*
* Possible return values are:
* - #MCE_INPUT_POLICY_ENABLED
* - #MCE_INPUT_POLICY_DISABLED
*
* @since v1.87.0
*
* @return input policy as DBUS_TYPE_STRING
*/
#define MCE_TOUCH_INPUT_POLICY_GET "get_touch_input_policy"
/** Indication for change of touch screen input policy
*
* Possible values are:
* - #MCE_INPUT_POLICY_ENABLED
* - #MCE_INPUT_POLICY_DISABLED
*
* @since v1.87.0
*
* @param input policy as DBUS_TYPE_STRING
*/
#define MCE_TOUCH_INPUT_POLICY_SIG "touch_input_policy_ind"
/** Get current volume key input policy
*
* Possible return values are:
* - #MCE_INPUT_POLICY_ENABLED
* - #MCE_INPUT_POLICY_DISABLED
*
* @since v1.87.0
*
* @return input policy as DBUS_TYPE_STRING
*/
#define MCE_VOLKEY_INPUT_POLICY_GET "get_keypad_input_policy"
/** Indication for change of volume key input policy
*
* Possible values are:
* - #MCE_INPUT_POLICY_ENABLED
* - #MCE_INPUT_POLICY_DISABLED
*
* @since v1.87.0
*
* @param input policy as DBUS_TYPE_STRING
*/
#define MCE_VOLKEY_INPUT_POLICY_SIG "keypad_input_policy_ind"
/*@}*/
#endif /* _MCE_DBUS_NAMES_H_ */

View File

@@ -322,4 +322,16 @@
*/
#define MCE_BATTERY_LEVEL_UNKNOWN (-1)
/** Input events should be processed normally
*
* @since v1.87.0
*/
#define MCE_INPUT_POLICY_ENABLED "enabled"
/** Input events should be ignored
*
* @since v1.87.0
*/
#define MCE_INPUT_POLICY_DISABLED "disabled"
#endif /* _MCE_MODE_NAMES_H_ */