Changed the old code to work as a daemon
[googlelatitude] / src / daemon / dbusadaptor.h
1 #ifndef DBUSADAPTOR_H
2 #define DBUSADAPTOR_H
3
4 #include <QDBusAbstractAdaptor>
5 #include <QApplication>
6 #include <QWidget>
7 #include <QDebug>
8
9 #include "latitude.h"
10
11 class DBusAdaptor : public QDBusAbstractAdaptor
12 {
13     Q_OBJECT
14     Q_CLASSINFO("D-Bus Interface", "com.linfati.GoogleLatitude")
15
16 public:
17     explicit DBusAdaptor(QApplication *application);
18     void setDaemon(LatitudeGUI* d);
19
20 signals:
21
22 public slots:
23     Q_NOREPLY void quit();
24     Q_NOREPLY void show();
25     bool running();
26     void reparseConfiguration();
27
28 private:
29     QApplication *app;
30     LatitudeGUI *daemon;
31 };
32
33 #endif // DBUSADAPTOR_H