QuasarAppLib 1.0.530.c9fba11
QuasarAppUtils::PlatformUtils Class Reference

The iPlatformUtils class bas interface for get access platform dependent functions and constants. More...

#include <qaplatformutils.h>

Collaboration diagram for QuasarAppUtils::PlatformUtils:
Collaboration graph

Public Member Functions

 PlatformUtils ()
 PlatformUtils This is the default constructor of the PlatformUtils object.

Static Public Member Functions

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.

Detailed Description

The iPlatformUtils class bas interface for get access platform dependent functions and constants.

Definition at line 20 of file qaplatformutils.h.

Constructor & Destructor Documentation

◆ PlatformUtils()

QuasarAppUtils::PlatformUtils::PlatformUtils ( )

PlatformUtils This is the default constructor of the PlatformUtils object.

Member Function Documentation

◆ 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
pathsource 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: