The iPlatformUtils class bas interface for get access platform dependent functions and constants.
More...
#include <qaplatformutils.h>
|
| static bool | isSnap () |
| | isSnap This method check distribution type. true if the application packed as a snap.
|
| static QString | snapRootFS () |
| | snapRootFS returns root file system of main OS (available read only)
|
| static QString | transportPathToSnapRoot (const QString &path) |
| | transportPathToSnapRoot change path to snap available.
|
| static bool | checkSystemBackupSnapInterface () |
| | checkSystemBackupSnapInterface This method check access to backup permission of snap package. This permission required to get access to rootfs of main OS.
|
The iPlatformUtils class bas interface for get access platform dependent functions and constants.
Definition at line 20 of file qaplatformutils.h.
◆ PlatformUtils()
| QuasarAppUtils::PlatformUtils::PlatformUtils |
( |
| ) |
|
◆ checkSystemBackupSnapInterface()
| bool QuasarAppUtils::PlatformUtils::checkSystemBackupSnapInterface |
( |
| ) |
|
|
static |
checkSystemBackupSnapInterface This method check access to backup permission of snap package. This permission required to get access to rootfs of main OS.
- Returns
- true if the app have this access.
◆ isSnap()
| bool QuasarAppUtils::PlatformUtils::isSnap |
( |
| ) |
|
|
static |
isSnap This method check distribution type. true if the application packed as a snap.
- Returns
- true if the application packaged as a snap else false.
◆ snapRootFS()
| QString QuasarAppUtils::PlatformUtils::snapRootFS |
( |
| ) |
|
|
static |
snapRootFS returns root file system of main OS (available read only)
- Returns
- path ro main os root.
◆ transportPathToSnapRoot()
| QString QuasarAppUtils::PlatformUtils::transportPathToSnapRoot |
( |
const QString & | path | ) |
|
|
static |
transportPathToSnapRoot change path to snap available.
- Parameters
-
| path | source path of main OS. |
- Returns
- readable path location for snap package.
- Note
- this method is not a fast, so not invoke it too often.
The documentation for this class was generated from the following file: