Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1039637
matrix-room-list.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
922 B
Referenced Files
None
Subscribers
None
matrix-room-list.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/client.hpp>
class
MatrixRoom
;
class
MatrixRoomList
:
public
QObject
{
Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE
(
""
)
Kazv
::
Client
m_client
;
lager
::
reader
<
immer
::
flex_vector
<
std
::
string
>>
m_roomIds
;
public
:
explicit
MatrixRoomList
(
Kazv
::
Client
client
,
QObject
*
parent
=
0
);
~
MatrixRoomList
()
override
;
LAGER_QT_READER
(
int
,
count
);
LAGER_QT_READER
(
QStringList
,
roomIds
);
Q_INVOKABLE
MatrixRoom
*
at
(
int
index
)
const
;
Q_INVOKABLE
QString
roomIdAt
(
int
index
)
const
;
Q_INVOKABLE
MatrixRoom
*
room
(
QString
roomId
)
const
;
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Wed, May 14, 11:00 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
90415
Default Alt Text
matrix-room-list.hpp (922 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment