aboutsummaryrefslogtreecommitdiff
path: root/lib/eventitem.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-02 05:28:24 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-02 05:28:24 +0100
commitd516280a2b38ccb060e4f7502b873e19b1559ed1 (patch)
treeb995becf2cb8d002ac3fa4d68c69a69a8f26fdcc /lib/eventitem.h
parent545f9084bacead9f02ba6df609822be4672b7952 (diff)
parent2dee2bf4f0b2bd6615866644b2df9460da6babbb (diff)
downloadlibquotient-d516280a2b38ccb060e4f7502b873e19b1559ed1.tar.gz
libquotient-d516280a2b38ccb060e4f7502b873e19b1559ed1.zip
Manage symbols visibility for dynamic linking
Diffstat (limited to 'lib/eventitem.h')
-rw-r--r--lib/eventitem.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/eventitem.h b/lib/eventitem.h
index b411a90c..f04ef323 100644
--- a/lib/eventitem.h
+++ b/lib/eventitem.h
@@ -4,6 +4,7 @@
#pragma once
#include "events/stateevent.h"
+#include "quotient_common.h"
#include <any>
#include <utility>
@@ -11,7 +12,7 @@
namespace Quotient {
namespace EventStatus {
- Q_NAMESPACE
+ QUO_NAMESPACE
/** Special marks an event can assume
*
@@ -33,7 +34,7 @@ namespace EventStatus {
Q_ENUM_NS(Code)
} // namespace EventStatus
-class EventItemBase {
+class QUOTIENT_API EventItemBase {
public:
explicit EventItemBase(RoomEventPtr&& e) : evt(std::move(e))
{
@@ -74,7 +75,7 @@ private:
std::any data;
};
-class TimelineItem : public EventItemBase {
+class QUOTIENT_API TimelineItem : public EventItemBase {
public:
// For compatibility with Qt containers, even though we use
// a std:: container now for the room timeline
@@ -103,7 +104,7 @@ inline const CallEventBase* EventItemBase::viewAs<CallEventBase>() const
return evt->isCallEvent() ? weakPtrCast<const CallEventBase>(evt) : nullptr;
}
-class PendingEventItem : public EventItemBase {
+class QUOTIENT_API PendingEventItem : public EventItemBase {
public:
using EventItemBase::EventItemBase;