libguh.h -> libnymea.h

This commit is contained in:
Michael Zanetti 2018-01-29 16:46:34 +01:00
parent 34e387fa2b
commit 803ee32089
52 changed files with 103 additions and 103 deletions

View File

@ -23,7 +23,7 @@
#ifndef NETWORKACCESSMANAGERIMPL_H #ifndef NETWORKACCESSMANAGERIMPL_H
#define NETWORKACCESSMANAGERIMPL_H #define NETWORKACCESSMANAGERIMPL_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include "network/networkaccessmanager.h" #include "network/networkaccessmanager.h"

View File

@ -25,7 +25,7 @@
#include <QObject> #include <QObject>
#include "libguh.h" #include "libnymea.h"
#include "hardwareresource.h" #include "hardwareresource.h"
#include "hardware/radio433/radio433.h" #include "hardware/radio433/radio433.h"
#include "radio433brennenstuhlgateway.h" #include "radio433brennenstuhlgateway.h"

View File

@ -28,7 +28,7 @@
#include <QHostAddress> #include <QHostAddress>
#include <QTimer> #include <QTimer>
#include "libguh.h" #include "libnymea.h"
namespace guhserver { namespace guhserver {

View File

@ -29,7 +29,7 @@
#include <QQueue> #include <QQueue>
#include <QDebug> #include <QDebug>
#include "libguh.h" #include "libnymea.h"
#include "hardware/gpio.h" #include "hardware/gpio.h"
namespace guhserver { namespace guhserver {

View File

@ -29,7 +29,7 @@
#include <QPointer> #include <QPointer>
#include <QQueue> #include <QQueue>
#include "libguh.h" #include "libnymea.h"
#include "coaprequest.h" #include "coaprequest.h"
#include "coapreply.h" #include "coapreply.h"
#include "coapobserveresource.h" #include "coapobserveresource.h"
@ -45,7 +45,7 @@
Q_DECLARE_LOGGING_CATEGORY(dcCoap) Q_DECLARE_LOGGING_CATEGORY(dcCoap)
class LIBGUH_EXPORT Coap : public QObject class LIBNYMEA_EXPORT Coap : public QObject
{ {
Q_OBJECT Q_OBJECT

View File

@ -25,9 +25,9 @@
#include <QHash> #include <QHash>
#include <QUrl> #include <QUrl>
#include "libguh.h" #include "libnymea.h"
class LIBGUH_EXPORT CoapObserveResource class LIBNYMEA_EXPORT CoapObserveResource
{ {
public: public:
CoapObserveResource(); CoapObserveResource();

View File

@ -25,9 +25,9 @@
#include <QObject> #include <QObject>
#include <QByteArray> #include <QByteArray>
#include "libguh.h" #include "libnymea.h"
class LIBGUH_EXPORT CoapOption class LIBNYMEA_EXPORT CoapOption
{ {
Q_GADGET Q_GADGET
Q_ENUMS(Option) Q_ENUMS(Option)

View File

@ -24,7 +24,7 @@
#include <QDebug> #include <QDebug>
#include <QObject> #include <QObject>
#include "libguh.h" #include "libnymea.h"
#include "coapoption.h" #include "coapoption.h"
#include "coappdublock.h" #include "coappdublock.h"
@ -43,7 +43,7 @@
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/ */
class LIBGUH_EXPORT CoapPdu : public QObject class LIBNYMEA_EXPORT CoapPdu : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_ENUMS(MessageType) Q_ENUMS(MessageType)

View File

@ -23,9 +23,9 @@
#include <QByteArray> #include <QByteArray>
#include "libguh.h" #include "libnymea.h"
class LIBGUH_EXPORT CoapPduBlock class LIBNYMEA_EXPORT CoapPduBlock
{ {
public: public:
CoapPduBlock(); CoapPduBlock();

View File

@ -24,12 +24,12 @@
#include <QObject> #include <QObject>
#include <QTimer> #include <QTimer>
#include "libguh.h" #include "libnymea.h"
#include "coappdu.h" #include "coappdu.h"
#include "coapoption.h" #include "coapoption.h"
#include "coaprequest.h" #include "coaprequest.h"
class LIBGUH_EXPORT CoapReply : public QObject class LIBNYMEA_EXPORT CoapReply : public QObject
{ {
friend class Coap; friend class Coap;

View File

@ -24,11 +24,11 @@
#include <QUrl> #include <QUrl>
#include <QHostAddress> #include <QHostAddress>
#include "libguh.h" #include "libnymea.h"
#include "coappdu.h" #include "coappdu.h"
#include "coapoption.h" #include "coapoption.h"
class LIBGUH_EXPORT CoapRequest class LIBNYMEA_EXPORT CoapRequest
{ {
// friend class Coap; // friend class Coap;
public: public:

View File

@ -24,10 +24,10 @@
#include <QObject> #include <QObject>
#include <QDebug> #include <QDebug>
#include "libguh.h" #include "libnymea.h"
#include "coappdu.h" #include "coappdu.h"
class LIBGUH_EXPORT CoreLink class LIBNYMEA_EXPORT CoreLink
{ {
public: public:
CoreLink(); CoreLink();

View File

@ -23,12 +23,12 @@
#include <QObject> #include <QObject>
#include "libguh.h" #include "libnymea.h"
#include "corelink.h" #include "corelink.h"
// Constrained RESTful Environments (CoRE) Link Format : http://tools.ietf.org/html/rfc6690 // Constrained RESTful Environments (CoRE) Link Format : http://tools.ietf.org/html/rfc6690
class LIBGUH_EXPORT CoreLinkParser : public QObject class LIBNYMEA_EXPORT CoreLinkParser : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:

View File

@ -24,7 +24,7 @@
#ifndef DEVICEMANAGER_H #ifndef DEVICEMANAGER_H
#define DEVICEMANAGER_H #define DEVICEMANAGER_H
#include "libguh.h" #include "libnymea.h"
#include "plugin/device.h" #include "plugin/device.h"
#include "plugin/devicedescriptor.h" #include "plugin/devicedescriptor.h"
@ -47,7 +47,7 @@ class DevicePlugin;
class DevicePairingInfo; class DevicePairingInfo;
class HardwareManager; class HardwareManager;
class LIBGUH_EXPORT DeviceManager : public QObject class LIBNYMEA_EXPORT DeviceManager : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_ENUMS(DeviceError) Q_ENUMS(DeviceError)

View File

@ -26,11 +26,11 @@
#include <QObject> #include <QObject>
#include <QVariant> #include <QVariant>
#include "libguh.h" #include "libnymea.h"
class QSettings; class QSettings;
class LIBGUH_EXPORT GuhSettings : public QObject class LIBNYMEA_EXPORT GuhSettings : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:

View File

@ -26,9 +26,9 @@
#include <QObject> #include <QObject>
#include <QBluetoothDeviceInfo> #include <QBluetoothDeviceInfo>
#include "libguh.h" #include "libnymea.h"
class LIBGUH_EXPORT BluetoothDiscoveryReply : public QObject class LIBNYMEA_EXPORT BluetoothDiscoveryReply : public QObject
{ {
Q_OBJECT Q_OBJECT

View File

@ -29,9 +29,9 @@
#include <QBluetoothServiceInfo> #include <QBluetoothServiceInfo>
#include <QLowEnergyController> #include <QLowEnergyController>
#include "libguh.h" #include "libnymea.h"
class LIBGUH_EXPORT BluetoothLowEnergyDevice : public QObject class LIBNYMEA_EXPORT BluetoothLowEnergyDevice : public QObject
{ {
Q_OBJECT Q_OBJECT

View File

@ -35,9 +35,9 @@
#include "bluetoothdiscoveryreply.h" #include "bluetoothdiscoveryreply.h"
#include "bluetoothlowenergydevice.h" #include "bluetoothlowenergydevice.h"
#include "libguh.h" #include "libnymea.h"
class LIBGUH_EXPORT BluetoothLowEnergyManager : public HardwareResource class LIBNYMEA_EXPORT BluetoothLowEnergyManager : public HardwareResource
{ {
Q_OBJECT Q_OBJECT

View File

@ -29,9 +29,9 @@
#include <QFile> #include <QFile>
#include <QTextStream> #include <QTextStream>
#include "libguh.h" #include "libnymea.h"
class LIBGUH_EXPORT Gpio : public QObject class LIBNYMEA_EXPORT Gpio : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:

View File

@ -28,10 +28,10 @@
#include <QSocketNotifier> #include <QSocketNotifier>
#include <QFile> #include <QFile>
#include "libguh.h" #include "libnymea.h"
#include "gpio.h" #include "gpio.h"
class LIBGUH_EXPORT GpioMonitor : public QObject class LIBNYMEA_EXPORT GpioMonitor : public QObject
{ {
Q_OBJECT Q_OBJECT

View File

@ -28,7 +28,7 @@
#include <QFile> #include <QFile>
#include <QDir> #include <QDir>
#include "libguh.h" #include "libnymea.h"
/* i.MX6 PWMs /* i.MX6 PWMs
* *
@ -57,7 +57,7 @@
* *
*/ */
class LIBGUH_EXPORT Pwm : public QObject class LIBNYMEA_EXPORT Pwm : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:

View File

@ -25,10 +25,10 @@
#include <QObject> #include <QObject>
#include "libguh.h" #include "libnymea.h"
#include "hardwareresource.h" #include "hardwareresource.h"
class LIBGUH_EXPORT Radio433 : public HardwareResource class LIBNYMEA_EXPORT Radio433 : public HardwareResource
{ {
Q_OBJECT Q_OBJECT

View File

@ -23,7 +23,7 @@
#include <QThread> #include <QThread>
#include "libguh.h" #include "libnymea.h"
#include "../gpio.h" #include "../gpio.h"
class LIBGUH_EXPORT Radio433Receiver : public QThread class LIBGUH_EXPORT Radio433Receiver : public QThread

View File

@ -20,16 +20,16 @@
* * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#ifndef LIBGUH #ifndef LIBNYMEA_H
#define LIBGUH #define LIBNYMEA_H
#include <QtCore/QtGlobal> #include <QtCore/QtGlobal>
#if defined(LIBNYMEA_LIBRARY) #if defined(LIBNYMEA_LIBRARY)
# define LIBGUH_EXPORT Q_DECL_EXPORT # define LIBNYMEA_EXPORT Q_DECL_EXPORT
#else #else
# define LIBGUH_EXPORT Q_DECL_IMPORT # define LIBNYMEA_EXPORT Q_DECL_IMPORT
#endif #endif
#endif // LIBGUH #endif // LIBNYMEA_H

View File

@ -15,7 +15,7 @@ INSTALLS += target
LIBS += -lavahi-common -lavahi-client LIBS += -lavahi-common -lavahi-client
HEADERS += devicemanager.h \ HEADERS += devicemanager.h \
libguh.h \ libnymea.h \
typeutils.h \ typeutils.h \
loggingcategories.h \ loggingcategories.h \
guhsettings.h \ guhsettings.h \

View File

@ -30,9 +30,9 @@
#include <avahi-client/publish.h> #include <avahi-client/publish.h>
#include "libguh.h" #include "libnymea.h"
class LIBGUH_EXPORT AvahiServiceEntry class LIBNYMEA_EXPORT AvahiServiceEntry
{ {
public: public:
AvahiServiceEntry(); AvahiServiceEntry();

View File

@ -26,11 +26,11 @@
#include <QObject> #include <QObject>
#include <avahi-client/lookup.h> #include <avahi-client/lookup.h>
#include "libguh.h" #include "libnymea.h"
#include "hardwareresource.h" #include "hardwareresource.h"
#include "avahiserviceentry.h" #include "avahiserviceentry.h"
class LIBGUH_EXPORT QtAvahiServiceBrowser : public HardwareResource class LIBNYMEA_EXPORT QtAvahiServiceBrowser : public HardwareResource
{ {
Q_OBJECT Q_OBJECT

View File

@ -23,7 +23,7 @@
#ifndef NETWORKACCESSMANAGER_H #ifndef NETWORKACCESSMANAGER_H
#define NETWORKACCESSMANAGER_H #define NETWORKACCESSMANAGER_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include "hardwareresource.h" #include "hardwareresource.h"
@ -34,7 +34,7 @@
#include <QDebug> #include <QDebug>
#include <QUrl> #include <QUrl>
class LIBGUH_EXPORT NetworkAccessManager : public HardwareResource class LIBNYMEA_EXPORT NetworkAccessManager : public HardwareResource
{ {
Q_OBJECT Q_OBJECT

View File

@ -31,11 +31,11 @@
#include <QNetworkAccessManager> #include <QNetworkAccessManager>
#include <QNetworkReply> #include <QNetworkReply>
#include "libguh.h" #include "libnymea.h"
// OAuth 2.0 - Resource Owner Password Credentials Grant: http://tools.ietf.org/html/rfc6749#section-4.3 // OAuth 2.0 - Resource Owner Password Credentials Grant: http://tools.ietf.org/html/rfc6749#section-4.3
class LIBGUH_EXPORT OAuth2 : public QObject class LIBNYMEA_EXPORT OAuth2 : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:

View File

@ -25,10 +25,10 @@
#include <QObject> #include <QObject>
#include "libguh.h" #include "libnymea.h"
#include "upnpdevicedescriptor.h" #include "upnpdevicedescriptor.h"
class LIBGUH_EXPORT UpnpDevice : public QObject class LIBNYMEA_EXPORT UpnpDevice : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:

View File

@ -27,11 +27,11 @@
#include <QHostAddress> #include <QHostAddress>
#include <QUrl> #include <QUrl>
#include "libguh.h" #include "libnymea.h"
// reference: http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf // reference: http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf
class LIBGUH_EXPORT UpnpDeviceDescriptor class LIBNYMEA_EXPORT UpnpDeviceDescriptor
{ {
public: public:
explicit UpnpDeviceDescriptor(); explicit UpnpDeviceDescriptor();

View File

@ -31,7 +31,7 @@
#include <QNetworkRequest> #include <QNetworkRequest>
#include <QUrl> #include <QUrl>
#include "libguh.h" #include "libnymea.h"
#include "devicemanager.h" #include "devicemanager.h"
#include "hardwareresource.h" #include "hardwareresource.h"
#include "upnpdiscoveryreply.h" #include "upnpdiscoveryreply.h"
@ -40,7 +40,7 @@
// Discovering UPnP devices reference: http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf // Discovering UPnP devices reference: http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf
// guh basic device reference: http://upnp.org/specs/basic/UPnP-basic-Basic-v1-Device.pdf // guh basic device reference: http://upnp.org/specs/basic/UPnP-basic-Basic-v1-Device.pdf
class LIBGUH_EXPORT UpnpDiscovery : public HardwareResource class LIBNYMEA_EXPORT UpnpDiscovery : public HardwareResource
{ {
Q_OBJECT Q_OBJECT

View File

@ -25,7 +25,7 @@
#define DEVICE_H #define DEVICE_H
#include "typeutils.h" #include "typeutils.h"
#include "libguh.h" #include "libnymea.h"
#include "types/deviceclass.h" #include "types/deviceclass.h"
#include "types/state.h" #include "types/state.h"
@ -35,7 +35,7 @@
#include <QUuid> #include <QUuid>
#include <QVariant> #include <QVariant>
class LIBGUH_EXPORT Device: public QObject class LIBNYMEA_EXPORT Device: public QObject
{ {
Q_OBJECT Q_OBJECT

View File

@ -24,13 +24,13 @@
#ifndef DEVICEDESCRIPTION_H #ifndef DEVICEDESCRIPTION_H
#define DEVICEDESCRIPTION_H #define DEVICEDESCRIPTION_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include "types/param.h" #include "types/param.h"
#include <QVariantMap> #include <QVariantMap>
class LIBGUH_EXPORT DeviceDescriptor class LIBNYMEA_EXPORT DeviceDescriptor
{ {
public: public:
DeviceDescriptor(); DeviceDescriptor();

View File

@ -23,11 +23,11 @@
#ifndef DEVICEPAIRINGINFO_H #ifndef DEVICEPAIRINGINFO_H
#define DEVICEPAIRINGINFO_H #define DEVICEPAIRINGINFO_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include "types/param.h" #include "types/param.h"
class LIBGUH_EXPORT DevicePairingInfo class LIBNYMEA_EXPORT DevicePairingInfo
{ {
public: public:
DevicePairingInfo(); DevicePairingInfo();

View File

@ -26,7 +26,7 @@
#include "devicemanager.h" #include "devicemanager.h"
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include "types/deviceclass.h" #include "types/deviceclass.h"
@ -46,7 +46,7 @@
class Device; class Device;
class DeviceManager; class DeviceManager;
class LIBGUH_EXPORT DevicePlugin: public QObject class LIBNYMEA_EXPORT DevicePlugin: public QObject
{ {
Q_OBJECT Q_OBJECT

View File

@ -24,13 +24,13 @@
#ifndef ACTION_H #ifndef ACTION_H
#define ACTION_H #define ACTION_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include "param.h" #include "param.h"
#include <QVariantList> #include <QVariantList>
class LIBGUH_EXPORT Action class LIBNYMEA_EXPORT Action
{ {
public: public:
explicit Action(const ActionTypeId &actionTypeId = ActionTypeId(), const DeviceId &deviceId = DeviceId()); explicit Action(const ActionTypeId &actionTypeId = ActionTypeId(), const DeviceId &deviceId = DeviceId());

View File

@ -24,13 +24,13 @@
#ifndef ACTIONTYPE_H #ifndef ACTIONTYPE_H
#define ACTIONTYPE_H #define ACTIONTYPE_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include "paramtype.h" #include "paramtype.h"
#include <QVariantList> #include <QVariantList>
class LIBGUH_EXPORT ActionType class LIBNYMEA_EXPORT ActionType
{ {
public: public:
ActionType(const ActionTypeId &id); ActionType(const ActionTypeId &id);

View File

@ -24,7 +24,7 @@
#ifndef DEVICECLASS_H #ifndef DEVICECLASS_H
#define DEVICECLASS_H #define DEVICECLASS_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include "types/vendor.h" #include "types/vendor.h"
#include "types/eventtype.h" #include "types/eventtype.h"
@ -35,7 +35,7 @@
#include <QList> #include <QList>
#include <QUuid> #include <QUuid>
class LIBGUH_EXPORT DeviceClass class LIBNYMEA_EXPORT DeviceClass
{ {
Q_GADGET Q_GADGET
Q_ENUMS(CreateMethod) Q_ENUMS(CreateMethod)

View File

@ -24,7 +24,7 @@
#ifndef EVENT_H #ifndef EVENT_H
#define EVENT_H #define EVENT_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include "types/param.h" #include "types/param.h"
@ -32,7 +32,7 @@
#include <QVariantList> #include <QVariantList>
#include <QDebug> #include <QDebug>
class LIBGUH_EXPORT Event class LIBNYMEA_EXPORT Event
{ {
public: public:
Event(); Event();

View File

@ -24,7 +24,7 @@
#ifndef EVENTDESCRIPTOR_H #ifndef EVENTDESCRIPTOR_H
#define EVENTDESCRIPTOR_H #define EVENTDESCRIPTOR_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include "paramdescriptor.h" #include "paramdescriptor.h"
#include "event.h" #include "event.h"
@ -33,7 +33,7 @@
#include <QVariantList> #include <QVariantList>
#include <QDebug> #include <QDebug>
class LIBGUH_EXPORT EventDescriptor class LIBNYMEA_EXPORT EventDescriptor
{ {
public: public:
enum Type { enum Type {

View File

@ -24,13 +24,13 @@
#ifndef TRIGGERTYPE_H #ifndef TRIGGERTYPE_H
#define TRIGGERTYPE_H #define TRIGGERTYPE_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include "paramtype.h" #include "paramtype.h"
#include <QVariantMap> #include <QVariantMap>
class LIBGUH_EXPORT EventType class LIBNYMEA_EXPORT EventType
{ {
public: public:
EventType(const EventTypeId &id); EventType(const EventTypeId &id);

View File

@ -24,13 +24,13 @@
#ifndef PARAM_H #ifndef PARAM_H
#define PARAM_H #define PARAM_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include <QString> #include <QString>
#include <QVariant> #include <QVariant>
class LIBGUH_EXPORT Param class LIBNYMEA_EXPORT Param
{ {
public: public:
Param(const ParamTypeId &paramTypeId = ParamTypeId(), const QVariant &value = QVariant()); Param(const ParamTypeId &paramTypeId = ParamTypeId(), const QVariant &value = QVariant());
@ -50,7 +50,7 @@ private:
Q_DECLARE_METATYPE(Param) Q_DECLARE_METATYPE(Param)
QDebug operator<<(QDebug dbg, const Param &param); QDebug operator<<(QDebug dbg, const Param &param);
class LIBGUH_EXPORT ParamList: public QList<Param> class LIBNYMEA_EXPORT ParamList: public QList<Param>
{ {
public: public:
bool hasParam(const ParamTypeId &paramTypeId) const; bool hasParam(const ParamTypeId &paramTypeId) const;

View File

@ -24,12 +24,12 @@
#ifndef PARAMDESCRIPTOR_H #ifndef PARAMDESCRIPTOR_H
#define PARAMDESCRIPTOR_H #define PARAMDESCRIPTOR_H
#include "libguh.h" #include "libnymea.h"
#include "param.h" #include "param.h"
#include "typeutils.h" #include "typeutils.h"
class LIBGUH_EXPORT ParamDescriptor : public Param class LIBNYMEA_EXPORT ParamDescriptor : public Param
{ {
public: public:
ParamDescriptor(const ParamTypeId &paramTypeId, const QVariant &value = QVariant()); ParamDescriptor(const ParamTypeId &paramTypeId, const QVariant &value = QVariant());

View File

@ -27,10 +27,10 @@
#include <QVariant> #include <QVariant>
#include <QDebug> #include <QDebug>
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
class LIBGUH_EXPORT ParamType class LIBNYMEA_EXPORT ParamType
{ {
public: public:
ParamType() = default; ParamType() = default;

View File

@ -24,11 +24,11 @@
#ifndef RULEACTION_H #ifndef RULEACTION_H
#define RULEACTION_H #define RULEACTION_H
#include "libguh.h" #include "libnymea.h"
#include "action.h" #include "action.h"
#include "ruleactionparam.h" #include "ruleactionparam.h"
class LIBGUH_EXPORT RuleAction class LIBNYMEA_EXPORT RuleAction
{ {
public: public:
enum Type { enum Type {

View File

@ -29,10 +29,10 @@
#include <QVariant> #include <QVariant>
#include "param.h" #include "param.h"
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
class LIBGUH_EXPORT RuleActionParam class LIBNYMEA_EXPORT RuleActionParam
{ {
public: public:
RuleActionParam(const Param &param = Param()); RuleActionParam(const Param &param = Param());
@ -64,7 +64,7 @@ private:
Q_DECLARE_METATYPE(RuleActionParam) Q_DECLARE_METATYPE(RuleActionParam)
QDebug operator<<(QDebug dbg, const RuleActionParam &ruleActionParam); QDebug operator<<(QDebug dbg, const RuleActionParam &ruleActionParam);
class LIBGUH_EXPORT RuleActionParamList: public QList<RuleActionParam> class LIBNYMEA_EXPORT RuleActionParamList: public QList<RuleActionParam>
{ {
public: public:
bool hasParam(const ParamTypeId &ruleActionParamTypeId) const; bool hasParam(const ParamTypeId &ruleActionParamTypeId) const;

View File

@ -24,13 +24,13 @@
#ifndef STATE_H #ifndef STATE_H
#define STATE_H #define STATE_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include <QVariant> #include <QVariant>
#include <QDebug> #include <QDebug>
class LIBGUH_EXPORT State class LIBNYMEA_EXPORT State
{ {
public: public:
State(const StateTypeId &stateTypeId, const DeviceId &deviceId); State(const StateTypeId &stateTypeId, const DeviceId &deviceId);

View File

@ -24,7 +24,7 @@
#ifndef STATEDESCRIPTOR_H #ifndef STATEDESCRIPTOR_H
#define STATEDESCRIPTOR_H #define STATEDESCRIPTOR_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include "paramdescriptor.h" #include "paramdescriptor.h"
#include "state.h" #include "state.h"
@ -34,7 +34,7 @@
#include <QVariantList> #include <QVariantList>
#include <QDebug> #include <QDebug>
class LIBGUH_EXPORT StateDescriptor class LIBNYMEA_EXPORT StateDescriptor
{ {
public: public:
StateDescriptor(); StateDescriptor();

View File

@ -25,12 +25,12 @@
#ifndef STATETYPE_H #ifndef STATETYPE_H
#define STATETYPE_H #define STATETYPE_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include <QVariant> #include <QVariant>
class LIBGUH_EXPORT StateType class LIBNYMEA_EXPORT StateType
{ {
public: public:
StateType(const StateTypeId &id); StateType(const StateTypeId &id);

View File

@ -24,12 +24,12 @@
#ifndef VENDOR_H #ifndef VENDOR_H
#define VENDOR_H #define VENDOR_H
#include "libguh.h" #include "libnymea.h"
#include "typeutils.h" #include "typeutils.h"
#include <QString> #include <QString>
class LIBGUH_EXPORT Vendor class LIBNYMEA_EXPORT Vendor
{ {
public: public:
Vendor(const VendorId &id, const QString &name = QString()); Vendor(const VendorId &id, const QString &name = QString());

View File

@ -27,7 +27,7 @@
#include <QMetaType> #include <QMetaType>
#include <QUuid> #include <QUuid>
#include "libguh.h" #include "libnymea.h"
#define DECLARE_TYPE_ID(type) class type##Id: public QUuid \ #define DECLARE_TYPE_ID(type) class type##Id: public QUuid \
{ \ { \
@ -60,7 +60,7 @@ DECLARE_TYPE_ID(Rule)
DECLARE_TYPE_ID(PairingTransaction) DECLARE_TYPE_ID(PairingTransaction)
class LIBGUH_EXPORT Types class LIBNYMEA_EXPORT Types
{ {
Q_GADGET Q_GADGET
Q_ENUMS(InputType) Q_ENUMS(InputType)