Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2697938
kazv-io-manager.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
810 B
Referenced Files
None
Subscribers
None
kazv-io-manager.hpp
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2021 Tusooa Zhu <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include
<QObject>
#include
<QtQml>
#include
<QUrl>
#include
<KIO/Job>
#include
<QByteArray>
#include
<QPointer>
#include
<memory>
struct
KazvIOManagerPrivate
;
class
KazvIOManager
:
public
QObject
{
Q_OBJECT
QML_ELEMENT
std
::
unique_ptr
<
KazvIOManagerPrivate
>
m_d
;
public
:
explicit
KazvIOManager
(
QObject
*
parent
=
0
);
~
KazvIOManager
()
override
;
QPointer
<
KIO
::
TransferJob
>
startNewDownloadJob
(
QUrl
&
url
,
QUrl
&
localFileUrl
);
void
suspendJob
(
QUrl
&
url
);
void
resumeJob
(
QUrl
&
url
);
void
cancelJob
(
QUrl
&
url
);
private
Q_SLOTS
:
void
writeFile
(
KJob
*
job
,
const
QByteArray
&
data
);
void
cleanJob
(
KJob
*
job
);
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Fri, Jul 18, 7:38 AM (1 d, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
260375
Default Alt Text
kazv-io-manager.hpp (810 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment