Entropy Piano Tuner  1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PlatformTools Class Reference

#include <platformtools.h>

+ Inheritance diagram for PlatformTools:
+ Collaboration diagram for PlatformTools:

Public Member Functions

virtual void init ()
 Initialise native components (e.g. midi on android/iOS) More...
 
virtual bool loadStartupFile (const QStringList args)
 Load a startup file from the given arguments. More...
 
virtual bool openFileFromArgs (const QStringList &args)
 open the startup file from the arguments More...
 
virtual void disableScreensaver ()
 Function to disable the screen saver. More...
 
virtual void enableScreensaver ()
 Function to enable the screen saver. More...
 
void openFile (const char *file, bool cached)
 Function called from the implementations to open a file. More...
 
- Public Member Functions inherited from PlatformToolsCore
virtual std::shared_ptr
< MidiAdapter
createMidiAdapter () const
 

Static Public Member Functions

static PlatformToolsgetSingleton ()
 
- Static Public Member Functions inherited from PlatformToolsCore
static PlatformToolsCoregetSingleton ()
 

Additional Inherited Members

- Protected Member Functions inherited from PlatformToolsCore
 PlatformToolsCore ()
 

Detailed Description

Namespace that contains platform dependent implementations of certain tools.

Definition at line 36 of file platformtools.h.

Member Function Documentation

virtual void PlatformTools::disableScreensaver ( )
inlinevirtual

Function to disable the screen saver.

Working on android, Mac Os X, iOS, Windows.

Definition at line 63 of file platformtools.h.

virtual void PlatformTools::enableScreensaver ( )
inlinevirtual

Function to enable the screen saver.

Working on android, Mac Os X, iOS, Windows.

Definition at line 70 of file platformtools.h.

static PlatformTools* PlatformTools::getSingleton ( )
inlinestatic

Definition at line 38 of file platformtools.h.

+ Here is the call graph for this function:

virtual void PlatformTools::init ( )
inlinevirtual

Initialise native components (e.g. midi on android/iOS)

Definition at line 41 of file platformtools.h.

bool PlatformTools::loadStartupFile ( const QStringList  args)
virtual

Load a startup file from the given arguments.

Parameters
args: The startup arguments
Returns
Loading success.

Definition at line 28 of file platformtools.cpp.

+ Here is the call graph for this function:

void PlatformTools::openFile ( const char *  file,
bool  cached 
)

Function called from the implementations to open a file.

Parameters
file: Absolute file path to open.
cached: Is the file cached?

This function will use the singleton class TunerApplication to open the file.

Definition at line 59 of file platformtools.cpp.

+ Here is the call graph for this function:

bool PlatformTools::openFileFromArgs ( const QStringList &  args)
virtual

open the startup file from the arguments

Parameters
args: The program arguments
Returns
true on success

Definition at line 32 of file platformtools.cpp.

+ Here is the call graph for this function:


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