add forward declarations

pull/135/head
Simon Stürz 2015-06-30 23:47:24 +02:00 committed by Michael Zanetti
parent 91afe4f29e
commit 12a93c0898
5 changed files with 10 additions and 6 deletions

View File

@ -24,7 +24,6 @@
#include "rule.h"
#include "types/event.h"
#include "plugin/device.h"
#include "plugin/deviceplugin.h"
#include "plugin/deviceclass.h"
#include "plugin/devicedescriptor.h"
@ -35,6 +34,8 @@
#include <QObject>
#include <QDebug>
class Device;
namespace guhserver {
class JsonRPCServer;

View File

@ -22,7 +22,6 @@
#ifndef JSONRPCSERVER_H
#define JSONRPCSERVER_H
#include "plugin/device.h"
#include "plugin/deviceclass.h"
#include "jsonhandler.h"
@ -33,6 +32,7 @@
#include <QVariantMap>
#include <QString>
class Device;
namespace guhserver {

View File

@ -23,8 +23,6 @@
#define JSONTYPES_H
#include "plugin/deviceclass.h"
#include "plugin/device.h"
#include "plugin/deviceplugin.h"
#include "plugin/devicedescriptor.h"
#include "rule.h"
#include "devicemanager.h"
@ -46,6 +44,9 @@
#include <QString>
#include <QMetaEnum>
class DevicePlugin;
class Device;
namespace guhserver {
#define DECLARE_OBJECT(typeName, jsonName) \

View File

@ -59,6 +59,7 @@
#include <stdlib.h>
#endif
class QStringList;
static QFile* f = 0;
@ -205,7 +206,6 @@ void qtServiceLogDebug(QtMsgType type, const char* msg)
*/
namespace guhserver {
/*!
Creates a controller object for the service with the given
\a name.

View File

@ -100,6 +100,8 @@ private:
}
Q_DECLARE_METATYPE(guhserver::RuleEngine::RuleError)
using namespace guhserver;
Q_DECLARE_METATYPE(RuleEngine::RuleError)
#endif // RULEENGINE_H