X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbuffersyncer.h;h=6d9160cd066174c9f106a0cfe24e8e4a7d8b630f;hp=9ca0c0161256d1d0bda6618fe532bc19e2f41a11;hb=3a3e844f9fcfd12235a0086af75ecd503b621ef4;hpb=88ce73ff525535c00cc979fff357fbe4cb8cdc2b diff --git a/src/common/buffersyncer.h b/src/common/buffersyncer.h index 9ca0c016..6d9160cd 100644 --- a/src/common/buffersyncer.h +++ b/src/common/buffersyncer.h @@ -18,23 +18,22 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef BUFFERSYNCER_H_ -#define BUFFERSYNCER_H_ +#pragma once + +#include "common-export.h" #include "syncableobject.h" #include "types.h" #include "message.h" -class BufferSyncer : public SyncableObject +class COMMON_EXPORT BufferSyncer : public SyncableObject { + Q_OBJECT SYNCABLE_OBJECT - Q_OBJECT public: explicit BufferSyncer(QObject *parent); - explicit BufferSyncer(const QHash &lastSeenMsg, const QHash &markerLines, const QHash &activities, const QHash &highlightCounts, QObject *parent); - - inline virtual const QMetaObject *syncMetaObject() const { return &staticMetaObject; } + explicit BufferSyncer(QHash lastSeenMsg, QHash markerLines, QHash activities, QHash highlightCounts, QObject *parent); MsgId lastSeenMsg(BufferId buffer) const; MsgId markerLine(BufferId buffer) const; @@ -121,6 +120,3 @@ private: QHash _bufferActivities; QHash _highlightCounts; }; - - -#endif