defuze.me
Client
|
This is the queueable element base class. More...
#include <queueable.hpp>
Public Slots | |
void | remove () |
Signals | |
void | remove (Queueable *elem) |
Public Member Functions | |
Queueable (QObject *parent=0) | |
void | setContainer (Container *c) |
bool | hasContainer () const |
Container * | getContainer () const |
int | getPosition () const |
const QVariantMap & | getQueueAttributes () const |
virtual QVariantMap | getContent (bool forWeb=false) const |
QVariantMap | getNetData () const |
Return the data to send on network. | |
void | saveQueueAttributes () const |
Update attributes of the queueable element in the database. | |
virtual bool | queueIsFinite () const |
This method should return false if the duration of the element is infinite (like scheduled pause or. | |
virtual int | queueDuration (QDateTime from=QDateTime()) const |
This method should return the duration of the queued element (in seconds) | |
virtual QString | queueType () const =0 |
This method should return the child class name. | |
virtual int | queueId () const |
This method should return the id of the element (if any) | |
virtual QString | name () const |
This virtual method should return a human-readable string describing the element. | |
virtual void | setPlayTime (const QDateTime &time) |
Method called by the play queue to update the play time. | |
virtual Queueable * | clone () const =0 |
Duplicate queueable content. | |
const QDateTime & | getPlayTime () const |
QString | textDuration () const |
void | showControls () |
void | hideControls () |
void | setEvent (int id) |
int | getEvent () const |
bool | isTrack () const |
bool | isBreak () const |
QueueTrack * | toQueueTrack () |
QueueBreak * | toQueueBreak () |
Protected Attributes | |
Container * | container |
QVariantMap | attributes |
int | position |
QDateTime | play_at |
Friends | |
class | PlayQueue |
This is the queueable element base class.
It allows any inherited class to be queued in the play queue
Any queueable element can be linked to a container (album, playlist, search, ...) allowing to operate easily on his siblings.
Definition at line 42 of file queueable.hpp.