mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
45 lines
872 B
C++
45 lines
872 B
C++
#ifndef DBUSCLIENT_H
|
|
#define DBUSCLIENT_H
|
|
|
|
#include <QObject>
|
|
#include <QDBusConnection>
|
|
#include <QtDBus/QDBusError>
|
|
|
|
#include "planemanager_interface.h"
|
|
#include "atcmanager_interface.h"
|
|
#include "fsdclient_interface.h"
|
|
|
|
class DBusClient : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
QDBusConnection m_connection;
|
|
org::vatsim::pilotClient::PlaneManager *pilotManagerIface;
|
|
org::vatsim::pilotClient::AtcManager *atcManagerIface;
|
|
org::vatsim::pilotClient::FsdClient *fsdClientIface;
|
|
|
|
public:
|
|
explicit DBusClient(QObject *parent = 0);
|
|
~DBusClient();
|
|
|
|
void connectTo(const QString &host);
|
|
void disconnectFrom();
|
|
|
|
void printPilotList();
|
|
void printAtcList();
|
|
|
|
void printError();
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
private slots:
|
|
void slot_connected(const QString &host);
|
|
void slot_disconnected();
|
|
|
|
};
|
|
|
|
#endif // DBUSCLIENT_H
|