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

#include <GUI_TrayIcon.h>

Detailed Description

Small class to be used as tray icon

Signals

void sig_wheel_changed (int delta)
 
void sig_hide_clicked ()
 
void sig_close_clicked ()
 
void sig_show_clicked ()
 

Public Member Functions

 GUI_TrayIcon (QObject *parent=nullptr)
 
bool event (QEvent *e) override
 
void set_enable_play (bool)
 
void set_enable_stop (bool)
 
void set_enable_mute (bool)
 
void set_enable_fwd (bool)
 
void set_enable_bwd (bool)
 
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 get_name () const
 get name of notification interface More...
 

Public Slots

void skin_changed ()
 

Protected Member Functions

virtual void language_changed ()
 

Private Attributes

Settings_settings =nullptr
 

Member Function Documentation

QString NotificationInterface::get_name ( ) const
inherited

get name of notification interface

Returns
void GUI_TrayIcon::notify ( const MetaData md)
overridevirtual

notify when Metadata has been changed

Parameters
md

Implements NotificationInterface.

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

show standard notification

Parameters
titleNotification title
messageNotification message
image_pathNotification image

Implements NotificationInterface.

void GUI_TrayIcon::sig_wheel_changed ( 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
Inheritance diagram for GUI_TrayIcon:
NotificationInterface SayonaraClass