Skip to content

Commit

Permalink
Merge pull request #16 from lpotter/master
Browse files Browse the repository at this point in the history
[sensorfw] get rid of mce buildtime requirement
  • Loading branch information
lpotter committed Oct 8, 2013
2 parents cf139b2 + c1fe223 commit 4553a14
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
7 changes: 5 additions & 2 deletions adaptors/alsadaptor/alsadaptor.h
Expand Up @@ -38,8 +38,11 @@
#include <QDBusInterface>

#ifdef SENSORFW_MCE_WATCHER
#include <mce/mode-names.h>
#include <mce/dbus-names.h>
// these come from mce/mode-names.h
// and mce/dbus-names.h
#define MCE_SERVICE "com.nokia.mce"
#define MCE_REQUEST_PATH "/com/nokia/mce/request"
#define MCE_REQUEST_IF "com.nokia.mce.request"
#endif

/**
Expand Down
7 changes: 5 additions & 2 deletions adaptors/proximityadaptor/proximityadaptor.h
Expand Up @@ -35,8 +35,11 @@
#include "datatypes/orientationdata.h"

#ifdef SENSORFW_MCE_WATCHER
#include <mce/mode-names.h>
#include <mce/dbus-names.h>
// these come from mce/mode-names.h
// and mce/dbus-names.h
#define MCE_SERVICE "com.nokia.mce"
#define MCE_REQUEST_PATH "/com/nokia/mce/request"
#define MCE_REQUEST_IF "com.nokia.mce.request"
#endif

/**
Expand Down
3 changes: 1 addition & 2 deletions core/mcewatcher.cpp
Expand Up @@ -25,10 +25,9 @@
*/


#include <mce/mode-names.h>
#include <mce/dbus-names.h>
#include "mcewatcher.h"


MceWatcher::MceWatcher(QObject* parent) : QObject(parent),
dbusIfc(new QDBusInterface(MCE_SERVICE,
MCE_SIGNAL_PATH,
Expand Down
7 changes: 6 additions & 1 deletion core/mcewatcher.h
Expand Up @@ -32,7 +32,12 @@
#include <QObject>
#include <QDBusInterface>
#include <QString>

#define MCE_SERVICE "com.nokia.mce"
#define MCE_SIGNAL_PATH "/com/nokia/mce/signal"
#define MCE_SIGNAL_IF "com.nokia.mce.signal"
#define MCE_DISPLAY_OFF_STRING "off"
#define MCE_PSM_STATE_SIG "psm_state_ind"
#define MCE_DISPLAY_SIG "display_status_ind"
/**
* Class for monitoring various MCE signals.
*/
Expand Down
1 change: 0 additions & 1 deletion rpm/sensorfw-qt5.spec
Expand Up @@ -34,7 +34,6 @@ BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(mce)
Provides: sensord-qt5
Obsoletes: sensorframework

Expand Down
1 change: 0 additions & 1 deletion rpm/sensorfw-qt5.yaml
Expand Up @@ -24,7 +24,6 @@ PkgConfigBR:
- Qt5Network
- Qt5Test
- gconf-2.0
- mce

Obsoletes:
- sensorframework
Expand Down

0 comments on commit 4553a14

Please sign in to comment.