LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
Media::ICurrentSongKeeper Class Referenceabstract

Interface for plugins able to fetch current tune. More...

#include "icurrentsongkeeper.h"

Public Member Functions

virtual ~ICurrentSongKeeper ()
 
virtual AudioInfo GetCurrentSong () const =0
 Returns the information about the current song. More...
 

Protected Member Functions

virtual void currentSongChanged (const AudioInfo &newTune)=0
 Emitted when current song changes. More...
 

Detailed Description

Interface for plugins able to fetch current tune.

Plugins that are able to fetch current tune from audio players, both internal to LeechCraft like LMP and external ones (via MPRIS for example) should implement this interface.

Definition at line 27 of file icurrentsongkeeper.h.

Constructor & Destructor Documentation

◆ ~ICurrentSongKeeper()

virtual Media::ICurrentSongKeeper::~ICurrentSongKeeper ( )
inlinevirtual

Definition at line 30 of file icurrentsongkeeper.h.

Member Function Documentation

◆ currentSongChanged()

virtual void Media::ICurrentSongKeeper::currentSongChanged ( const AudioInfo newTune)
protectedpure virtual

Emitted when current song changes.

This signal should be emitted when the currently played tune is changed.

Parameters
[out]newTuneThe new currently playing song.

◆ GetCurrentSong()

virtual AudioInfo Media::ICurrentSongKeeper::GetCurrentSong ( ) const
pure virtual

Returns the information about the current song.

Returns
The information about the currently playing song.

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