Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
7
8using namespace Qt::StringLiterals;
9
10namespace QPcsc {
11
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
24{
25#ifdef Q_OS_WIN
26 return wcslen(p);
27#else
28 return strlen(p);
29#endif
30}
31
static qsizetype nameSize(CPtr p)
Definition qpcsc.cpp:23
LPCSTR CPtr
Definition qpcsc_p.h:59
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition qstring.cpp:6018
QString arg(qlonglong a, int fieldwidth=0, int base=10, QChar fillChar=u' ') const
Definition qstring.cpp:8870
QString errorMessage(LONG error)
Definition qpcsc.cpp:12
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
GLfloat GLfloat p
[1]
ptrdiff_t qsizetype
Definition qtypes.h:165
\inmodule QtCore \reentrant
Definition qchar.h:18