QuasarAppLib 1.0.530.c9fba11
qaplatformutils.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2024-2026 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8
9#ifndef PLATFORMUTILS_H
10#define PLATFORMUTILS_H
11
12#include <QString>
13#include "quasarapp_global.h"
14
15namespace QuasarAppUtils {
16
21{
22public:
27
32 static bool isSnap();
33
38 static QString snapRootFS();
39
46 static QString transportPathToSnapRoot(const QString &path);
47
54};
55}
56#endif // IPLATFORMUTILS_H
PlatformUtils()
PlatformUtils This is the default constructor of the PlatformUtils object.
static QString snapRootFS()
snapRootFS returns root file system of main OS (available read only)
static bool isSnap()
isSnap This method check distribution type. true if the application packed as a snap.
static bool checkSystemBackupSnapInterface()
checkSystemBackupSnapInterface This method check access to backup permission of snap package....
static QString transportPathToSnapRoot(const QString &path)
transportPathToSnapRoot change path to snap available.
The QuasarAppUtils namespace contains the base functions for all applications of the QuasarApp group....
#define QUASARAPPSHARED_EXPORT