Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qpcsc.cpp
Go to the documentation of this file.
1
// Copyright (C) 2022 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#
include
"qpcsc_p.h"
5
6
QT_BEGIN_NAMESPACE
7
8
using
namespace
Qt::StringLiterals;
9
10
namespace
QPcsc
{
11
12
QString
errorMessage
(LONG error)
13
{
14
#
ifdef
Q_OS_WIN
15
return
(u"0x%1"_s).arg(error, 8, 16, QLatin1Char(
'0'
));
16
#
else
17
return
QString::fromUtf8(pcsc_stringify_error(error));
18
#
endif
19
}
20
21
}
// namespace QPcsc
22
23
qsizetype
QPcscSlotName
::nameSize(QPcscSlotName::CPtr p)
24
{
25
#
ifdef
Q_OS_WIN
26
return
wcslen(p);
27
#
else
28
return
strlen(p);
29
#
endif
30
}
31
32
QT_END_NAMESPACE
QPcscSlotName
Definition
qpcsc_p.h:52
QPcsc
Definition
qpcsc.cpp:10
QPcsc::errorMessage
QString errorMessage(LONG error)
Definition
qpcsc.cpp:12
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtconnectivity
src
nfc
pcsc
qpcsc.cpp
Generated on
for Qt by
1.14.0