defuze.me  Client
Public Slots | Signals | Public Member Functions | Protected Attributes | Friends
Queue::Queueable Class Reference

This is the queueable element base class. More...

#include <queueable.hpp>

Inheritance diagram for Queue::Queueable:
Inheritance graph
[legend]
Collaboration diagram for Queue::Queueable:
Collaboration graph
[legend]

List of all members.

Public Slots

void remove ()

Signals

void remove (Queueable *elem)

Public Member Functions

 Queueable (QObject *parent=0)
void setContainer (Container *c)
bool hasContainer () const
ContainergetContainer () 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 Queueableclone () 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
QueueTracktoQueueTrack ()
QueueBreaktoQueueBreak ()

Protected Attributes

Containercontainer
QVariantMap attributes
int position
QDateTime play_at

Friends

class PlayQueue

Detailed Description

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.


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