Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1037683
kazv-io-manager.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
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
"kazv-io-job.hpp"
#include
"matrix-room.hpp"
#include
<QObject>
#include
<QtQml>
#include
<QUrl>
#include
<QString>
#include
<KIO/TransferJob>
#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
;
Q_INVOKABLE
KazvIOBaseJob
*
startNewDownloadJob
(
const
QUrl
&
serverUrl
,
const
QUrl
&
localFileName
,
const
QString
&
jobId
);
Q_INVOKABLE
KazvIOBaseJob
*
startNewUploadJob
(
const
QUrl
&
serverUrl
,
const
QUrl
&
localFileName
,
const
QString
&
token
,
MatrixRoom
*
room
);
Q_INVOKABLE
KazvIOBaseJob
*
getDownloadJob
(
const
QString
&
jobId
);
Q_INVOKABLE
void
deleteDownloadJob
(
const
QString
&
jobId
);
Q_INVOKABLE
QList
<
QObject
*>
getUploadJobs
(
const
QString
&
roomId
);
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Wed, May 14, 7:38 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
146376
Default Alt Text
kazv-io-manager.hpp (1 KB)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment