mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
refs #42
- Added DBus handler interface - Added more complex flow to both samples - Added custom class to be transfered
This commit is contained in:
53
samples/dbusserver/aircraft_manager_handler.h
Normal file
53
samples/dbusserver/aircraft_manager_handler.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/* Copyright (C) 2013 VATSIM Community / contributors
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#ifndef PLANEMANAGERHANDLER_H
|
||||
#define PLANEMANAGERHANDLER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QStringList>
|
||||
|
||||
#include "blackmisc/dbus_handler.h"
|
||||
#include "remote_aircraft.h"
|
||||
|
||||
class CAircraftManager;
|
||||
|
||||
/*!
|
||||
* \brief Plane Manager wrapper for DBus
|
||||
* \details This class handles the DBus communication for the PlaneManager
|
||||
* \author Roland Winklmeier
|
||||
* \version 0.1
|
||||
* \date July 2013
|
||||
*/
|
||||
class CAircraftManagerHandler : public BlackMisc::IDBusHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_CLASSINFO("D-Bus Interface", "org.vatsim.pilotClient.PlaneManager")
|
||||
Q_PROPERTY( QList<CRemoteAircraft> aircraftList READ aircraftList)
|
||||
|
||||
QList<CRemoteAircraft> aircraftList() const;
|
||||
|
||||
public:
|
||||
|
||||
/*!
|
||||
* \brief Default constructor
|
||||
* \param parent
|
||||
*/
|
||||
CAircraftManagerHandler(QObject *parent);
|
||||
|
||||
/*!
|
||||
* \brief Destructor
|
||||
*/
|
||||
~CAircraftManagerHandler() {}
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif // PLANEMANAGERHANDLER_H
|
||||
Reference in New Issue
Block a user