2017-12-17 17:31:49 +01:00
|
|
|
/*
|
|
|
|
|
* File: DBusPOD7Workers.h
|
2022-11-19 16:11:59 +01:00
|
|
|
* Author: Saleem Edah-Tally - nmset@yandex.com
|
2017-12-17 17:31:49 +01:00
|
|
|
* License : GPL V2
|
|
|
|
|
*
|
|
|
|
|
* Created on 10 décembre 2017, 14:12
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef DBUSPOD7WORKERS_H
|
|
|
|
|
#define DBUSPOD7WORKERS_H
|
|
|
|
|
|
|
|
|
|
#include "pod7_adaptor.hpp"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This class only enters the DBus loop in a thread.
|
|
|
|
|
*/
|
|
|
|
|
class DBusPOD7Adaptor : public pedal::event_adaptor,
|
|
|
|
|
public DBus::IntrospectableAdaptor,
|
|
|
|
|
public DBus::ObjectAdaptor
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
DBusPOD7Adaptor(DBus::Connection &connection);
|
|
|
|
|
virtual ~DBusPOD7Adaptor();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Exits the application by sending SIGTERM.
|
|
|
|
|
*/
|
|
|
|
|
void Quit() override;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Enters the DBus loop.
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
static int Entry();
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif /* DBUSPOD7WORKERS_H */
|
|
|
|
|
|