HulaLoop
Simple cross-platform audio loopback and recording.
Public Member Functions | List of all members
hula::SystemTrayIcon Class Reference

Class for communicating between QML and C++. More...

#include <SystemTrayIcon.h>

Inheritance diagram for hula::SystemTrayIcon:
Inheritance graph
[legend]
Collaboration diagram for hula::SystemTrayIcon:
Collaboration graph
[legend]

Public Member Functions

 SystemTrayIcon (QObject *parent=nullptr)
 Construct a new instance of the SystemTrayIcon class. More...
 
Q_INVOKABLE void init ()
 Initializes the system tray icon with a custom menu.
 
Q_INVOKABLE void showMessage (const QString &, const QString &)
 Displays a balloon message with the provided title and message to the user. More...
 
Q_INVOKABLE void setToolTip (const QString &)
 Changes the system tray icon tooltip text. More...
 
Q_INVOKABLE void setDefaultIcon ()
 Changes the system tray icon to the default image.
 
Q_INVOKABLE void setRecordIcon ()
 Changes the system tray icon to the recording image.
 

Detailed Description

Class for communicating between QML and C++.

This is designed to be added as a QML type and used in QML.

Constructor & Destructor Documentation

SystemTrayIcon::SystemTrayIcon ( QObject *  parent = nullptr)
explicit

Construct a new instance of the SystemTrayIcon class.

Parameters
parentThe parent object of SystemTrayIcon

Member Function Documentation

void SystemTrayIcon::setToolTip ( const QString &  text)

Changes the system tray icon tooltip text.

Parameters
text- The system tray icon's tooltip text
void SystemTrayIcon::showMessage ( const QString &  title,
const QString &  msg 
)

Displays a balloon message with the provided title and message to the user.

Parameters
title- Balloon message title
msg- Content of balloon message

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