Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F34109744
deviceinfowatcher_p.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
deviceinfowatcher_p.h
View Options
/*
This file is part of Kleopatra, the KDE keymanager
SPDX-FileCopyrightText: 2020 g10 Code GmbH
SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include
<gpgme++/interfaces/statusconsumer.h>
#include
<gpgme++/context.h>
#include
<gpgme.h>
#include
<QThread>
#include
<chrono>
#include
<memory>
namespace
Kleo
{
class
DeviceInfoWatcher
::
Worker
:
public
QObject
,
public
GpgME
::
StatusConsumer
{
Q_OBJECT
public
:
Worker
();
~
Worker
()
override
;
public
Q_SLOTS
:
void
start
();
Q_SIGNALS
:
void
statusChanged
(
const
QByteArray
&
details
);
void
startOfGpgAgentRequested
();
private
:
Q_INVOKABLE
void
poll
();
void
status
(
const
char
*
status
,
const
char
*
details
)
override
;
private
:
std
::
chrono
::
milliseconds
mRetryDelay
;
int
mFailedConnectionAttempts
=
0
;
std
::
unique_ptr
<
GpgME
::
Context
>
mContext
;
};
class
DeviceInfoWatcher
::
Private
{
friend
class
::
Kleo
::
DeviceInfoWatcher
;
DeviceInfoWatcher
*
const
q
;
public
:
explicit
Private
(
DeviceInfoWatcher
*
qq
);
~
Private
();
private
:
void
start
();
private
:
QThread
workerThread
;
};
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Fri, Dec 5, 4:51 AM (17 h, 32 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
50/fc/028d1061ad75d8d6fad8fbb462f5
Attached To
rKLEOPATRA Kleopatra
Event Timeline
Log In to Comment