Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F111915
matrix-room.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-room.hpp
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020 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>
class
MatrixRoomTimeline
;
class
MatrixRoomMember
;
class
MatrixRoom
:
public
QObject
{
Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE
(
""
)
Kazv
::
Room
m_room
;
lager
::
reader
<
immer
::
flex_vector
<
std
::
string
>>
m_memberNames
;
public
:
explicit
MatrixRoom
(
Kazv
::
Room
room
,
QObject
*
parent
=
0
);
~
MatrixRoom
()
override
;
LAGER_QT_READER
(
QString
,
roomId
);
LAGER_QT_READER
(
QString
,
name
);
LAGER_QT_READER
(
QStringList
,
heroNames
);
LAGER_QT_READER
(
QString
,
avatarMxcUri
);
LAGER_QT_CURSOR
(
QString
,
localDraft
);
LAGER_QT_READER
(
QStringList
,
memberNames
);
Q_INVOKABLE
MatrixRoomMember
*
memberAt
(
int
index
)
const
;
Q_INVOKABLE
MatrixRoomMember
*
member
(
QString
userId
)
const
;
Q_INVOKABLE
MatrixRoomTimeline
*
timeline
()
const
;
Q_INVOKABLE
void
sendTextMessage
(
QString
text
)
const
;
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Fri, Nov 22, 2:05 AM (5 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38652
Default Alt Text
matrix-room.hpp (1 KB)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment