mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
DBus enabling of base classes plus sample for testing / show how to use them. Also qdbuscpp2xml plugin for blackmisc classes.
This commit is contained in:
28
src/blackmisc_cpp2xml/blackmiscplugin.h
Normal file
28
src/blackmisc_cpp2xml/blackmiscplugin.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/* 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 BLACKMISC_CPP2XML_H
|
||||
#define BLACKMISC_CPP2XML_H
|
||||
|
||||
#include <QDBusMetaType>
|
||||
#include <QMetaType>
|
||||
|
||||
/*!
|
||||
* \brief Plugin to register all relevant blackmisc classes for QDBusCpp2XmlPlugin
|
||||
*/
|
||||
class BlackmiscPlugin : public QObject, public QDBusCpp2XmlPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(QDBusCpp2XmlPlugin)
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.DBus.Cpp2XmlPlugin")
|
||||
|
||||
public:
|
||||
/*!
|
||||
* \brief Register Metatypes
|
||||
*/
|
||||
virtual void registerMetaTypes();
|
||||
};
|
||||
|
||||
#endif // BLACKMISC_CPP2XML_H
|
||||
Reference in New Issue
Block a user