Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F325849
qt-job-handler.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
951 B
Referenced Files
None
Subscribers
None
qt-job-handler.hpp
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2022 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include
<libkazv-config.hpp>
#include
<memory>
#include
<QObject>
#include
<jobinterface.hpp>
using
namespace
Kazv
;
class
QtJobHandler
:
public
QObject
,
public
JobInterface
{
Q_OBJECT
public
:
QtJobHandler
(
QObject
*
parent
=
0
);
~
QtJobHandler
()
override
;
void
async
(
std
::
function
<
void
()
>
func
)
override
;
void
setTimeout
(
std
::
function
<
void
()
>
func
,
int
ms
,
std
::
optional
<
std
::
string
>
timerId
=
std
::
nullopt
)
override
;
void
setInterval
(
std
::
function
<
void
()
>
func
,
int
ms
,
std
::
optional
<
std
::
string
>
timerId
=
std
::
nullopt
)
override
;
void
cancel
(
std
::
string
timerId
)
override
;
void
submit
(
BaseJob
job
,
std
::
function
<
void
(
Response
)
>
callback
)
override
;
void
stop
();
private
:
struct
Private
;
std
::
unique_ptr
<
Private
>
m_d
;
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Thu, Apr 24, 4:25 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
86866
Default Alt Text
qt-job-handler.hpp (951 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment