aboutsummaryrefslogtreecommitdiff
path: root/lib/user.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-12-29 15:59:58 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-12-29 18:07:21 +0100
commit7350fe82953cf6274b8845a890eafb21a09b9931 (patch)
treee802f22bd64b9cdd83b48e257629787a57352be3 /lib/user.h
parent02fdd08b98d878168eb81376a44586176dfd9576 (diff)
downloadlibquotient-7350fe82953cf6274b8845a890eafb21a09b9931.tar.gz
libquotient-7350fe82953cf6274b8845a890eafb21a09b9931.zip
Add QUOTIENT_API throughout non-generated code
This include all (hopefully) classes/structures and functions that have non-inline definitions, as well as namespaces with Q_NAMESPACE since those have non-inline (as of Qt 5.15) QMetaObject - for that a new macro, QUO_NAMESPACE, has been devised to accommodate the lack of Q_NAMESPACE_EXPORT in Qt before 5.14.
Diffstat (limited to 'lib/user.h')
-rw-r--r--lib/user.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/user.h b/lib/user.h
index 78b72bf2..435304ce 100644
--- a/lib/user.h
+++ b/lib/user.h
@@ -5,6 +5,7 @@
#pragma once
#include "avatar.h"
+#include "quotient_export.h"
#include <QtCore/QObject>
@@ -13,7 +14,7 @@ class Connection;
class Room;
class RoomMemberEvent;
-class User : public QObject {
+class QUOTIENT_API User : public QObject {
Q_OBJECT
Q_PROPERTY(QString id READ id CONSTANT)
Q_PROPERTY(bool isGuest READ isGuest CONSTANT)