SongSlot Class Reference

#include <song-slot.h>

Collaboration diagram for SongSlot:
Collaboration graph
[legend]

List of all members.

Public Types

enum  command_type { empty, standard, xmms }
enum  enabled_type { disabled, enabling, ok, disabling }
enum  state_type { unchecked, checking, usefull, useless }
enum  kind_type { player, analyzer }

Public Slots

void setup ()

Signals

void stateChanged ()
void viewChanged ()
void timeChanged ()

Public Member Functions

 SongSlot ()
enabled_type enabledState () const
void setEnabled (bool enabled=true)
bool isEnabledOk () const
QString getText () const
bool canRun () const
bool isAnalyzer () const
command_type getCmd () const
QString getPlayCommand (Index &matchto, Index &song) const
QString getAnalCommand (bool tempo, int bpmtechnique, float8 from, float8 to, bool spectrum, bool energy, bool rhythm, QString song) const
void setAnalyzer ()
void setCommand (command_type cmd)
void setCopyMusic (bool t)
bool getCopyMusic ()
QString getRemote () const
void setRemote (QString remote)
bool isEmpty () const
bool isBusy () const
void setSong (Song *s)
SonggetSong () const
void reread ()
int get_running_time () const
int inc_running_time ()
float4 songs_per_second () const
bool is_free ()
void start (Song *song, SongProcess *process)
void stop ()
void setNameId (QString name, int id)
void setName (QString name)
QString getName () const
int getId () const
void startChecking ()
void checkerDied ()
QString getLogName ()

Public Attributes

SongProcessunderlying_process

Member Enumeration Documentation

Enumerator:
empty 
standard 
xmms 
Enumerator:
disabled 
enabling 
ok 
disabling 
Enumerator:
player 
analyzer 
Enumerator:
unchecked 
checking 
usefull 
useless 

Constructor & Destructor Documentation

SongSlot::SongSlot (  ) 

Member Function Documentation

bool SongSlot::canRun (  )  const [inline]

References ok.

void SongSlot::checkerDied (  ) 

check the configuration file and decide whether it worked out well or not...

References assert(), checking, Index::get_time(), getLogName(), and LogViewer::goTo().

enabled_type SongSlot::enabledState (  )  const [inline]
int SongSlot::get_running_time (  )  const [inline]
QString SongSlot::getAnalCommand ( bool  tempo,
int  bpmtechnique,
float8  from,
float8  to,
bool  spectrum,
bool  energy,
bool  rhythm,
QString  song 
) const
command_type SongSlot::getCmd (  )  const [inline]
bool SongSlot::getCopyMusic (  )  [inline]
int SongSlot::getId (  )  const [inline]
QString SongSlot::getLogName (  ) 

References player.

Referenced by checkerDied(), and SongProcess::start().

QString SongSlot::getName (  )  const [inline]
QString SongSlot::getPlayCommand ( Index matchto,
Index song 
) const
QString SongSlot::getRemote (  )  const [inline]
Song* SongSlot::getSong (  )  const [inline]
QString SongSlot::getText (  )  const [inline]
int SongSlot::inc_running_time (  ) 

References timeChanged().

bool SongSlot::is_free (  )  [inline]

References underlying_process.

bool SongSlot::isAnalyzer (  )  const [inline]

References analyzer.

Referenced by SongProcPrefView::SongProcPrefView().

bool SongSlot::isBusy (  )  const [inline]

Referenced by setEnabled().

bool SongSlot::isEmpty (  )  const [inline]

References empty.

Referenced by setEnabled().

bool SongSlot::isEnabledOk (  )  const [inline]

References ok.

void SongSlot::reread (  ) 
void SongSlot::setAnalyzer (  )  [inline]

References analyzer.

Referenced by Config::load().

void SongSlot::setCommand ( command_type  cmd  ) 
void SongSlot::setCopyMusic ( bool  t  ) 
void SongSlot::setEnabled ( bool  enabled = true  ) 

Enabling of this player

Disabling of this player

References analyzer, assert(), disabled, disabling, enabling, getName(), isBusy(), isEmpty(), ok, Config::open_ui(), startChecking(), stateChanged(), and viewChanged().

Referenced by setCommand().

void SongSlot::setName ( QString  name  ) 
void SongSlot::setNameId ( QString  name,
int  id 
)

Referenced by Config::load().

void SongSlot::setRemote ( QString  remote  ) 
void SongSlot::setSong ( Song s  ) 

References Song::getDisplayTitle().

Referenced by start(), and stop().

void SongSlot::setup (  )  [slot]

References Error(), getName(), spawn(), and standard.

float4 SongSlot::songs_per_second (  )  const
void SongSlot::start ( Song song,
SongProcess process 
)
void SongSlot::startChecking (  ) 
void SongSlot::stateChanged (  )  [signal]
void SongSlot::stop (  ) 

The stop routine is called by the process manager whenever the underlying process finished.

When the process finished we also disable the process whenever we were in a disabling mood.

References disabled, disabling, setSong(), and underlying_process.

void SongSlot::timeChanged (  )  [signal]

Referenced by inc_running_time().

void SongSlot::viewChanged (  )  [signal]

Referenced by reread(), setEnabled(), and setName().


Member Data Documentation

The underlying process.

Referenced by is_free(), start(), and stop().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2