Commit 4c5de708 authored by David Weinehall's avatar David Weinehall

Disable HW fading for now


git-svn-id: https://projects.maemo.org/svn/dsm/mce/trunk@19331 db81c003-b5ea-0310-aa99-ed7f6e1db739
parents
This diff is collapsed.
This diff is collapsed.
# Makefile for MCE
# Copyright © 2004-2010 Nokia Corporation.
# Written by David Weinehall
# Modified by Tuomo Tanskanen
VERSION := 1.10.88
INSTALL := install -o root -g root --mode=755
INSTALL_DIR := install -d
INSTALL_DATA := install -o root -g root --mode=644
DOXYGEN := doxygen
VARDIR := $(DESTDIR)/var/lib/mce
RUNDIR := $(DESTDIR)/var/run/mce
CONFDIR := /etc/mce
CONFINSTDIR := $(DESTDIR)$(CONFDIR)
SBINDIR := $(DESTDIR)/sbin
MODULEDIR := $(DESTDIR)/usr/lib/mce/modules
DBUSDIR := $(DESTDIR)/etc/dbus-1/system.d
LOCALEDIR := $(DESTDIR)/usr/share/locale
GCONFSCHEMADIR := $(DESTDIR)/etc/gconf/schemas
BACKUPCONFDIR := $(DESTDIR)/usr/share/backup-framework/applications
BACKUPSCRIPTDIR := $(DESTDIR)/usr/share/mce
TOPDIR := .
DOCDIR := $(TOPDIR)/doc
TOOLDIR := $(TOPDIR)/tools
TESTSDIR := $(TOPDIR)/tests
MODULE_DIR := $(TOPDIR)/modules
TOOLS := \
$(TOOLDIR)/mcetool
TESTS := \
$(TESTSDIR)/mcetorture
TARGETS := \
mce
MODULES := \
$(MODULE_DIR)/libradiostates.so \
$(MODULE_DIR)/libfilter-brightness-als.so \
$(MODULE_DIR)/libfilter-brightness-simple.so \
$(MODULE_DIR)/libproximity.so \
$(MODULE_DIR)/libkeypad.so \
$(MODULE_DIR)/libinactivity.so \
$(MODULE_DIR)/libcamera.so \
$(MODULE_DIR)/libalarm.so \
$(MODULE_DIR)/libbattery.so \
$(MODULE_DIR)/libdisplay.so \
$(MODULE_DIR)/libled.so \
$(MODULE_DIR)/libcallstate.so \
$(MODULE_DIR)/libaudiorouting.so \
$(MODULE_DIR)/libpowersavemode.so
ONLINERADIOSTATESFILE := radio_states.online
OFFLINERADIOSTATESFILE := radio_states.offline
CONFFILE := mce.ini
DBUSCONF := mce.conf mcetool.conf
GCONFSCHEMAS := display.schemas energymanagement.schemas
BACKUPCONF := mcebackup.conf
BACKUPSCRIPTS := mce-backup mce-restore
WARNINGS := -Wextra -Wall -Wpointer-arith -Wundef -Wcast-align -Wshadow
WARNINGS += -Wbad-function-cast -Wwrite-strings -Wsign-compare
WARNINGS += -Waggregate-return -Wmissing-noreturn -Wnested-externs
WARNINGS += -Wchar-subscripts -Wmissing-prototypes -Wformat-security
WARNINGS += -Wformat=2 -Wformat-nonliteral -Winit-self
WARNINGS += -Wswitch-default -Wstrict-prototypes
WARNINGS += -Wdeclaration-after-statement
WARNINGS += -Wold-style-definition -Wmissing-declarations
WARNINGS += -Wmissing-include-dirs -Wstrict-aliasing=2
WARNINGS += -Wunsafe-loop-optimizations -Winvalid-pch
WARNINGS += -Waddress -Wvolatile-register-var
WARNINGS += -Wmissing-format-attribute
#WARNINGS += -Wswitch-enum -Wunreachable-code
WARNINGS += -Wstack-protector
WARNINGS += -Werror # -std=c99
WARNINGS += -Wno-declaration-after-statement
COMMON_CFLAGS := -D_GNU_SOURCE
COMMON_CFLAGS += -I. $(WARNINGS)
COMMON_CFLAGS += -DG_DISABLE_DEPRECATED
COMMON_CFLAGS += -DOSSOLOG_COMPILE
COMMON_CFLAGS += -DMCE_VAR_DIR=$(VARDIR) -DMCE_RUN_DIR=$(RUNDIR)
COMMON_CFLAGS += -DPRG_VERSION=$(VERSION)
#COMMON_CFLAGS += -funit-at-a-time -fwhole-program -combine
#COMMON_CFLAGS += -fstack-protector
MCE_CFLAGS := $(COMMON_CFLAGS)
MCE_CFLAGS += -DMCE_CONF_FILE=$(CONFDIR)/$(CONFFILE)
MCE_CFLAGS += $$(pkg-config gobject-2.0 glib-2.0 gio-2.0 gmodule-2.0 dbus-1 dbus-glib-1 gconf-2.0 conic sysinfo --cflags)
MCE_LDFLAGS := $$(pkg-config gobject-2.0 glib-2.0 gio-2.0 gmodule-2.0 dbus-1 dbus-glib-1 gconf-2.0 conic dsme sysinfo --libs)
LIBS := tklock.c modetransition.c powerkey.c connectivity.c mce-dbus.c mce-dsme.c mce-gconf.c event-input.c event-switches.c mce-hal.c mce-log.c mce-conf.c datapipe.c mce-modules.c mce-io.c mce-lib.c
HEADERS := tklock.h modetransition.h powerkey.h connectivity.h mce.h mce-dbus.h mce-dsme.h mce-gconf.h event-input.h event-switches.h mce-hal.h mce-log.h mce-conf.h datapipe.h mce-modules.h mce-io.h mce-lib.h
MODULE_CFLAGS := $(COMMON_CFLAGS)
MODULE_CFLAGS += -fPIC -shared
MODULE_CFLAGS += -I.
MODULE_CFLAGS += $$(pkg-config gobject-2.0 glib-2.0 gmodule-2.0 dbus-1 dbus-glib-1 gconf-2.0 --cflags)
MODULE_LDFLAGS := $$(pkg-config gobject-2.0 glib-2.0 gmodule-2.0 dbus-1 dbus-glib-1 gconf-2.0 libcal --libs)
MODULE_LIBS := datapipe.c mce-hal.c mce-log.c mce-dbus.c mce-conf.c mce-gconf.c median_filter.c mce-lib.c
MODULE_HEADERS := datapipe.h mce-hal.h mce-log.h mce-dbus.h mce-conf.h mce-gconf.h mce.h median_filter.h mce-lib.h
TOOLS_CFLAGS := $(COMMON_CFLAGS)
TOOLS_CFLAGS += -I.
TOOLS_CFLAGS += $$(pkg-config gobject-2.0 glib-2.0 dbus-1 gconf-2.0 --cflags)
TOOLS_LDFLAGS := $$(pkg-config gobject-2.0 glib-2.0 dbus-1 gconf-2.0 --libs)
TOOLS_HEADERS := tklock.h mce-dsme.h tools/mcetool.h
.PHONY: all
all: $(TARGETS) $(MODULES) $(TOOLS)
$(TARGETS): %: %.c $(HEADERS) $(LIBS)
@$(CC) $(CFLAGS) $(MCE_CFLAGS) -o $@ $< $(LIBS) $(LDFLAGS) $(MCE_LDFLAGS)
$(MODULES): $(MODULE_DIR)/lib%.so: $(MODULE_DIR)/%.c $(MODULE_HEADERS) $(MODULE_LIBS)
@$(CC) $(CFLAGS) $(MODULE_CFLAGS) -o $@ $< $(MODULE_LIBS) $(LDFLAGS) $(MODULE_LDFLAGS)
$(TOOLS): %: %.c $(TOOLS_HEADERS)
@$(CC) $(CFLAGS) $(TOOLS_CFLAGS) -o $@ $< $(LDFLAGS) mce-log.c $(TOOLS_LDFLAGS)
.PHONY: tags
tags:
@find . $(MODULE_DIR) -maxdepth 1 -type f -name '*.[ch]' | xargs ctags -a --extra=+f
.PHONY: doc
doc:
@$(DOXYGEN) 2> $(DOCDIR)/warnings > /dev/null
.PHONY: install
install: all
$(INSTALL_DIR) $(SBINDIR) $(DBUSDIR) $(VARDIR) $(MODULEDIR) &&\
$(INSTALL_DIR) $(RUNDIR) $(CONFINSTDIR) $(GCONFSCHEMADIR) &&\
$(INSTALL_DIR) $(BACKUPCONFDIR) $(BACKUPSCRIPTDIR) &&\
$(INSTALL) $(TARGETS) $(SBINDIR) &&\
$(INSTALL) $(TOOLS) $(TESTS) $(SBINDIR) &&\
$(INSTALL) $(MODULES) $(MODULEDIR) &&\
$(INSTALL) $(BACKUPSCRIPTS) $(BACKUPSCRIPTDIR) &&\
$(INSTALL_DATA) $(ONLINERADIOSTATESFILE) $(VARDIR) &&\
$(INSTALL_DATA) $(OFFLINERADIOSTATESFILE) $(VARDIR) &&\
$(INSTALL_DATA) $(CONFFILE) $(CONFINSTDIR) &&\
$(INSTALL_DATA) $(GCONFSCHEMAS) $(GCONFSCHEMADIR) &&\
$(INSTALL_DATA) $(DBUSCONF) $(DBUSDIR) &&\
$(INSTALL_DATA) $(BACKUPCONF) $(BACKUPCONFDIR)
.PHONY: fixme
fixme:
@find . -type f -name "*.[ch]" | xargs grep -E "FIXME|XXX|TODO"
.PHONY: clean
clean:
@rm -f $(TARGETS) $(TOOLS) $(MODULES)
@if [ x"$(DOCDIR)" != x"" ] && [ -d "$(DOCDIR)" ]; then \
rm -rf $(DOCDIR)/*; \
fi
.PHONY: distclean
distclean: clean
@rm -f tags
GENERIC:
- stay-on doesn't seem to work?!
- Handle display type = 0 properly!
- Make ALS setup a 0-timeout read instead of using
als_read_value_filtered()
- Replace use of *_submode_int32() with datapipe if feasible
- Merge ALS and proximity sensor into modules/sensors.c
- Fix event-input.c to use
/dev/input/{ts,keypad,jack,gpio-keys,pwr_button,mice}
where possible
- Use g_try_malloc() instead of g_malloc()
- Add support for new functionality to mcetorture
| power save mode
- Add function to mce-hal to enumerate features for different
products (flicker key, home key, keyboard, etc.)
- Add code to datapipe.c to ensure that datapipes never end up
called recursively
- Audit the code to ensure that no datapipe triggers or filters
execute datapipes directly; if this cannot be avoided, it needs
to be verified to be safe
- Use string pointer comparisons instead of strcmp() wherever
possible; be sure to internalise strings to enable this
- Add option for proximity sensor policy both for incoming calls
and calls in progress
- Add option to not use systemui tklock if kp + ts irqs are
disabled and immediate blanking is enabled
- Before ALS is fully tuned or if brightness setting isn't
available, use 40%
- Turn powerkey.c, tklock.c into proper modules
- Unify lens cover and camera popout code
| Move camera popout detection to event-switches,
| and overload the lens cover pipe for this, thereby
| ensuring consistent behaviour across hardware.
| Also rename the configuration option CameraPopoutUnlock
| in mce.ini to something more sensible, and enable it
| by default
| keep the camera active code in the camera module
- Update mce manual for GConf keys
- Fix maximum_display_brightness in the filters
| Make it possible to use range 1-<max brightness>
| if the ALS has been disabled
|| Get brightness range from GConf, convert to percentage,
|| use in filter_brightness_simple
|| Non-linearity can then be achieved simply by using a 1-100%
|| range and only providing discrete steps in the app
- Make minimum brightness for RX34 2% of maximum?
- Add option to allow the keyboard/keypad backlight stay on as
long as the keyboard is open and the display is on
- Find some way to make sure audio etc. is disabled
| maybe save old profile and request silent profile,
| then restore?
FIXME:
- mce-modules needs to make use of the module_info
ACTIVITY:
- Make activity sources configurable with path + values
instead of hardcoding them
HACKS:
- "Silent" tklock; no tklock UI, only disable touchscreen
and keypad (to allow mediaplayer to continue playing)
CONFIGURABILITY:
- Check ranges for return values
RELIABILITY:
- Check for superfluous D-Bus arguments
- Return proper D-Bus errors
DOCUMENTATION:
- Manual page for mce.ini
CLEANUP:
OPEN ISSUES:
- Should we unref dbus-messages or not after an OOM?
- Failure cases for D-Bus, GConf, etc.?
/**
* @file bme-dbus-names.h
*/
#ifndef _BME_DBUS_NAMES_H_
#define _BME_DBUS_NAMES_H_
#define DBUS_BROADCAST "org.freedesktop.DBus.Broadcast"
#define BME_SERVICE "com.nokia.bme"
#define BME_REQUEST_IF "com.nokia.bme.request"
#define BME_REQUEST_PATH "/com/nokia/bme/request"
#define BME_SIGNAL_IF "com.nokia.bme.signal"
#define BME_SIGNAL_PATH "/com/nokia/bme/signal"
#define BME_ERROR_FATAL "com.nokia.bme.error.fatal"
#define BME_ERROR_INVALID_ARGS "org.freedesktop.DBus.Error.InvalidArgs"
#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"
#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"
#define BME_STATUS_INFO_REQ "status_info_req"
#define BME_TIMELEFT_INFO_REQ "timeleft_info_req"
#endif /*__BME_DBUS_NAMES_H_ */
/**
* @file connectivity.c
* Connectivity logic for the Mode Control Entity
* <p>
* Copyright © 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
* <p>
* @author David Weinehall <david.weinehall@nokia.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/>.
*/
#include <glib.h>
#include <glib-object.h> /* g_object_set(),
* g_signal_connect(),
* G_OBJECT(),
* G_CALLBACK()
*/
#include <conic.h> /* con_ic_connection_new(),
* con_ic_connection_event_get_status(),
* ConIcConnection,
* ConIcConnectionEvent,
* ConIcConnectionStatus,
* CON_IC_STATUS_CONNECTED
*/
#include "connectivity.h"
/** The connection object */
static ConIcConnection *connection_object = NULL;
/** The handler ID for the connection event signal handler */
static gulong connection_event_handler_id = 0;
/** Is there an open connection or not? */
static gboolean connected = FALSE;
/**
* Connection info handler
*
* @param connection Unused
* @param event The connection event
* @param user_data Unused
*/
static void connection_event_cb(ConIcConnection *connection,
ConIcConnectionEvent *event,
gpointer user_data)
{
ConIcConnectionStatus status;
(void)connection;
(void)user_data;
status = con_ic_connection_event_get_status(event);
connected = (status == CON_IC_STATUS_CONNECTED) ? TRUE : FALSE;
}
/**
* Check connectivity status
*
* @return TRUE if there's an open connection,
* FALSE if there's no open connection
*/
gboolean get_connectivity_status(void) G_GNUC_PURE;
gboolean get_connectivity_status(void)
{
return connected;
}
/**
* Init function for the connectivity component
*
* @return TRUE on success, FALSE on failure
*/
gboolean mce_connectivity_init(void)
{
/* Create connection object */
connection_object = con_ic_connection_new();
/* Connect signal to receive connection events */
connection_event_handler_id =
g_signal_connect(G_OBJECT(connection_object),
"connection-event",
G_CALLBACK(connection_event_cb), NULL);
/* Set automatic events */
g_object_set(G_OBJECT(connection_object),
"automatic-connection-events", TRUE, NULL);
return TRUE;
}
/**
* Exit function for the connectivity component
*
* @todo Unregister the connection events, etc.
*/
void mce_connectivity_exit(void)
{
if (connection_event_handler_id != 0) {
g_signal_handler_disconnect(G_OBJECT(connection_object),
connection_event_handler_id);
connection_event_handler_id = 0;
}
return;
}
/**
* @file connectivity.h
* Headers for the connectivity logic for the Mode Control Entity
* <p>
* Copyright © 2007 Nokia Corporation and/or its subsidiary(-ies).
* <p>
* @author David Weinehall <david.weinehall@nokia.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/>.
*/
#ifndef _CONNECTIVITY_H_
#define _CONNECTIVITY_H_
#include <glib.h>
gboolean get_connectivity_status(void);
gboolean mce_connectivity_init(void);
void mce_connectivity_exit(void);
#endif /* _CONNECTIVITY_H_ */
This diff is collapsed.
/**
* @file datapipe.h
* Headers for the simple filter framework
* <p>
* Copyright © 2007 Nokia Corporation and/or its subsidiary(-ies).
* <p>
* @author David Weinehall <david.weinehall@nokia.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/>.
*/
#ifndef _DATAPIPE_H_
#define _DATAPIPE_H_
#include <glib.h>
/**
* Datapipe structure
*
* Only access this struct through the functions
*/
typedef struct {
GSList *filters; /**< The filters */
GSList *input_triggers; /**< Triggers called on indata */
GSList *output_triggers; /**< Triggers called on outdata */
GSList *refcount_triggers; /**< Triggers called on
* reference count changes
*/
gpointer cached_data; /**< Latest cached data */
gsize datasize; /**< Size of data; NULL == automagic */
gboolean free_cache; /**< Free the cache? */
gboolean read_only; /**< Datapipe is read only */
} datapipe_struct;
/**
* Read only policy type
*/
typedef enum {
READ_WRITE = FALSE, /**< The pipe is read/write */
READ_ONLY = TRUE /**< The pipe is read only */
} read_only_policy_t;
/**
* Policy used for the cache when freeing a datapipe
*/
typedef enum {
DONT_FREE_CACHE = FALSE, /**< Don't free the cache */
FREE_CACHE = TRUE /**< Free the cache */
} cache_free_policy_t;
/**
* Policy for the data source
*/
typedef enum {
USE_INDATA = FALSE, /**< Use the indata as data source */
USE_CACHE = TRUE /**< Use the cache as data source */
} data_source_t;
/**
* Policy used for caching indata
*/
typedef enum {
DONT_CACHE_INDATA = FALSE, /**< Do not cache the indata */
CACHE_INDATA = TRUE /**< Cache the indata */
} caching_policy_t;
/* Data retrieval */
/** Retrieve a gboolean from a datapipe */
#define datapipe_get_gbool(_datapipe) (GPOINTER_TO_INT((_datapipe).cached_data))
/** Retrieve a gint from a datapipe */
#define datapipe_get_gint(_datapipe) (GPOINTER_TO_INT((_datapipe).cached_data))
/** Retrieve a guint from a datapipe */
#define datapipe_get_guint(_datapipe) (GPOINTER_TO_UINT((_datapipe).cached_data))
/** Retrieve a gsize from a datapipe */
#define datapipe_get_gsize(_datapipe) (GPOINTER_TO_SIZE((_datapipe).cached_data))
/** Retrieve a gpointer from a datapipe */
#define datapipe_get_gpointer(_datapipe) ((_datapipe).cached_data)
/* Reference count */
/** Retrieve the filter reference count from a datapipe */
#define datapipe_get_filter_refcount(_datapipe) (g_slist_length((_datapipe).filters))
/** Retrieve the input trigger reference count from a datapipe */
#define datapipe_get_input_trigger_refcount(_datapipe) (g_slist_length((_datapipe).input_triggers))
/** Retrieve the output trigger reference count from a datapipe */
#define datapipe_get_output_trigger_refcount(_datapipe) (g_slist_length((_datapipe).output_triggers))
/* Datapipe execution */
void execute_datapipe_input_triggers(datapipe_struct *const datapipe,
gpointer const indata,
const data_source_t use_cache,
const caching_policy_t cache_indata);
gconstpointer execute_datapipe_filters(datapipe_struct *const datapipe,
gpointer indata,
const data_source_t use_cache);
void execute_datapipe_output_triggers(const datapipe_struct *const datapipe,
gconstpointer indata,
const data_source_t use_cache);
gconstpointer execute_datapipe(datapipe_struct *const datapipe,
gpointer indata,
const data_source_t use_cache,
const caching_policy_t cache_indata);
/* Filters */
void append_filter_to_datapipe(datapipe_struct *const datapipe,
gpointer (*filter)(gpointer data));
void remove_filter_from_datapipe(datapipe_struct *const datapipe,
gpointer (*filter)(gpointer data));
/* Input triggers */
void append_input_trigger_to_datapipe(datapipe_struct *const datapipe,
void (*trigger)(gconstpointer data));
void remove_input_trigger_from_datapipe(datapipe_struct *const datapipe,
void (*trigger)(gconstpointer data));
/* Output triggers */
void append_output_trigger_to_datapipe(datapipe_struct *const datapipe,
void (*trigger)(gconstpointer data));
void remove_output_trigger_from_datapipe(datapipe_struct *const datapipe,
void (*trigger)(gconstpointer data));
/* Reference count triggers */
void append_refcount_trigger_to_datapipe(datapipe_struct *const datapipe,
void (*trigger)(void));
void remove_refcount_trigger_from_datapipe(datapipe_struct *const datapipe,
void (*trigger)(void));
void setup_datapipe(datapipe_struct *const datapipe,
const read_only_policy_t read_only,
const cache_free_policy_t free_cache,
const gsize datasize, gpointer initial_data);
void free_datapipe(datapipe_struct *const datapipe);
#endif /* _DATAPIPE_H_ */
This diff is collapsed.
Source: mce
Section: misc
Priority: optional
Maintainer: David Weinehall <david.weinehall@nokia.com>
Uploaders: Philippe De Swert <philippe.de-swert@nokia.com>, Pekka Lundström <pekka.lundstrom@nokia.com>, Tuomo Tanskanen <ext-tuomo.1.tanskanen@nokia.com>
Build-Depends: debhelper (>= 5.0.0), mce-dev (>= 1.10.21), pkg-config, libglib2.0-dev (>= 2.18.0), libdbus-1-dev (>= 1.0.2), libdbus-glib-1-dev, libdsme0.2.0-dev (>= 0.58), libgconf2-dev, linux-kernel-headers (>= 2.6.32-20100102) | linux-libc-dev (>= 2.6.32), libconic0-dev (>= 0.15-0.1), dpkg-dev (>= 1.13.19), libcal-dev (>= 0.2.4), libi2c-dev, aegis-builder (>= 1.4), libsysinfo-dev
Standards-Version: 3.8.4
Package: mce
Architecture: any
Depends: dbus, ${shlibs:Depends}, ${misc:Depends}
Recommends: dsme (>= 0.30.11), devicelock (>= 0.3.3)
Description: the Mode Control Entity for Nokia mobile computers
This package contains the Mode Control Entity which provides
mode management features. This is a daemon that is the backend
for many features on Nokia's mobile computers.
Package: mce-dbg
Section: devel
Priority: extra
Architecture: any
Depends: mce (= ${binary:Version}), ${misc:Depends}
Description: debug symbols for mce
This package contains the debug symbols for the Mode Control Entity.
Package: mcetools
Section: utils
Architecture: any
Depends: dbus, ${shlibs:Depends}, ${misc:Depends}
Recommends: mce (>= 1.3.1)
Description: tools for interacting with mce
This package contains tools that can be used to interact with
the Mode Control Entity and to get mode information.
Package: mcetools-dbg
Section: devel
Priority: extra
Architecture: any
Depends: mcetools (= ${binary:Version}), ${misc:Depends}
Recommends: mce (>= 1.3.1)
Description: debug symbols for mcetools
This package contains tools that can be used to interact with
the Mode Control Entity and to get mode information with all
debugging information.
This package was debianized by David Weinehall <david.weinehall@nokia.com> on
Mon, 1 Nov 2004 13:46:42 +0300.
Upstream Author: David Weinehall <david.weinehall@nokia.com>
Copyright © 2004-2010 Nokia Corporation and/or its subsidiary(-ies)
License:
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/>.
On Debian systems, the complete text of the GNU Lesser General
Public License can be found in `/usr/share/common-licenses/LGPL-2.1'.
<aegis>
<provide>
<credential name="CallStateControl" />
<credential name="DeviceModeControl" />
<credential name="LEDControl" />
<credential name="TKLockControl" />
<credential name="SensorControl" />
<dbus name="com.nokia.mce" own="SELF" bus="system">
<node name="/">
<interface name="com.nokia.mce.request">
<!-- Default to being permissive -->
<annotation name="com.maemo.Aegis" value=""/>
<!-- Now tighten things up -->
<method name="req_radio_states_change">
<annotation name="com.maemo.Aegis" value="DeviceModeControl"/>
</method>
<method name="req_trigger_powerkey_event">
<annotation name="com.maemo.Aegis" value="DeviceModeControl"/>
</method>
<method name="req_proximity_sensor_enable">
<annotation name="com.maemo.Aegis" value="SensorControl"/>
</method>
<method name="req_proximity_sensor_disable">
<annotation name="com.maemo.Aegis" value="SensorControl"/>
</method>
<method name="req_call_state_change">
<annotation name="com.maemo.Aegis" value="CallStateControl"/>
</method>
<method name="req_tklock_mode_change">
<annotation name="com.maemo.Aegis" value="TKLockControl"/>
</method>
<method name="req_led_pattern_activate">
<annotation name="com.maemo.Aegis" value="LEDControl"/>
</method>
<method name="req_led_pattern_deactivate">
<annotation name="com.maemo.Aegis" value="LEDControl"/>
</method>
<method name="req_led_enable">
<annotation name="com.maemo.Aegis" value="LEDControl"/>
</method>
<method name="req_led_disable">
<annotation name="com.maemo.Aegis" value="LEDControl"/>
</method>
</interface>
</node>
</dbus>
</provide>
<request>
<credential name="GRP::i2c" />
<credential name="GRP::cal" />
<credential name="devicelock::DeviceLockControl" />