Sayonara Player
Signals | Public Member Functions | Protected Member Functions | List of all members
GUI_TrayIcon Class Reference

#include <GUI_TrayIcon.h>

Inheritance diagram for GUI_TrayIcon:
NotificationInterface

Signals

void sigWheelChanged (int delta)
 
void sigHideClicked ()
 
void sigCloseClicked ()
 
void sigShowClicked ()
 

Public Member Functions

 GUI_TrayIcon (QObject *parent=nullptr)
 
bool event (QEvent *e) override
 
void setForwardEnabled (bool b)
 
void notify (const MetaData &md) override
 notify when Metadata has been changed More...
 
void notify (const QString &title, const QString &message, const QString &image_path) override
 show standard notification More...
 
QString name () const override
 get name of notification interface More...
 
QString displayName () const override
 

Protected Member Functions

void languageChanged ()
 

Detailed Description

Small class to be used as tray icon

Member Function Documentation

◆ name()

QString GUI_TrayIcon::name ( ) const
overridevirtual

get name of notification interface

Returns

Implements NotificationInterface.

◆ notify() [1/2]

void GUI_TrayIcon::notify ( const MetaData md)
overridevirtual

notify when Metadata has been changed

Parameters
md

Implements NotificationInterface.

◆ notify() [2/2]

void GUI_TrayIcon::notify ( const QString &  title,
const QString &  message,
const QString &  imagePath 
)
overridevirtual

show standard notification

Parameters
titleNotification title
messageNotification message
image_pathNotification image

Implements NotificationInterface.

◆ sigWheelChanged

void GUI_TrayIcon::sigWheelChanged ( int  delta)
signal

this event is fired, if we have a mouse wheel event

Parameters
deltabigger then 0 when mouse wheel has moved forward smaller when moved backwards