7#include <QCoreApplication>
10#include <QLibraryInfo>
11#include <QStandardPaths>
12#include <QStringBuilder>
27 static QString getPath()
29#if defined(Q_OS_ANDROID)
32#elif defined(Q_OS_MACOS)
33 const auto& path = QCoreApplication::applicationDirPath() +
QStringLiteral(
"/../Resources");
35 #if !defined(QT_NO_DEBUG)
36 if (!QFile::exists(path))
38 return QCoreApplication::applicationDirPath();
45 return QCoreApplication::applicationDirPath();
52 QStandardPaths::LocateOption
pOption = QStandardPaths::LocateFile,
53 QStandardPaths::StandardLocation
pStandard = QStandardPaths::AppDataLocation)
55#if (defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)) || (defined(Q_OS_BSD4) && !defined(Q_OS_MACOS) && !defined(Q_OS_IOS))
56#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
59 return QLibraryInfo::location(QLibraryInfo::TranslationsPath);
Definition FileDestination.h:20
static QString getPath(const QString &pFilename, QStandardPaths::LocateOption pOption=QStandardPaths::LocateFile, QStandardPaths::StandardLocation pStandard=QStandardPaths::AppDataLocation)
Definition FileDestination.h:51
Defines the AccessRight and AccessRole enum.
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:112