Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2577468
matrix-device-list.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
828 B
Referenced Files
None
Subscribers
None
matrix-device-list.hpp
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2023 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include
<kazv-defs.hpp>
#include
<QObject>
#include
<QQmlEngine>
#include
<QUrl>
#include
<lager/extra/qt.hpp>
#include
<client.hpp>
Q_MOC_INCLUDE
(
"matrix-device.hpp"
)
class
MatrixDevice
;
class
MatrixDeviceList
:
public
QObject
{
Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE
(
""
)
lager
::
reader
<
immer
::
flex_vector
<
Kazv
::
DeviceKeyInfo
>>
m_devices
;
public
:
explicit
MatrixDeviceList
(
lager
::
reader
<
immer
::
flex_vector
<
Kazv
::
DeviceKeyInfo
>>
devices
,
QObject
*
parent
=
0
);
~
MatrixDeviceList
()
override
;
LAGER_QT_READER
(
int
,
count
);
Q_INVOKABLE
MatrixDevice
*
at
(
int
index
)
const
;
Q_INVOKABLE
MatrixDevice
*
deviceById
(
QString
deviceId
)
const
;
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Jun 24, 7:55 AM (1 d, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
234766
Default Alt Text
matrix-device-list.hpp (828 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment