Compare commits
	
		
			43 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					22e05c7993 | ||
| 
						 | 
					762d2b5bea | ||
| 
						 | 
					be82c4e57a | ||
| 
						 | 
					3955a9dbbe | ||
| 
						 | 
					76b89ce87e | ||
| 
						 | 
					95ff9e77f0 | ||
| 
						 | 
					64822062d2 | ||
| 
						 | 
					38cc9dd67d | ||
| 
						 | 
					f4b17e4266 | ||
| 
						 | 
					0d161d6b95 | ||
| 
						 | 
					f4e89b99c2 | ||
| 
						 | 
					8a2f0096ae | ||
| 
						 | 
					bffba82ed6 | ||
| 
						 | 
					c71040dcd1 | ||
| 
						 | 
					348ebf4525 | ||
| 
						 | 
					58b5ee55a6 | ||
| 
						 | 
					489e489c88 | ||
| 
						 | 
					42e930998c | ||
| 
						 | 
					fa2b8aa3a8 | ||
| 
						 | 
					ff899e3917 | ||
| 
						 | 
					b3de512237 | ||
| 
						 | 
					ac94c56b38 | ||
| 
						 | 
					f813e5dd80 | ||
| 
						 | 
					9ad0a5ec3e | ||
| 
						 | 
					63a93af0ab | ||
| 
						 | 
					06d00f21eb | ||
| 
						 | 
					eb5cc785f2 | ||
| 
						 | 
					736c7bea93 | ||
| 
						 | 
					1ba395ffc1 | ||
| 
						 | 
					db569203fa | ||
| 
						 | 
					2859d1137a | ||
| 
						 | 
					0ddff6ce9e | ||
| 
						 | 
					60c203cca8 | ||
| 
						 | 
					9ed4600f17 | ||
| 
						 | 
					d8aeff4029 | ||
| 
						 | 
					ba9bd79e72 | ||
| 
						 | 
					85e9d01840 | ||
| 
						 | 
					17648ebfeb | ||
| 
						 | 
					3059954d9e | ||
| 
						 | 
					89b9fcb60d | ||
| 
						 | 
					e0cab0041d | ||
| 
						 | 
					678a4a7dc0 | ||
| 
						 | 
					c1c297f862 | 
							
								
								
									
										9
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								Makefile
									
									
									
									
									
								
							@@ -6,7 +6,7 @@
 | 
			
		||||
# Modified by: Ilya Dogolazky, Tuomo Tanskanen
 | 
			
		||||
 | 
			
		||||
INSTALL_DIR := install -d
 | 
			
		||||
INSTALL_DATA := install -o root -g root --mode=644
 | 
			
		||||
INSTALL_DATA := install --mode=644
 | 
			
		||||
 | 
			
		||||
DOXYGEN := doxygen
 | 
			
		||||
 | 
			
		||||
@@ -21,12 +21,15 @@ PCFILE  := mce.pc
 | 
			
		||||
INCLUDE_FILES := $(INCDIR)/dbus-names.h $(INCDIR)/mode-names.h
 | 
			
		||||
 | 
			
		||||
.PHONY: doc
 | 
			
		||||
doc:
 | 
			
		||||
doc:	doc/warnings
 | 
			
		||||
 | 
			
		||||
doc/warnings: $(INCLUDE_FILES) Doxyfile
 | 
			
		||||
	@if [ ! -d "$(DOCDIR)" ]; then mkdir "$(DOCDIR)"; fi
 | 
			
		||||
	@$(DOXYGEN) 2> $(TOPDIR)/doc/warnings > /dev/null
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
	@if [ x"$(DOCDIR)" != x"" ]; then	\
 | 
			
		||||
		rm -rf $(DOCDIR)/*;		\
 | 
			
		||||
		rm -rf "$(DOCDIR)";		\
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
.PHONY: install
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										102
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										102
									
								
								debian/changelog
									
									
									
									
										vendored
									
									
								
							@@ -1,3 +1,105 @@
 | 
			
		||||
mce-dev (1.17.0) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * [mce] Add D-Bus constants for exposing display blanking policy.
 | 
			
		||||
    Contributes to JB#29675
 | 
			
		||||
 | 
			
		||||
 -- Simo Piiroinen <simo.piiroinen@jollamobile.com>  Thu, 18 Jun 2015 12:28:10 +0300
 | 
			
		||||
 | 
			
		||||
mce-dev (1.16.1) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * [packaging] Remove old spectacle cruft. Fixes JB#28938
 | 
			
		||||
  * [packaging] Remove rpm build time patch for file ownership
 | 
			
		||||
 | 
			
		||||
 -- Simo Piiroinen <simo.piiroinen@jollamobile.com>  Wed, 27 May 2015 08:09:56 +0300
 | 
			
		||||
 | 
			
		||||
mce-dev (1.16.0) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * [mce] Add D-Bus constants for exposing blanking pause and inhibit
 | 
			
		||||
    states. Contributes to JB#28929
 | 
			
		||||
 | 
			
		||||
 -- Simo Piiroinen <simo.piiroinen@jollamobile.com>  Wed, 20 May 2015 12:54:50 +0300
 | 
			
		||||
 | 
			
		||||
mce-dev (1.15.0) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * [mce] Add dbus method for requesting settings reset. Contributes to
 | 
			
		||||
    JB#24286
 | 
			
		||||
 | 
			
		||||
 -- Simo Piiroinen <simo.piiroinen@jollamobile.com>  Tue, 17 Feb 2015 10:42:49 +0200
 | 
			
		||||
 | 
			
		||||
mce-dev (1.14.0) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * [mce] Add dbus method for requesting display low power mode.
 | 
			
		||||
    Contributes to JB#20906
 | 
			
		||||
 | 
			
		||||
 -- Simo Piiroinen <simo.piiroinen@jollamobile.com>  Tue, 05 Aug 2014 12:55:05 +0300
 | 
			
		||||
 | 
			
		||||
mce-dev (1.13.0) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * [mce-headers] Add D-Bus signals for led pattern active state changes
 | 
			
		||||
  * [mce-headers] Document tracking id parameter for cpu keepalive method calls
 | 
			
		||||
 | 
			
		||||
 -- Simo Piiroinen <simo.piiroinen@jollamobile.com>  Tue, 18 Mar 2014 15:00:14 +0200
 | 
			
		||||
 | 
			
		||||
mce-dev (1.12.5) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
 * [mce-headers] Fix MCE_CPU_KEEPALIVE_PERIOD_REQ method call documentation
 | 
			
		||||
 | 
			
		||||
 -- Simo Piiroinen <simo.piiroinen@jollamobile.com>  Wed, 11 Sep 2013 08:26:03 +0300
 | 
			
		||||
 | 
			
		||||
mce-dev (1.12.4) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * [packaging] move to git based packaging
 | 
			
		||||
  * [mce-headers] Configuration value methods and signals added
 | 
			
		||||
 | 
			
		||||
 -- Simo Piiroinen <simo.piiroinen@jollamobile.com>  Wed, 04 Sep 2013 13:23:08 +0300
 | 
			
		||||
 | 
			
		||||
mce-dev (1.12.3) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * Added cpu-keepalive methods
 | 
			
		||||
  * Removed unintentional mce-doc -> mce-headers dependency
 | 
			
		||||
 | 
			
		||||
 -- Simo Piiroinen <simo.piiroinen@jollamobile.com>  Wed, 06 Mar 2013 11:41:15 +0200
 | 
			
		||||
 | 
			
		||||
mce-dev (1.12.2) oneiric; urgency=low
 | 
			
		||||
 | 
			
		||||
  * Added MCE_TK_LOCKED_DELAY
 | 
			
		||||
  * Version sync with mce itself
 | 
			
		||||
 | 
			
		||||
 -- Simo Piiroinen <simo.piiroinen@jollamobile.com>  Wed, 31 Oct 2012 19:38:56 +0200
 | 
			
		||||
 | 
			
		||||
mce-dev (1.11.0) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * Added MCE_COLOR_PROFILE_GET, MCE_COLOR_PROFILE_IDS_GET,
 | 
			
		||||
    MCE_COLOR_PROFILE_CHANGE_REQ, MCE_COLOR_PROFILE_SIG (Fixes: NB#269000)
 | 
			
		||||
 | 
			
		||||
 -- Santtu Lakkala <ext-santtu.1.lakkala@nokia.com>  Mon, 12 Sep 2011 12:56:11 +0300
 | 
			
		||||
 | 
			
		||||
mce-dev (1.10.28) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * Added MCE_ADD_ACTIVITY_CALLBACK_REQ and MCE_REMOVE_ACTIVITY_CALLBACK_REQ
 | 
			
		||||
    (Fixes: NB#239760)
 | 
			
		||||
 | 
			
		||||
 -- David Weinehall <david.weinehall@nokia.com>  Fri, 08 Apr 2011 15:43:13 +0300
 | 
			
		||||
 | 
			
		||||
mce-dev (1.10.27) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * Added credential annotations (Fixes: NB#231412)
 | 
			
		||||
  * Removed deprecated MCE_TK_SILENT variants
 | 
			
		||||
 | 
			
		||||
 -- David Weinehall <david.weinehall@nokia.com>  Mon, 28 Feb 2011 14:25:23 +0200
 | 
			
		||||
 | 
			
		||||
mce-dev (1.10.26) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * Fixed errors in the doc-base file
 | 
			
		||||
 | 
			
		||||
 -- David Weinehall <david.weinehall@nokia.com>  Mon, 24 Jan 2011 20:49:02 +0200
 | 
			
		||||
 | 
			
		||||
mce-dev (1.10.25) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * Added radio state flags for NFC and FM transmitter
 | 
			
		||||
 | 
			
		||||
 -- David Weinehall <david.weinehall@nokia.com>  Thu, 20 Jan 2011 13:54:23 +0200
 | 
			
		||||
 | 
			
		||||
mce-dev (1.10.24) unstable; urgency=low
 | 
			
		||||
 | 
			
		||||
  * MCE_RADIO_STATES_CHANGE_REQ does not return the updated radio states
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								debian/control
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								debian/control
									
									
									
									
										vendored
									
									
								
							@@ -1,8 +1,8 @@
 | 
			
		||||
Source: mce-dev
 | 
			
		||||
Section: devel
 | 
			
		||||
Priority: optional
 | 
			
		||||
Maintainer: David Weinehall <david.weinehall@nokia.com>
 | 
			
		||||
Uploaders: Ilya Dogolazky <ilya.dogolazky@nokia.com>, Tuomo Tanskanen <ext-tuomo.1.tanskanen@nokia.com>
 | 
			
		||||
Maintainer: Santtu Lakkala <ext-santtu.1.lakkala@nokia.com>
 | 
			
		||||
Uploaders: Tuomo Tanskanen <ext-tuomo.1.tanskanen@nokia.com>, Jukka Turunen <ext-jukka.t.turunen@nokia.com>
 | 
			
		||||
Build-Depends: debhelper (>= 5.0.0)
 | 
			
		||||
Build-Depends-Indep: doxygen
 | 
			
		||||
Standards-Version: 3.7.3
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								debian/mce-doc.doc-base
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								debian/mce-doc.doc-base
									
									
									
									
										vendored
									
									
								
							@@ -1,10 +1,10 @@
 | 
			
		||||
Document: mce
 | 
			
		||||
Title: MCE D-Bus Interface
 | 
			
		||||
Author:
 | 
			
		||||
Author: David Weinehall
 | 
			
		||||
Abstract: The MCE daemon is used on the Maemo platform for various
 | 
			
		||||
 low-level services, such as the LEDs, display control,
 | 
			
		||||
 touchscreen/keypad lock, etc.
 | 
			
		||||
 | 
			
		||||
 .
 | 
			
		||||
 The D-Bus API provided by MCE allows applications to get information
 | 
			
		||||
 about the state of these services and to make various requests.
 | 
			
		||||
Section: Programming
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@
 | 
			
		||||
 * <p>
 | 
			
		||||
 * This file is part of mce-dev
 | 
			
		||||
 * <p>
 | 
			
		||||
 * Copyright © 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
 | 
			
		||||
 * Copyright © 2004-2011 Nokia Corporation and/or its subsidiary(-ies).
 | 
			
		||||
 * <p>
 | 
			
		||||
 * @author David Weinehall <david.weinehall@nokia.com>
 | 
			
		||||
 *
 | 
			
		||||
@@ -148,6 +148,30 @@
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_KEY_BACKLIGHT_STATE_GET	"get_key_backlight_state"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Add an activity notification callback;
 | 
			
		||||
 * the next user activity will trigger this callback
 | 
			
		||||
 * callbacks are one-shot -- once the callback has been invoked,
 | 
			
		||||
 * it will be unregistered
 | 
			
		||||
 *
 | 
			
		||||
 * @since 1.10.106
 | 
			
		||||
 * @param service @c gchar @c * The method call service
 | 
			
		||||
 * @param path @c gchar @c * The method call path
 | 
			
		||||
 * @param interface @c gchar @c * The method call interface
 | 
			
		||||
 * @param name @c gchar @c * The name of the method to call
 | 
			
		||||
 * @return @c dbus_bool_t @c TRUE if registration was successful,
 | 
			
		||||
 *                        @c FALSE if registration was a failure
 | 
			
		||||
 *                           (too many registered clients)
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_ADD_ACTIVITY_CALLBACK_REQ	"add_activity_callback"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Remove any activity notification callback belonging to the calling process
 | 
			
		||||
 *
 | 
			
		||||
 * @since 1.10.106
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_REMOVE_ACTIVITY_CALLBACK_REQ	"remove_activity_callback"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Query the inactivity status
 | 
			
		||||
 *
 | 
			
		||||
@@ -157,6 +181,22 @@
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_INACTIVITY_STATUS_GET	"get_inactivity_status"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Query the current color profile id
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.11.2
 | 
			
		||||
 * @return @c gchar @c * with the the current profile id
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_COLOR_PROFILE_GET		"get_color_profile"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Query the list of the available color profile ids
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.11.2
 | 
			
		||||
 * @return @c gchar @c ** with the nul-terminated array of the color profile ids
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_COLOR_PROFILE_IDS_GET		"get_color_profile_ids"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Query the MCE version
 | 
			
		||||
 *
 | 
			
		||||
@@ -169,6 +209,7 @@
 | 
			
		||||
 * Request radio states change
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.10.60
 | 
			
		||||
 * @credential mce::DeviceModeControl
 | 
			
		||||
 * @param @c dbus_uint32_t New radio states or:ed together
 | 
			
		||||
 *        (see @ref mce/mode-names.h for defines for the radio states)
 | 
			
		||||
 * @param @c dbus_uint32_t Mask for radio states or:ed together
 | 
			
		||||
@@ -190,6 +231,7 @@
 | 
			
		||||
 * crashing applications doesn't cause a forever busy call state
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.8.1
 | 
			
		||||
 * @credential mce::CallStateControl
 | 
			
		||||
 * @param call_state @c gchar @c * with the new call state
 | 
			
		||||
 *             (see @ref mce/mode-names.h for valid call states)
 | 
			
		||||
 * @param call_type @c gchar @c * with the new call type
 | 
			
		||||
@@ -220,6 +262,18 @@
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_DISPLAY_OFF_REQ		"req_display_state_off"
 | 
			
		||||
 | 
			
		||||
/** Set display to low power mode
 | 
			
		||||
 *
 | 
			
		||||
 * Low power mode is a display off sub state. From normal
 | 
			
		||||
 * display state signaling point of view it behaves just as
 | 
			
		||||
 * display off would. Depending on available hw support and
 | 
			
		||||
 * configuration extra ipc relevant for home screen / system
 | 
			
		||||
 * ui only might happen.
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.33.0
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_DISPLAY_LPM_REQ             "req_display_state_lpm"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Prevent display from blanking
 | 
			
		||||
 *
 | 
			
		||||
@@ -234,6 +288,33 @@
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_CANCEL_PREVENT_BLANK_REQ	"req_display_cancel_blanking_pause"
 | 
			
		||||
 | 
			
		||||
/** Get current blank prevention status
 | 
			
		||||
 *
 | 
			
		||||
 * @since 1.51.0
 | 
			
		||||
 *
 | 
			
		||||
 * @return @c gchar @c * with the blanking pause state
 | 
			
		||||
 *         (see @ref mce/mode-names.h for valid blanking pause states)
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_PREVENT_BLANK_GET		"get_display_blanking_pause"
 | 
			
		||||
 | 
			
		||||
/** Get current blank inhibition status
 | 
			
		||||
 *
 | 
			
		||||
 * @since 1.51.0
 | 
			
		||||
 *
 | 
			
		||||
 * @return @c gchar @c * with the blanking inhibit state
 | 
			
		||||
 *         (see @ref mce/mode-names.h for valid blanking inhibit states)
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_BLANKING_INHIBIT_GET	"get_display_blanking_inhibit"
 | 
			
		||||
 | 
			
		||||
/** Get current display blanking policy status
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.55.0
 | 
			
		||||
 *
 | 
			
		||||
 * @return @c gchar @c * with the blanking polic state
 | 
			
		||||
 *         (see @ref mce/mode-names.h for valid blanking policy states)
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_BLANKING_POLICY_GET         "get_display_blanking_policy"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Request CABC mode change
 | 
			
		||||
 *
 | 
			
		||||
@@ -249,6 +330,7 @@
 | 
			
		||||
 * Request tklock mode change
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.4.0
 | 
			
		||||
 * @credential mce::TKLockControl
 | 
			
		||||
 * @param mode @c gchar @c * with the new touchscreen/keypad lock mode
 | 
			
		||||
 *             (see @ref mce/mode-names.h for valid lock modes)
 | 
			
		||||
 */
 | 
			
		||||
@@ -257,6 +339,7 @@
 | 
			
		||||
/**
 | 
			
		||||
 * Request powerkey event triggering
 | 
			
		||||
 *
 | 
			
		||||
 * @credential mce::DeviceModeControl
 | 
			
		||||
 * @since v1.5.3
 | 
			
		||||
 * @param type @c dbus_bool_t with the type of powerkey event to
 | 
			
		||||
 *                trigger; @c FALSE == short powerkey press,
 | 
			
		||||
@@ -269,6 +352,141 @@
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_TRIGGER_POWERKEY_EVENT_REQ	"req_trigger_powerkey_event"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Request color profile change
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.11.2
 | 
			
		||||
 * @credential mce::ColorProfileControl
 | 
			
		||||
 * @param mode @c gchar @c * with the new color profile id
 | 
			
		||||
 *             (see @ref MCE_COLOR_PROFILE_IDS_GET to learn
 | 
			
		||||
 *              how to get the valid color profile ids)
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_COLOR_PROFILE_CHANGE_REQ	"req_color_profile_change"
 | 
			
		||||
 | 
			
		||||
/** Query the length of time late suspend can be blocked
 | 
			
		||||
 *
 | 
			
		||||
 * The idea is: if some process needs to do non-interactive
 | 
			
		||||
 * background processing, it can prevent the system from
 | 
			
		||||
 * entering late suspend by
 | 
			
		||||
 *
 | 
			
		||||
 * 1) get timer period via #MCE_CPU_KEEPALIVE_PERIOD_REQ call
 | 
			
		||||
 *
 | 
			
		||||
 * 2) call #MCE_CPU_KEEPALIVE_START_REQ
 | 
			
		||||
 *
 | 
			
		||||
 * 3) repeat #MCE_CPU_KEEPALIVE_START_REQ calls in interval
 | 
			
		||||
 *    that is shorter than the maximum obtained at (1)
 | 
			
		||||
 *
 | 
			
		||||
 * 4) call #MCE_CPU_KEEPALIVE_STOP_REQ when finished
 | 
			
		||||
 *
 | 
			
		||||
 * MCE keeps track of active clients and blocks late suspend
 | 
			
		||||
 * until all clients have called #MCE_CPU_KEEPALIVE_STOP_REQ,
 | 
			
		||||
 * lost D-Bus connection (exit, crash, ...) or all timeouts
 | 
			
		||||
 * have been missed.
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.12.8
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.23.7
 | 
			
		||||
 *
 | 
			
		||||
 * An unique within process tracking id can be passed to all
 | 
			
		||||
 * cpu keepalive related D-Bus method calls. This allows mce
 | 
			
		||||
 * to keep track of multiple, possibly overlapping keepalive
 | 
			
		||||
 * periods from one process.
 | 
			
		||||
 *
 | 
			
		||||
 * Old code that does not pass the tracking id still works
 | 
			
		||||
 * as long as the client process does not have multiple
 | 
			
		||||
 * overlapping periods at once.
 | 
			
		||||
 *
 | 
			
		||||
 * @param context Tracking id as DBUS_TYPE_STRING
 | 
			
		||||
 *
 | 
			
		||||
 * @return period in seconds as DBUS_TYPE_INT32
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_CPU_KEEPALIVE_PERIOD_REQ	"req_cpu_keepalive_period"
 | 
			
		||||
 | 
			
		||||
/** Temporarily disable enter late suspend policy
 | 
			
		||||
 *
 | 
			
		||||
 * This method call must be repeated periodically to keep
 | 
			
		||||
 * the system from entering late suspend.
 | 
			
		||||
 *
 | 
			
		||||
 * The period length can be obtained via #MCE_CPU_KEEPALIVE_PERIOD_REQ.
 | 
			
		||||
 *
 | 
			
		||||
 * Note: The boolean reply message is optional and will be sent
 | 
			
		||||
 *       only if requested.
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.12.8
 | 
			
		||||
 *
 | 
			
		||||
 * @param context Tracking id as DBUS_TYPE_STRING
 | 
			
		||||
 *
 | 
			
		||||
 * @return success as DBUS_TYPE_BOOLEAN
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_CPU_KEEPALIVE_START_REQ	"req_cpu_keepalive_start"
 | 
			
		||||
 | 
			
		||||
/** Allow normal enter late suspend policy again
 | 
			
		||||
 *
 | 
			
		||||
 * If a process blocks late suspend via #MCE_CPU_KEEPALIVE_START_REQ,
 | 
			
		||||
 * it must call #MCE_CPU_KEEPALIVE_STOP_REQ when background processing
 | 
			
		||||
 * is finished to enable normal late suspend policy again.
 | 
			
		||||
 *
 | 
			
		||||
 * Note: The boolean reply message is optional and will be sent
 | 
			
		||||
 *       only if requested.
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.12.8
 | 
			
		||||
 *
 | 
			
		||||
 * @param context Tracking id as DBUS_TYPE_STRING
 | 
			
		||||
 *
 | 
			
		||||
 * @return success as DBUS_TYPE_BOOLEAN
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_CPU_KEEPALIVE_STOP_REQ	"req_cpu_keepalive_stop"
 | 
			
		||||
 | 
			
		||||
/** Signal wakeup from suspend due to aligned timer triggering
 | 
			
		||||
 *
 | 
			
		||||
 * NOTE: This is reserved for use from dsme iphb module and is
 | 
			
		||||
 * used to transfer ownership of rtc irq wakeup wakelock from
 | 
			
		||||
 * dsme to mce.
 | 
			
		||||
 *
 | 
			
		||||
 * Note: The boolean reply message is optional and will be sent
 | 
			
		||||
 *       only if requested.
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.12.8
 | 
			
		||||
 *
 | 
			
		||||
 * @return success as DBUS_TYPE_BOOLEAN
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_CPU_KEEPALIVE_WAKEUP_REQ	"req_cpu_keepalive_wakeup"
 | 
			
		||||
 | 
			
		||||
/** Query configuration value
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.12.15
 | 
			
		||||
 *
 | 
			
		||||
 * @param key Configuration value name as DBUS_TYPE_STRING
 | 
			
		||||
 *
 | 
			
		||||
 * @return Configuration value as DBUS_TYPE_VARIANT, or
 | 
			
		||||
 *         error reply
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_CONFIG_GET	"get_config"
 | 
			
		||||
 | 
			
		||||
/** Set configuration value
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.12.15
 | 
			
		||||
 *
 | 
			
		||||
 * @param key Configuration value name as DBUS_TYPE_STRING
 | 
			
		||||
 * @param val Configuration value as DBUS_TYPE_VARIANT
 | 
			
		||||
 *
 | 
			
		||||
 * @return Success as DBUS_TYPE_BOOLEAN, or error reply
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_CONFIG_SET	"set_config"
 | 
			
		||||
 | 
			
		||||
/** Reset configuration values to default
 | 
			
		||||
 *
 | 
			
		||||
 * All config settings with keyname that matches the given substring
 | 
			
		||||
 * will be reset to configured defaults e.g. using "/" resets all
 | 
			
		||||
 * settings while using "/display/" resets only display related values.
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.42.0
 | 
			
		||||
 *
 | 
			
		||||
 * @param keyish Substring of config value name as DBUS_TYPE_STRING
 | 
			
		||||
 *
 | 
			
		||||
 * @return Number of changed settings as DBUS_TYPE_INT32; -1 on failure
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_CONFIG_RESET "reset_config"
 | 
			
		||||
/*@}*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
@@ -295,6 +513,33 @@
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_DISPLAY_SIG			"display_status_ind"
 | 
			
		||||
 | 
			
		||||
/** Notify everyone whether the display blanking is paused
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.51.0
 | 
			
		||||
 *
 | 
			
		||||
 * @return @c gchar @c * with the blanking pause state
 | 
			
		||||
 *         (see @ref mce/mode-names.h for valid blanking pause states)
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_PREVENT_BLANK_SIG		"display_blanking_pause_ind"
 | 
			
		||||
 | 
			
		||||
/** Notify everyone whether the display blanking is inhibited
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.51.0
 | 
			
		||||
 *
 | 
			
		||||
 * @return @c gchar @c * with the display baling inhibit state
 | 
			
		||||
 *         (see @ref mce/mode-names.h for valid blanking inhibit states)
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_BLANKING_INHIBIT_SIG	"display_blanking_inhibit_ind"
 | 
			
		||||
 | 
			
		||||
/** Notify everyone when the display blanking policy changes
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.55.0
 | 
			
		||||
 *
 | 
			
		||||
 * @return @c gchar @c * with the display blankiing policy state
 | 
			
		||||
 *         (see @ref mce/mode-names.h for valid blanking policy states)
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_BLANKING_POLICY_SIG "display_blanking_policy_ind"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Notify everyone that the state of the automatic power saving mode changed
 | 
			
		||||
 *
 | 
			
		||||
@@ -313,6 +558,14 @@
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_INACTIVITY_SIG		"system_inactivity_ind"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Notify everyone that the color profile has changed
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.11.2
 | 
			
		||||
 * @return @c gchar @c * with the color profile id
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_COLOR_PROFILE_SIG		"color_profile_ind"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Notify everyone that the radio states have changed
 | 
			
		||||
 *
 | 
			
		||||
@@ -333,6 +586,16 @@
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_CALL_STATE_SIG		"sig_call_state_ind"
 | 
			
		||||
 | 
			
		||||
/** Notify everyone that mce configuration value has changed
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.14.1
 | 
			
		||||
 *
 | 
			
		||||
 * @param key Config value name as DBUS_TYPE_STRING
 | 
			
		||||
 * @param val Config value as DBUS_TYPE_VARIANT
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_CONFIG_CHANGE_SIG		"config_change_ind"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/*@}*/
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
@@ -343,8 +606,12 @@
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Activates a pre-defined LED pattern
 | 
			
		||||
 *
 | 
			
		||||
 * Non-existing patterns are ignored
 | 
			
		||||
 *
 | 
			
		||||
 * See also: MCE_LED_PATTERN_ACTIVATED_SIG
 | 
			
		||||
 *
 | 
			
		||||
 * @credential mce::LEDControl
 | 
			
		||||
 * @since v1.5.0
 | 
			
		||||
 * @param pattern @c gchar @c * with the pattern name
 | 
			
		||||
 *                (see @c /etc/mce/mce.ini for valid pattern names)
 | 
			
		||||
