Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
move #definitions to .cpp
  • Loading branch information
pvuorela committed Jul 7, 2015
1 parent 794123c commit df0a9c7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
12 changes: 12 additions & 0 deletions connd/wakeupwatcher.cpp
Expand Up @@ -19,6 +19,18 @@

#include "wakeupwatcher.h"

#define MCE_SERVICE "com.nokia.mce"
#define MCE_SIGNAL_PATH "/com/nokia/mce/signal"
#define MCE_SIGNAL_INTERFACE "com.nokia.mce.signal"
#define MCE_PSM_STATE_IND "psm_state_ind"
#define MCE_DISPLAY_IND "display_status_ind"

#define MCE_REQUEST_PATH "/com/nokia/mce/request"
#define MCE_REQUEST_INTERFACE "com.nokia.mce.request"
#define MCE_DISPLAY_STATUS_GET "get_display_status"
#define MCE_PSM_STATE_GET "get_psm_state"


WakeupWatcher::WakeupWatcher(QObject *parent) :
QObject(parent),
currentPowerSave(false)
Expand Down
13 changes: 1 addition & 12 deletions connd/wakeupwatcher.h
Expand Up @@ -20,17 +20,6 @@
#include <QObject>
#include <QDBusInterface>

#define MCE_SERVICE "com.nokia.mce"
#define MCE_SIGNAL_PATH "/com/nokia/mce/signal"
#define MCE_SIGNAL_INTERFACE "com.nokia.mce.signal"
#define MCE_PSM_STATE_IND "psm_state_ind"
#define MCE_DISPLAY_IND "display_status_ind"

#define MCE_REQUEST_PATH "/com/nokia/mce/request"
#define MCE_REQUEST_INTERFACE "com.nokia.mce.request"
#define MCE_DISPLAY_STATUS_GET "get_display_status"
#define MCE_PSM_STATE_GET "get_psm_state"

class WakeupWatcher : public QObject
{
Q_OBJECT
Expand All @@ -40,11 +29,11 @@ class WakeupWatcher : public QObject
signals:
void displayStateChanged(const QString&);
void sleepStateChanged(bool);
public slots:

private slots:
void mceDisplayStateChanged(const QString &state);
void mceSleepStateChanged(bool mode);

private:
QDBusInterface *mceInterface;
QString currentDisplayState;
Expand Down

0 comments on commit df0a9c7

Please sign in to comment.