Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F112910
kazv-util.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
813 B
Referenced Files
None
Subscribers
None
kazv-util.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
<QString>
#include
<QQmlEngine>
class
KazvUtil
:
public
QObject
{
Q_OBJECT
QML_ELEMENT
QML_SINGLETON
Q_PROPERTY
(
int
kfQtMajorVersion
CONSTANT
MEMBER
m_kfQtMajorVersion
)
public
:
KazvUtil
(
QObject
*
parent
=
0
);
~
KazvUtil
()
override
;
public
Q_SLOTS
:
QString
escapeHtml
(
const
QString
&
orig
)
const
;
QString
mimeTypeForUrl
(
const
QUrl
&
url
)
const
;
/// @return The user id for a given matrix link, or the empty string
/// if @c url is not a matrix link pointing to a user
QString
matrixLinkUserId
(
const
QString
&
url
)
const
;
private
:
int
m_kfQtMajorVersion
;
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 24, 2:48 AM (18 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39288
Default Alt Text
kazv-util.hpp (813 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment