Commit df0a9c76 authored by Pekka Vuorela's avatar Pekka Vuorela

move #definitions to .cpp

parent 794123c8
...@@ -19,6 +19,18 @@ ...@@ -19,6 +19,18 @@
#include "wakeupwatcher.h" #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) : WakeupWatcher::WakeupWatcher(QObject *parent) :
QObject(parent), QObject(parent),
currentPowerSave(false) currentPowerSave(false)
......
...@@ -20,17 +20,6 @@ ...@@ -20,17 +20,6 @@
#include <QObject> #include <QObject>
#include <QDBusInterface> #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 class WakeupWatcher : public QObject
{ {
Q_OBJECT Q_OBJECT
...@@ -40,11 +29,11 @@ public: ...@@ -40,11 +29,11 @@ public:
signals: signals:
void displayStateChanged(const QString&); void displayStateChanged(const QString&);
void sleepStateChanged(bool); void sleepStateChanged(bool);
public slots:
private slots: private slots:
void mceDisplayStateChanged(const QString &state); void mceDisplayStateChanged(const QString &state);
void mceSleepStateChanged(bool mode); void mceSleepStateChanged(bool mode);
private: private:
QDBusInterface *mceInterface; QDBusInterface *mceInterface;
QString currentDisplayState; QString currentDisplayState;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment