Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F34157995
utils.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
900 B
Subscribers
None
utils.cpp
View Options
/* smartcard/utils.cpp
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
*/
#include
"utils.h"
#include
"netkeycard.h"
#include
"openpgpcard.h"
#include
"pivcard.h"
#include
<KLocalizedString>
#include
<QString>
using
namespace
Kleo
::
SmartCard
;
QString
Kleo
::
SmartCard
::
displayAppName
(
const
std
::
string
&
appName
)
{
if
(
appName
==
NetKeyCard
::
AppName
)
{
return
i18nc
(
"proper name of a type of smartcard"
,
"NetKey"
);
}
else
if
(
appName
==
OpenPGPCard
::
AppName
)
{
return
i18nc
(
"proper name of a type of smartcard"
,
"OpenPGP"
);
}
else
if
(
appName
==
PIVCard
::
AppName
)
{
return
i18nc
(
"proper name of a type of smartcard"
,
"PIV"
);
}
else
{
return
QString
::
fromStdString
(
appName
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Thu, Dec 11, 7:54 AM (3 h, 49 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
70/0b/bc5bf37ecddc0faca6678361b270
Attached To
rKLEOPATRA Kleopatra
Event Timeline
Log In to Comment