Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1039612
matrix-room-member.cpp
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-room-member.cpp
View Options
/*
* Copyright (C) 2020 Tusooa Zhu <tusooa@vista.aero>
*
* This file is part of kazv.
*
* kazv is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* kazv is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with kazv. If not, see <https://www.gnu.org/licenses/>.
*/
#include
<libkazv-config.hpp>
#include
<cursorutil.hpp>
#include
"matrix-room-member.hpp"
#include
"helper.hpp"
using
namespace
Kazv
;
using
namespace
std
::
literals
::
string_literals
;
MatrixRoomMember
::
MatrixRoomMember
(
lager
::
reader
<
Kazv
::
Event
>
memberEvent
,
QObject
*
parent
)
:
QObject
(
parent
)
,
m_memberEvent
(
memberEvent
)
,
LAGER_QT
(
membership
)(
m_memberEvent
.
xform
(
eventContent
|
jsonAtOr
(
"membership"
s
,
""
s
)
|
strToQt
))
,
LAGER_QT
(
userId
)(
m_memberEvent
.
xform
(
zug
::
map
([](
Event
e
)
{
return
e
.
stateKey
();
})
|
strToQt
))
,
LAGER_QT
(
name
)(
m_memberEvent
.
xform
(
eventContent
|
jsonAtOr
(
"displayname"
s
,
""
s
)
|
strToQt
))
,
LAGER_QT
(
avatarMxcUri
)(
m_memberEvent
.
xform
(
eventContent
|
jsonAtOr
(
"avatar_url"
s
,
""
s
)
|
strToQt
))
{
}
MatrixRoomMember
::~
MatrixRoomMember
()
=
default
;
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Wed, May 14, 10:58 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
92045
Default Alt Text
matrix-room-member.cpp (1 KB)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment