Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F37954681
gnupgsystemconfigurationpage.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
gnupgsystemconfigurationpage.cpp
View Options
/* -*- mode: c++; c-basic-offset:4 -*-
conf/gnupgsystemconfigurationpage.cpp
This file is part of Kleopatra, the KDE keymanager
SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include
"gnupgsystemconfigurationpage.h"
#include
<config-kleopatra.h>
#include
<Libkleo/CryptoConfigModule>
#include
<QGpgME/CryptoConfig>
#include
<QGpgME/Protocol>
#include
<QVBoxLayout>
using
namespace
Kleo
::
Config
;
GnuPGSystemConfigurationPage
::
GnuPGSystemConfigurationPage
(
QWidget
*
parent
)
:
KleoConfigModule
(
parent
)
{
auto
lay
=
new
QVBoxLayout
(
this
);
lay
->
setContentsMargins
(
0
,
0
,
0
,
0
);
QGpgME
::
CryptoConfig
*
const
config
=
QGpgME
::
cryptoConfig
();
mWidget
=
new
CryptoConfigModule
(
config
,
this
);
lay
->
addWidget
(
mWidget
);
connect
(
mWidget
,
&
CryptoConfigModule
::
changed
,
this
,
&
Kleo
::
Config
::
GnuPGSystemConfigurationPage
::
changed
);
}
GnuPGSystemConfigurationPage
::~
GnuPGSystemConfigurationPage
()
{
// ### correct here?
if
(
QGpgME
::
CryptoConfig
*
const
config
=
QGpgME
::
cryptoConfig
())
{
config
->
clear
();
}
}
void
GnuPGSystemConfigurationPage
::
load
()
{
mWidget
->
reset
();
}
void
GnuPGSystemConfigurationPage
::
save
()
{
mWidget
->
save
();
}
void
GnuPGSystemConfigurationPage
::
defaults
()
{
mWidget
->
defaults
();
}
#include
"moc_gnupgsystemconfigurationpage.cpp"
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Thu, Mar 19, 6:01 PM (5 h, 14 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
bd/f9/a1142193c24e5dc38c2f82259633
Attached To
rKLEOPATRA Kleopatra
Event Timeline
Log In to Comment