@@ -353,14 +620,32 @@
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Deactivates a pre-defined LED pattern
 | 
			
		||||
 *
 | 
			
		||||
 * Non-existing patterns are ignored
 | 
			
		||||
 *
 | 
			
		||||
 * See also: MCE_LED_PATTERN_DEACTIVATED_SIG
 | 
			
		||||
 *
 | 
			
		||||
 * @credential mce::LEDControl
 | 
			
		||||
 * @since v1.5.0
 | 
			
		||||
 * @param pattern @c gchar @c * with the pattern name
 | 
			
		||||
 *                (see @c /etc/mce/mce.ini for valid pattern names)
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_DEACTIVATE_LED_PATTERN	"req_led_pattern_deactivate"
 | 
			
		||||
 | 
			
		||||
/** Notify everyone that a led pattern has been activated
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.25.0
 | 
			
		||||
 * @return @c gchar @c * led pattern name
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_LED_PATTERN_ACTIVATED_SIG   "led_pattern_activated_ind"
 | 
			
		||||
 | 
			
		||||
/** Notify everyone that a led pattern has been deactivated
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.25.0
 | 
			
		||||
 * @return @c gchar @c * led pattern name
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_LED_PATTERN_DEACTIVATED_SIG "led_pattern_deactivated_ind"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Enable LED; this does not affect the LED pattern stack
 | 
			
		||||
 * Note: The GConf setting for LED flashing overrides this value
 | 
			
		||||
@@ -372,6 +657,7 @@
 | 
			
		||||
 *       since some patterns should *always* be visible
 | 
			
		||||
 *       this interface is meant for testing and development only
 | 
			
		||||
 *
 | 
			
		||||
 * @credential mce::LEDControl
 | 
			
		||||
 * @since v1.5.0
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_ENABLE_LED			"req_led_enable"
 | 
			
		||||
@@ -382,6 +668,7 @@
 | 
			
		||||
 *       since some patterns should *always* be visible
 | 
			
		||||
 *       this interface is meant for testing and development only
 | 
			
		||||
 *
 | 
			
		||||
 * @credential mce::LEDControl
 | 
			
		||||
 * @since v1.5.0
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_DISABLE_LED			"req_led_disable"
 | 
			
		||||
 
 | 
			
		||||
@@ -48,6 +48,18 @@
 | 
			
		||||
 * @since v1.10.60
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_RADIO_STATE_BLUETOOTH	(1 << 3)
 | 
			
		||||
/**
 | 
			
		||||
 * NFC; set - enabled, unset - disabled
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.10.93
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_RADIO_STATE_NFC		(1 << 4)
 | 
			
		||||
/**
 | 
			
		||||
 * FM transmitter; set - enabled, unset - disabled
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.10.93
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_RADIO_STATE_FMTX		(1 << 5)
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * No ongoing call
 | 
			
		||||
@@ -107,6 +119,12 @@
 | 
			
		||||
 * @since v1.4.15
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_TK_LOCKED_DIM			"locked-dim"
 | 
			
		||||
/**
 | 
			
		||||
 * Touchscreen/Keypad locked with delay
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.12.2
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_TK_LOCKED_DELAY			"locked-delay"
 | 
			
		||||
/**
 | 
			
		||||
 * Touchscreen/Keypad silently locked with fadeout
 | 
			
		||||
 *
 | 
			
		||||
@@ -145,6 +163,58 @@
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_DISPLAY_OFF_STRING			"off"
 | 
			
		||||
 | 
			
		||||
/** Blank prevent state name for active
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.51.0
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_PREVENT_BLANK_ACTIVE_STRING		"active"
 | 
			
		||||
/** Blank prevent state name for inactive
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.51.0
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_PREVENT_BLANK_INACTIVE_STRING	"inactive"
 | 
			
		||||
 | 
			
		||||
/** Blank inhibit state name for active
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.51.0
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_INHIBIT_BLANK_ACTIVE_STRING		"active"
 | 
			
		||||
/** Blank inhibit state name for inactive
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.51.0
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_INHIBIT_BLANK_INACTIVE_STRING	"inactive"
 | 
			
		||||
 | 
			
		||||
/** Default blanking policy active
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.55.0
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_BLANKING_POLICY_DEFAULT_STRING      "default"
 | 
			
		||||
 | 
			
		||||
/** Default blanking policy disabled due to notifications
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.55.0
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_BLANKING_POLICY_NOTIFICATION_STRING "notification"
 | 
			
		||||
 | 
			
		||||
/** Default blanking policy disabled due to alarm dialog state
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.55.0
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_BLANKING_POLICY_ALARM_STRING        "alarm"
 | 
			
		||||
 | 
			
		||||
/** Default blanking policy disabled due to call state
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.55.0
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_BLANKING_POLICY_CALL_STRING         "call"
 | 
			
		||||
 | 
			
		||||
/** Default blanking policy is about to be restored
 | 
			
		||||
 *
 | 
			
		||||
 * @since v1.55.0
 | 
			
		||||
 */
 | 
			
		||||
#define MCE_BLANKING_POLICY_LINGER_STRING       "linger"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * CABC name for CABC disabled
 | 
			
		||||
 *
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								mce.pc
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								mce.pc
									
									
									
									
									
								
							@@ -3,7 +3,7 @@ includedir=${prefix}/include
 | 
			
		||||
 | 
			
		||||
Name: mce
 | 
			
		||||
Description: Mode Control Entity
 | 
			
		||||
Version: 1.10.24
 | 
			
		||||
Version: 1.17.0
 | 
			
		||||
Requires:
 | 
			
		||||
Libs:
 | 
			
		||||
Cflags: -I${includedir}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										22
									
								
								rpm/mce-headers.changes
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								rpm/mce-headers.changes
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
* Wed Mar 06 2013 Simo Piiroinen <simo.piiroinen@jollamobile.com> - 1.12.3
 | 
			
		||||
- Added cpu-keepalive methods
 | 
			
		||||
- Removed unintentional mce-doc -> mce-headers dependency
 | 
			
		||||
 | 
			
		||||
* Mon Dec 10 2012 Marko Saukko <marko.saukko@jollamobile.com> - 1.12.2
 | 
			
		||||
- Updated packaging.
 | 
			
		||||
 | 
			
		||||
* Wed Oct 31 2012 Islam Amer <islam.amer@jollamobile.com> - 1.12.2
 | 
			
		||||
