Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F112197
matrix-event.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
matrix-event.hpp
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020-2021 Tusooa Zhu <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include
<libkazv-config.hpp>
#include
<immer/config.hpp>
// https://github.com/arximboldi/immer/issues/168
#include
<QObject>
#include
<QQmlEngine>
#include
<lager/extra/qt.hpp>
#include
<client/room/room.hpp>
#include
"qt-json.hpp"
class
MatrixEvent
:
public
QObject
{
Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE
(
""
)
lager
::
reader
<
std
::
optional
<
Kazv
::
LocalEchoDesc
>>
m_localEcho
;
lager
::
reader
<
Kazv
::
Event
>
m_event
;
public
:
explicit
MatrixEvent
(
lager
::
reader
<
std
::
variant
<
Kazv
::
Event
,
Kazv
::
LocalEchoDesc
>>
event
,
QObject
*
parent
=
0
);
explicit
MatrixEvent
(
lager
::
reader
<
Kazv
::
Event
>
event
,
QObject
*
parent
=
0
);
~
MatrixEvent
()
override
;
LAGER_QT_READER
(
QString
,
eventId
);
LAGER_QT_READER
(
QString
,
sender
);
LAGER_QT_READER
(
QString
,
type
);
LAGER_QT_READER
(
QString
,
stateKey
);
LAGER_QT_READER
(
QJsonObject
,
content
);
LAGER_QT_READER
(
bool
,
encrypted
);
LAGER_QT_READER
(
bool
,
decrypted
);
LAGER_QT_READER
(
bool
,
isState
);
LAGER_QT_READER
(
QJsonObject
,
unsignedData
);
LAGER_QT_READER
(
bool
,
isLocalEcho
);
LAGER_QT_READER
(
bool
,
isSending
);
LAGER_QT_READER
(
bool
,
isFailed
);
LAGER_QT_READER
(
QString
,
txnId
);
LAGER_QT_READER
(
bool
,
redacted
);
LAGER_QT_READER
(
QJsonObject
,
originalSource
);
LAGER_QT_READER
(
QJsonObject
,
decryptedSource
);
LAGER_QT_READER
(
QString
,
replyingToEventId
);
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 23, 4:02 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38831
Default Alt Text
matrix-event.hpp (1 KB)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment