Files
pilotclient/samples/dbusserver/fsd_client_handler.h
Roland Winklmeier efacac77eb refs #42
- Added DBus handler interface
- Added more complex flow to both samples
- Added custom class to be transfered
2013-08-07 01:32:13 +02:00

53 lines
1.1 KiB
C++

/* 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 FSDCLIENTHANDLER_H
#define FSDCLIENTHANDLER_H
#include <QObject>
#include <BlackMisc/dbus_handler.h>
class CFsdClient;
/*!
* \brief FSD client wrapper for DBus
* \details This class handles the DBus communication for the FSD client
* \author Roland Winklmeier
* \version 0.1
* \date July 2013
*/
class CFsdClientHandler : public BlackMisc::IDBusHandler
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.vatsim.pilotClient.FsdClient")
public:
/*!
* \brief Default constructor
* \param parent
*/
CFsdClientHandler(QObject *parent);
/*!
* \brief Destructor
*/
~CFsdClientHandler() {}
/*!
* \brief Starts connection to FSD server
* \param host
*/
Q_INVOKABLE void connectTo(const QString &host);
signals:
void connectedTo( const QString &host);
public slots:
};
#endif // FSDCLIENTHANDLER_H