QuasarAppLib
QuasarAppUtils::PlatformUtils Class Reference

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

#include <qaplatformutils.h>

Collaboration diagram for QuasarAppUtils::PlatformUtils:
Collaboration graph

Public Member Functions

 PlatformUtils ()
 

Static Public Member Functions

static bool isSnap ()
 isSnap This method check destribution 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 avaialble.
 
static bool checkSystemBakupSnapInterface ()
 checkSystemBakupSnapInterface This method check access to bakcup permision of snap pacakge. This permision required to get access to rootfs of main OS.
 

Detailed Description

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

Definition at line 20 of file qaplatformutils.h.

Constructor & Destructor Documentation

◆ PlatformUtils()

QuasarAppUtils::PlatformUtils::PlatformUtils ( )

Member Function Documentation

◆ checkSystemBakupSnapInterface()

static bool QuasarAppUtils::PlatformUtils::checkSystemBakupSnapInterface ( )
static

checkSystemBakupSnapInterface This method check access to bakcup permision of snap pacakge. This permision required to get access to rootfs of main OS.

Returns
true if the app have this accesss.

◆ isSnap()

static bool QuasarAppUtils::PlatformUtils::isSnap ( )
static

isSnap This method check destribution type. true if the application packed as a snap.

Returns
true if the application packaged as a snap else false.

◆ snapRootFS()

static QString QuasarAppUtils::PlatformUtils::snapRootFS ( )
static

snapRootFS returns root file system of main OS (available read only)

Returns
path ro main os root.

◆ transportPathToSnapRoot()

static QString QuasarAppUtils::PlatformUtils::transportPathToSnapRoot ( const QString path)
static

transportPathToSnapRoot change path to snap avaialble.

Parameters
pathsource path of main OS.
Returns
readable path location for snap pacakge.
Note
this method is not a fast, so not invoke it too offten.

The documentation for this class was generated from the following file: