Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F34109762
taskcollection.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
taskcollection.h
View Options
/* -*- mode: c++; c-basic-offset:4 -*-
crypto/taskcollection.h
This file is part of Kleopatra, the KDE keymanager
SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include
<QObject>
#include
<crypto/task.h>
#include
<memory>
#include
<vector>
namespace
Kleo
{
namespace
Crypto
{
class
TaskCollection
:
public
QObject
{
Q_OBJECT
public
:
explicit
TaskCollection
(
QObject
*
parent
=
nullptr
);
~
TaskCollection
()
override
;
std
::
vector
<
std
::
shared_ptr
<
Task
>>
tasks
()
const
;
std
::
shared_ptr
<
Task
>
taskById
(
int
id
)
const
;
void
setTasks
(
const
std
::
vector
<
std
::
shared_ptr
<
Task
>>
&
tasks
);
bool
isEmpty
()
const
;
size_t
size
()
const
;
int
numberOfCompletedTasks
()
const
;
bool
allTasksCompleted
()
const
;
bool
errorOccurred
()
const
;
bool
allTasksHaveErrors
()
const
;
Q_SIGNALS
:
void
progress
(
int
processed
,
int
total
);
void
result
(
const
std
::
shared_ptr
<
const
Kleo
::
Crypto
::
Task
::
Result
>
&
result
);
void
started
(
const
std
::
shared_ptr
<
Kleo
::
Crypto
::
Task
>
&
task
);
void
done
();
private
:
class
Private
;
const
std
::
unique_ptr
<
Private
>
d
;
Q_PRIVATE_SLOT
(
d
,
void
taskResult
(
std
::
shared_ptr
<
const
Kleo
::
Crypto
::
Task
::
Result
>
))
Q_PRIVATE_SLOT
(
d
,
void
taskStarted
())
};
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Fri, Dec 5, 4:54 AM (12 h, 43 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ea/5c/4b38dcd138925fd574a6cd8ba97f
Attached To
rKLEOPATRA Kleopatra
Event Timeline
Log In to Comment