Serial Studio 1.1.6
A dashboard software for your embedded projects
Misc::Utilities Class Reference

The Utilities class. More...

#include <Utilities.h>

Inheritance diagram for Misc::Utilities:
Inheritance graph
Collaboration diagram for Misc::Utilities:
Collaboration graph

Public Slots

static void aboutQt ()
 
static void revealFile (const QString &pathToReveal)
 

Public Member Functions

Q_INVOKABLE bool askAutomaticUpdates ()
 

Static Public Member Functions

static Utilitiesinstance ()
 
static void rebootApplication ()
 
static int showMessageBox (const QString &text, const QString &informativeText="", const QString &windowTitle="", const QMessageBox::StandardButtons &bt=QMessageBox::Ok)
 

Detailed Description

The Utilities class.

The Utilitities module provides commonly used functionality to the rest of the application. For example, showing a messagebox with a nice format or revealing files in the operating system's preffered file manager.

Member Function Documentation

◆ aboutQt

void Misc::Utilities::aboutQt ( )
staticslot

Displays the about Qt dialog

◆ askAutomaticUpdates()

bool Misc::Utilities::askAutomaticUpdates ( )

Asks the user if he/she wants the application to check for updates automatically

◆ instance()

Misc::Utilities & Misc::Utilities::instance ( )
static

Returns a pointer to the only instance of the class

◆ rebootApplication()

void Misc::Utilities::rebootApplication ( )
static

Restarts the application - with macOS specific code to make it work

◆ revealFile

void Misc::Utilities::revealFile ( const QString &  pathToReveal)
staticslot

Reveals the file contained in pathToReveal in Explorer/Finder. On GNU/Linux, this function shall open the file directly with the desktop services.

Hacking details: http://stackoverflow.com/questions/3490336/how-to-reveal-in-finder-or-show-in-explorer-with-qt

◆ showMessageBox()

int Misc::Utilities::showMessageBox ( const QString &  text,
const QString &  informativeText = "",
const QString &  windowTitle = "",
const QMessageBox::StandardButtons &  bt = QMessageBox::Ok 
)
static

Shows a macOS-like message box with the given properties


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