diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-01-02 05:28:24 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-01-02 05:28:24 +0100 |
commit | d516280a2b38ccb060e4f7502b873e19b1559ed1 (patch) | |
tree | b995becf2cb8d002ac3fa4d68c69a69a8f26fdcc /lib/events/event.cpp | |
parent | 545f9084bacead9f02ba6df609822be4672b7952 (diff) | |
parent | 2dee2bf4f0b2bd6615866644b2df9460da6babbb (diff) | |
download | libquotient-d516280a2b38ccb060e4f7502b873e19b1559ed1.tar.gz libquotient-d516280a2b38ccb060e4f7502b873e19b1559ed1.zip |
Manage symbols visibility for dynamic linking
Diffstat (limited to 'lib/events/event.cpp')
-rw-r--r-- | lib/events/event.cpp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/lib/events/event.cpp b/lib/events/event.cpp index 96be717c..4c304a3c 100644 --- a/lib/events/event.cpp +++ b/lib/events/event.cpp @@ -9,22 +9,14 @@ using namespace Quotient; -event_type_t EventTypeRegistry::initializeTypeId(event_mtype_t matrixTypeId) -{ - const auto id = get().eventTypes.size(); - get().eventTypes.push_back(matrixTypeId); - if (strncmp(matrixTypeId, "", 1) == 0) - qDebug(EVENTS) << "Initialized unknown event type with id" << id; - else - qDebug(EVENTS) << "Initialized event type" << matrixTypeId << "with id" - << id; - return id; -} +QString EventTypeRegistry::getMatrixType(event_type_t typeId) { return typeId; } -QString EventTypeRegistry::getMatrixType(event_type_t typeId) +void _impl::EventFactoryBase::logAddingMethod(event_type_t TypeId, + size_t newSize) { - return typeId < get().eventTypes.size() ? get().eventTypes[typeId] - : QString(); + qDebug(EVENTS) << "Adding factory method for" << TypeId << "events;" + << newSize << "methods will be in the" << name + << "chain"; } Event::Event(Type type, const QJsonObject& json) : _type(type), _json(json) |