Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2577164
kazv-io-manager.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
979 B
Referenced Files
None
Subscribers
None
kazv-io-manager.hpp
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2022 nannanko <nannanko@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
(
const
QString
&
roomId
,
const
QUrl
&
serverUrl
,
const
QUrl
&
localFileUrl
);
// QPointer<KIO::TransferJob> startNewUploadJob(QFile &file, const QUrl &serverUrl, const QString &token);
QPointer
<
KIO
::
TransferJob
>
getJob
(
const
QString
&
roomId
,
const
QUrl
&
localFileUrl
,
const
QUrl
&
serverUrl
);
private
Q_SLOTS
:
void
writeFile
(
KJob
*
job
,
const
QByteArray
&
data
);
void
cleanJob
(
KJob
*
job
);
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Jun 24, 3:19 AM (48 m, 45 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
234650
Default Alt Text
kazv-io-manager.hpp (979 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment