aboutsummaryrefslogtreecommitdiff
path: root/lib/events/receiptevent.h
diff options
context:
space:
mode:
authorMarc Deop <marc@marcdeop.com>2019-03-02 12:26:57 +0100
committerMarc Deop <marc@marcdeop.com>2019-03-02 12:26:57 +0100
commitaacc4bcb4a487871daae6717f77605aaba444341 (patch)
tree4f50b6874821667ccb6b91c017e5d041e3846112 /lib/events/receiptevent.h
parentc971b924cd62822ed6fb1a0291c483ae73a3ecda (diff)
downloadlibquotient-aacc4bcb4a487871daae6717f77605aaba444341.tar.gz
libquotient-aacc4bcb4a487871daae6717f77605aaba444341.zip
style: apply .clang-format to all .cpp and .h files
Diffstat (limited to 'lib/events/receiptevent.h')
-rw-r--r--lib/events/receiptevent.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/lib/events/receiptevent.h b/lib/events/receiptevent.h
index c15a01c2..fca38bba 100644
--- a/lib/events/receiptevent.h
+++ b/lib/events/receiptevent.h
@@ -13,42 +13,41 @@
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
#include "event.h"
-#include <QtCore/QVector>
#include <QtCore/QDateTime>
+#include <QtCore/QVector>
-namespace QMatrixClient
-{
- struct Receipt
- {
+namespace QMatrixClient {
+ struct Receipt {
QString userId;
QDateTime timestamp;
};
- struct ReceiptsForEvent
- {
+ struct ReceiptsForEvent {
QString evtId;
QVector<Receipt> receipts;
};
using EventsWithReceipts = QVector<ReceiptsForEvent>;
- class ReceiptEvent: public Event
+ class ReceiptEvent : public Event
{
public:
- DEFINE_EVENT_TYPEID("m.receipt", ReceiptEvent)
- explicit ReceiptEvent(const QJsonObject& obj);
+ DEFINE_EVENT_TYPEID("m.receipt", ReceiptEvent)
+ explicit ReceiptEvent(const QJsonObject& obj);
- const EventsWithReceipts& eventsWithReceipts() const
- { return _eventsWithReceipts; }
+ const EventsWithReceipts& eventsWithReceipts() const
+ {
+ return _eventsWithReceipts;
+ }
private:
- EventsWithReceipts _eventsWithReceipts;
+ EventsWithReceipts _eventsWithReceipts;
};
REGISTER_EVENT_TYPE(ReceiptEvent)
DEFINE_EVENTTYPE_ALIAS(Receipt, ReceiptEvent)
-} // namespace QMatrixClient
+} // namespace QMatrixClient