Added MCE class.
[situare] / src / mceprivate.h
diff --git a/src/mceprivate.h b/src/mceprivate.h
new file mode 100644 (file)
index 0000000..c4a3abb
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+   Situare - A location system for Facebook
+   Copyright (C) 2010  Ixonos Plc. Authors:
+
+       Jussi Laitinen - jussi.laitinen@ixonos.com
+
+   Situare is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License
+   version 2 as published by the Free Software Foundation.
+
+   Situare 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 General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with Situare; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
+   USA.
+*/
+
+#ifndef MCEPRIVATE_H
+#define MCEPRIVATE_H
+
+#include <QtDBus/QDBusInterface>
+#include <QtDBus/QDBusMessage>
+
+class MCE;
+
+class MCEPrivate : public QObject
+{
+    Q_OBJECT
+
+public:
+    MCEPrivate(QObject *parent);
+
+public:
+    bool isDisplayOn();
+
+private slots:
+    void displayStateChanged(const QDBusMessage &message);
+
+private:
+    QDBusInterface *m_dBusInterface;  ///< D-Bus interface
+    MCE *m_parent;                    ///< Parent object
+    bool m_displayOn;                 ///< Flag for display on/off
+};
+
+#endif // MCEPRIVATE_H