Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1037537
matrix-room-list.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-list.hpp
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/>.
*/
#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, 7:26 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
91440
Default Alt Text
matrix-room-list.hpp (1 KB)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment