11#include <QCoreApplication>
14#include <QLibraryInfo>
15#include <QStandardPaths>
16#include <QStringBuilder>
30 static QString getPath()
32#if defined(Q_OS_ANDROID)
35#elif defined(Q_OS_MACOS)
36 const auto& path = QCoreApplication::applicationDirPath() +
QStringLiteral(
"/../Resources");
38 #if !defined(QT_NO_DEBUG)
39 if (!QFile::exists(path))
41 return QCoreApplication::applicationDirPath();
48 return QCoreApplication::applicationDirPath();
55 QStandardPaths::LocateOption
pOption = QStandardPaths::LocateFile,
56 QStandardPaths::StandardLocation
pStandard = QStandardPaths::AppDataLocation)
58#if (defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)) || (defined(Q_OS_BSD4) && !defined(Q_OS_MACOS) && !defined(Q_OS_IOS))
59#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
62 return QLibraryInfo::location(QLibraryInfo::TranslationsPath);
Definition FileDestination.h:23
static QString getPath(const QString &pFilename, QStandardPaths::LocateOption pOption=QStandardPaths::LocateFile, QStandardPaths::StandardLocation pStandard=QStandardPaths::AppDataLocation)
Definition FileDestination.h:54
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:114