#include <song-slot.h>

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) |
| Song * | getSong () 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 | |
| SongProcess * | underlying_process |
| enum SongSlot::kind_type |
| enum SongSlot::state_type |
| SongSlot::SongSlot | ( | ) |
| 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] |
Referenced by SongSelectorPlayView::processChange(), and SongSelectorAnalView::processChange().
| 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 |
References assert(), escape(), OneSpace, sprintf(), and standard.
Referenced by QueuedAnalSong::getCommand(), and startChecking().
| command_type SongSlot::getCmd | ( | ) | const [inline] |
Referenced by SongProcPrefView::SongProcPrefView().
| bool SongSlot::getCopyMusic | ( | ) | [inline] |
Referenced by SongProcPrefView::SongProcPrefView().
| int SongSlot::getId | ( | ) | const [inline] |
Referenced by SongSelectorAnalView::colorChange().
| QString SongSlot::getLogName | ( | ) |
References player.
Referenced by checkerDied(), and SongProcess::start().
| QString SongSlot::getName | ( | ) | const [inline] |
References assert(), escape(), Index::get_filename(), Index::get_storedin(), standard, and xmms.
Referenced by startChecking().
| QString SongSlot::getRemote | ( | ) | const [inline] |
Referenced by Config::save(), and SongProcPrefView::SongProcPrefView().
| Song* SongSlot::getSong | ( | ) | const [inline] |
Referenced by SongSelectorPlayView::processChange().
| QString SongSlot::getText | ( | ) | const [inline] |
Referenced by SongSelectorPlayView::processChange(), and SongSelectorAnalView::processChange().
| 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 | ( | ) |
References Song::getDisplayTitle(), Song::reread(), and viewChanged().
| void SongSlot::setAnalyzer | ( | ) | [inline] |
References analyzer.
Referenced by Config::load().
| void SongSlot::setCommand | ( | command_type | cmd | ) |
References empty, setEnabled(), and stateChanged().
Referenced by SongProcPrefView::commandChanged(), and Config::load().
| void SongSlot::setCopyMusic | ( | bool | t | ) |
References stateChanged().
Referenced by SongProcPrefView::commandChanged(), and Config::load().
| 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 | ) |
References viewChanged().
Referenced by SongProcPrefView::commandChanged(), and Config::load().
| void SongSlot::setNameId | ( | QString | name, | |
| int | id | |||
| ) |
Referenced by Config::load().
| void SongSlot::setRemote | ( | QString | remote | ) |
References stateChanged().
Referenced by SongProcPrefView::commandChanged(), and Config::load().
| void SongSlot::setSong | ( | Song * | s | ) |
References Song::getDisplayTitle().
| float4 SongSlot::songs_per_second | ( | ) | const |
Referenced by SongSelectorLogic::startAnotherAnalyzer().
| void SongSlot::start | ( | Song * | song, | |
| SongProcess * | process | |||
| ) |
References assert(), setSong(), and underlying_process.
Referenced by AnalyzersManager::start().
| void SongSlot::startChecking | ( | ) |
References assert(), checkers, checking, command, description, fclose(), FILE, Index::get_storedin(), getAnalCommand(), getPlayCommand(), player, Index::set_filename(), Index::set_storedin(), standard, SongProcess::start(), Index::write_idx(), and written.
Referenced by setEnabled().
| void SongSlot::stateChanged | ( | ) | [signal] |
Referenced by setCommand(), setCopyMusic(), setEnabled(), and setRemote().
| 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().
1.6.2