aboutsummaryrefslogtreecommitdiff
path: root/lib/events/receiptevent.h
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2021-01-18 04:00:14 -0500
committerAndres Salomon <dilinger@queued.net>2021-01-18 04:00:14 -0500
commit09eb39236666e81d5da014acea011dcd74d0999b (patch)
tree52876d96be71be1a39d5d935c1295a51995e8949 /lib/events/receiptevent.h
parentf1788ee27f33e9339334e0d79bde9a27d9ce2e44 (diff)
parenta4e78956f105875625b572d8b98459ffa86fafe5 (diff)
downloadlibquotient-09eb39236666e81d5da014acea011dcd74d0999b.tar.gz
libquotient-09eb39236666e81d5da014acea011dcd74d0999b.zip
Update upstream source from tag 'upstream/0.6.4'
Update to upstream version '0.6.4' with Debian dir aa8705fd74743e79c043bc9e3e425d5064404cfe
Diffstat (limited to 'lib/events/receiptevent.h')
-rw-r--r--lib/events/receiptevent.h53
1 files changed, 25 insertions, 28 deletions
diff --git a/lib/events/receiptevent.h b/lib/events/receiptevent.h
index c15a01c2..dd54a476 100644
--- a/lib/events/receiptevent.h
+++ b/lib/events/receiptevent.h
@@ -13,42 +13,39 @@
*
* 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
- {
- QString userId;
- QDateTime timestamp;
- };
- struct ReceiptsForEvent
- {
- QString evtId;
- QVector<Receipt> receipts;
- };
- using EventsWithReceipts = QVector<ReceiptsForEvent>;
+namespace Quotient {
+struct Receipt {
+ QString userId;
+ QDateTime timestamp;
+};
+struct ReceiptsForEvent {
+ QString evtId;
+ QVector<Receipt> receipts;
+};
+using EventsWithReceipts = QVector<ReceiptsForEvent>;
- class ReceiptEvent: public Event
- {
- public:
- DEFINE_EVENT_TYPEID("m.receipt", ReceiptEvent)
- explicit ReceiptEvent(const QJsonObject& obj);
+class ReceiptEvent : public Event {
+public:
+ 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;
- };
- REGISTER_EVENT_TYPE(ReceiptEvent)
- DEFINE_EVENTTYPE_ALIAS(Receipt, ReceiptEvent)
-} // namespace QMatrixClient
+private:
+ EventsWithReceipts _eventsWithReceipts;
+};
+REGISTER_EVENT_TYPE(ReceiptEvent)
+} // namespace Quotient