Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F112924
matrix-event-reader.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
860 B
Referenced Files
None
Subscribers
None
matrix-event-reader.cpp
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020-2024 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#include
<kazv-defs.hpp>
#include
<QDateTime>
#include
"matrix-event-reader.hpp"
using
namespace
Kazv
;
MatrixEventReader
::
MatrixEventReader
(
lager
::
reader
<
Kazv
::
Event
>
memberEvent
,
lager
::
reader
<
Kazv
::
Timestamp
>
timestamp
,
QObject
*
parent
)
:
MatrixRoomMember
(
memberEvent
,
parent
)
,
LAGER_QT
(
timestamp
)(
timestamp
.
map
([](
auto
ts
)
{
return
static_cast
<
qint64
>
(
ts
);
}))
,
LAGER_QT
(
formattedTime
)(
timestamp
.
map
([](
Timestamp
ts
)
{
auto
locale
=
QLocale
::
system
();
return
locale
.
toString
(
QDateTime
::
fromMSecsSinceEpoch
(
ts
),
QLocale
::
ShortFormat
);
}))
{
}
MatrixEventReader
::~
MatrixEventReader
()
=
default
;
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Nov 24, 2:49 AM (19 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39301
Default Alt Text
matrix-event-reader.cpp (860 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment