Just Intonation  Version 1.3.0 (18)
Explore scale-independent dynamically adapting tuning in just intonation
PlatformTools Class Reference

Base class providing support for various platforms. More...

#include <platformtools.h>

Inheritance diagram for PlatformTools:
Inheritance graph
Collaboration diagram for PlatformTools:
Collaboration graph

Public Member Functions

virtual void init (Application &application)
 Platform-dependent initialization. More...
virtual void disableScreensaver ()
 Function to disable the screen saver. More...
virtual void enableScreensaver ()
 Function to enable the screen saver. More...
virtual qint64 getFreeDiskSpace (const QString &path)
 Determine free disk space. More...

Static Public Member Functions

static PlatformToolsgetSingleton ()
static std::unique_ptr< PlatformTools > & getPointerToInstance ()
 Function holding the instance pointer as a static unique pointer. More...

Protected Member Functions

 PlatformTools ()

Detailed Description

Base class providing support for various platforms.

This singleton class is used to access platform-dependent components. The platform-dependent components are defined as derived casses named XXXPlatformTools. To create an instance of these tools one has to instantiate a global object of the type

Definition at line 40 of file platformtools.h.

Constructor & Destructor Documentation

PlatformTools::PlatformTools ( )

Definition at line 43 of file platformtools.h.

Member Function Documentation

virtual void PlatformTools::disableScreensaver ( )

Function to disable the screen saver.

Definition at line 73 of file platformtools.h.

virtual void PlatformTools::enableScreensaver ( )

Function to enable the screen saver.

Definition at line 80 of file platformtools.h.

virtual qint64 PlatformTools::getFreeDiskSpace ( const QString &  path)

Determine free disk space.

path: Path of the location for which the free disk space has to be determined
: Free space as a qint64 in bytes.

Definition at line 93 of file platformtools.h.

static std::unique_ptr<PlatformTools>& PlatformTools::getPointerToInstance ( )

Function holding the instance pointer as a static unique pointer.

Definition at line 107 of file platformtools.h.

static PlatformTools& PlatformTools::getSingleton ( )

To access platform-dependent functions declare them as virtual functions here in this base, override them in the corresponding platform-dependent derived class and access them by calling


Definition at line 56 of file platformtools.h.

Here is the call graph for this function:

virtual void PlatformTools::init ( Application application)

Platform-dependent initialization.

Definition at line 66 of file platformtools.h.

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