From dacf52300b389c9ab2a6141423962202b84da6d8 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 30 Jul 2018 23:42:07 +0200 Subject: Cleanup. --- common/genericresource.h | 5 +++-- common/resource.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/genericresource.h b/common/genericresource.h index d34a361..017d6bc 100644 --- a/common/genericresource.h +++ b/common/genericresource.h @@ -20,8 +20,8 @@ #pragma once #include "sink_export.h" -#include -#include +#include "resource.h" +#include "resourcecontext.h" namespace Sink { class Pipeline; @@ -35,6 +35,7 @@ class CommandProcessor; */ class SINK_EXPORT GenericResource : public Resource { + Q_OBJECT public: GenericResource(const Sink::ResourceContext &context, const QSharedPointer &pipeline = QSharedPointer()); virtual ~GenericResource() Q_DECL_OVERRIDE; diff --git a/common/resource.h b/common/resource.h index 1b0b388..2c33c0c 100644 --- a/common/resource.h +++ b/common/resource.h @@ -64,6 +64,7 @@ private: */ class SINK_EXPORT ResourceFactory : public QObject { + Q_OBJECT public: static ResourceFactory *load(const QByteArray &resourceName); @@ -83,4 +84,4 @@ private: } // namespace Sink -Q_DECLARE_INTERFACE(Sink::ResourceFactory, "sink.sink.resourcefactory") +Q_DECLARE_INTERFACE(Sink::ResourceFactory, "sink.resourcefactory") -- cgit v1.2.3