harbour-tooter/src/dbus.h

34 lines
574 B
C
Raw Normal View History

2017-10-25 01:37:33 +03:00
#ifndef DBUS_H
#define DBUS_H
#include <QObject>
#include <QtDBus/QtDBus>
#include "dbusAdaptor.h"
#define SERVICE_NAME "ba.dysko.harbour.tooter"
class QDBusInterface;
class Dbus : public QObject
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", SERVICE_NAME)
public:
explicit Dbus(QObject *parent = 0);
~Dbus();
void registerDBus();
public Q_SLOTS:
Q_NOREPLY void showtoot(const QStringList &key);
Q_NOREPLY void openapp();
signals:
void viewtoot(QString key);
void activateapp();
private:
bool m_dbusRegistered;
};
#endif // DBUS_H