- Version bump to 1.12.2 to sync with mce version
 | 
			
		||||
- Added MCE_TK_LOCKED_DELAY 
 | 
			
		||||
 | 
			
		||||
* Sun Dec 18 2011 Markus Lehtonen <markus.lehtonen@iki.fi> - 1.11.0
 | 
			
		||||
- Version bump to 1.11.0
 | 
			
		||||
 | 
			
		||||
* Mon Oct 24 2011 Marko Saukko <marko.saukko@cybercom.com> - 1.10.26-1
 | 
			
		||||
- Added .yaml for spectacle.
 | 
			
		||||
 | 
			
		||||
* Fri Jan 28 2011 Tapio Rantala <ext-tapio.rantala@nokia.com> - 1.10.26-1
 | 
			
		||||
- New upstream version (BMC#13081)
 | 
			
		||||
 | 
			
		||||
* Wed Jan 19 2011 Tapio Rantala <ext-tapio.rantala@nokia.com> - 1.10.24-1
 | 
			
		||||
- Initial meego packaging (FEA#5525) (FEA#5526) (FEA#5527) (FEA#5528)
 | 
			
		||||
							
								
								
									
										46
									
								
								rpm/mce-headers.spec
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								rpm/mce-headers.spec
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,46 @@
 | 
			
		||||
Name:       mce-headers
 | 
			
		||||
Summary:    Development files for mce
 | 
			
		||||
Version:    1.17.0
 | 
			
		||||
Release:    1
 | 
			
		||||
Group:      Development/Libraries
 | 
			
		||||
License:    LGPLv2
 | 
			
		||||
URL:        https://github.com/nemomobile/mce-dev
 | 
			
		||||
Source0:    %{name}-%{version}.tar.bz2
 | 
			
		||||
BuildRequires:  doxygen
 | 
			
		||||
 | 
			
		||||
%description
 | 
			
		||||
This package contains headers defining the D-Bus method calls
 | 
			
		||||
provided by the Mode Control Entity, and the signals emitted by it.
 | 
			
		||||
 | 
			
		||||
%package -n mce-doc
 | 
			
		||||
Summary:    Documentation files for mce D-Bus API
 | 
			
		||||
Group:      Documentation
 | 
			
		||||
BuildArch:  noarch
 | 
			
		||||
 | 
			
		||||
%description -n mce-doc
 | 
			
		||||
This package contains documentation describing the D-Bus method calls
 | 
			
		||||
provided by the Mode Control Entity, and the signals emitted by it.
 | 
			
		||||
 | 
			
		||||
%prep
 | 
			
		||||
%setup -q -n %{name}-%{version}
 | 
			
		||||
 | 
			
		||||
%build
 | 
			
		||||
make %{?jobs:-j%jobs}
 | 
			
		||||
make doc
 | 
			
		||||
 | 
			
		||||
%install
 | 
			
		||||
rm -rf %{buildroot}
 | 
			
		||||
%make_install
 | 
			
		||||
install -d %{buildroot}/%{_docdir}/mce-doc/html/
 | 
			
		||||
install -m 644 doc/html/* %{buildroot}/%{_docdir}/mce-doc/html/
 | 
			
		||||
 | 
			
		||||
%files
 | 
			
		||||
%defattr(-,root,root,-)
 | 
			
		||||
%doc COPYING debian/copyright
 | 
			
		||||
%{_includedir}/mce/*.h
 | 
			
		||||
%{_libdir}/pkgconfig/mce.pc
 | 
			
		||||
 | 
			
		||||
%files -n mce-doc
 | 
			
		||||
%defattr(-,root,root,-)
 | 
			
		||||
%doc COPYING debian/changelog debian/copyright
 | 
			
		||||
%{_docdir}/mce-doc/html/*
 | 
			
		||||
							
								
								
									
										32
									
								
								verify_version
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										32
									
								
								verify_version
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,32 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
# Check that all files that should have the current version agree on it
 | 
			
		||||
 | 
			
		||||
PC_PATH=mce.pc
 | 
			
		||||
PC_VERS=$(grep '^Version:' $PC_PATH |sed -e 's/^.*:[[:space:]]*//')
 | 
			
		||||
 | 
			
		||||
DEB_PATH=debian/changelog
 | 
			
		||||
DEB_VERS=$(head -1 $DEB_PATH | sed -e 's/^.*(//' -e 's/).*$//')
 | 
			
		||||
 | 
			
		||||
SPEC_PATH=${RPM_SOURCE_DIR:-rpm}/${RPM_PACKAGE_NAME:-mce-headers}.spec
 | 
			
		||||
SPEC_VERS=$(grep '^Version:' $SPEC_PATH |sed -e 's/^.*:[[:space:]]*//')
 | 
			
		||||
 | 
			
		||||
RES=0
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if [ "$DEB_VERS" != "$PC_VERS" ]; then
 | 
			
		||||
  echo >&2 "$PC_PATH $PC_VERS vs $DEB_PATH $DEB_VERS"
 | 
			
		||||
  RES=1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ "$SPEC_VERS" != "$PC_VERS" ]; then
 | 
			
		||||
  echo >&2 "$PC_PATH $PC_VERS vs $SPEC_PATH $SPEC_VERS"
 | 
			
		||||
  RES=1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if [ $RES != 0 ]; then
 | 
			
		||||
  echo >&2 "Conflicting package versions"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
exit $RES
 | 
			
		||||
		Reference in New Issue
	
	Block a user