#include <ripping.h>
You can use the public slots virtual void startStreamripper()
and void shutDown()
to start and stop streamripper.
This class applies the options available through settings_general when calling streamripper (see virtual QStringList parameterList() const
).
The actual state of the ripping process is available through a number of properties.
You have to implement virtual QString serverUri() const
in inherited classes.
Furthermore this class provides the static functions static QString format_bitrate(long bitrate)
and static QString format_metaInterval(long metaInterval)
.
Definition at line 46 of file ripping.h.
enum ripping::statusType |
This enum can hold the actual status of streamripper.
QProcess::Starting
. QProcess::Running
, but streamripper still hasn't reached the state ripping::is_connecting
.
ripping::ripping | ( | QObject * | parent | ) |
Constructor of the class.
parent | Sets the parent of this object. |
Definition at line 34 of file ripping.cpp.
References bitrateChanged(), emit_metaInterval_milliSecondsChanged(), error(), errorOccured(), console_reader::internal_splitBehavior, console_reader::m_process, resetStreamripperProperties(), and streamripperStateChange().
ripping::~ripping | ( | ) | [virtual] |
The destructor.
Definition at line 76 of file ripping.cpp.
virtual PropertyValue ripping::bitrate | ( | ) | const [virtual] |
See property bitrate.
void ripping::bitrateChanged | ( | void * | index, | |
PropertyValue | newBitrate | |||
) | [signal] |
See property bitrate.
Referenced by ripping(), setBitrate(), and radioStation::updateMetaData().
virtual PropertyValue ripping::dataSize | ( | ) | const [virtual] |
See property dataSize.
Referenced by helper_interpretate_metainfo_and_datasize().
void ripping::dataSizeChanged | ( | void * | index, | |
PropertyValue | newDataSize | |||
) | [signal] |
qint64 ripping::default_value_of_bitrate | ( | ) | [static] |
Definition at line 842 of file ripping.cpp.
Referenced by settings_stream_widget_connection::delete_old_streamInfo_and_start_recognization(), resetStreamripperProperties(), and radioStation::setServerUri().
qint64 ripping::default_value_of_dataSize | ( | ) | [static] |
Definition at line 702 of file ripping.cpp.
Referenced by interpretate_console_output(), resetStreamripperProperties(), and streamripperStateChange().
QString ripping::default_value_of_error | ( | ) | [static] |
Definition at line 609 of file ripping.cpp.
Referenced by resetStreamripperProperties().
bool ripping::default_value_of_isRunning | ( | ) | [static] |
qint64 ripping::default_value_of_metaInterval | ( | ) | [static] |
Definition at line 890 of file ripping.cpp.
Referenced by settings_stream_widget_connection::delete_old_streamInfo_and_start_recognization(), resetStreamripperProperties(), and radioStation::setServerUri().
qint64 ripping::default_value_of_relayPort | ( | ) | [static] |
Definition at line 776 of file ripping.cpp.
Referenced by resetStreamripperProperties(), and streamripperStateChange().
QString ripping::default_value_of_serverName | ( | ) | [static] |
Definition at line 393 of file ripping.cpp.
Referenced by settings_stream_widget_connection::delete_old_streamInfo_and_start_recognization(), resetStreamripperProperties(), and radioStation::setServerUri().
QString ripping::default_value_of_song | ( | ) | [static] |
Definition at line 645 of file ripping.cpp.
Referenced by interpretate_console_output(), resetStreamripperProperties(), and streamripperStateChange().
ripping::statusType ripping::default_value_of_status | ( | ) | [static] |
Definition at line 502 of file ripping.cpp.
References idle.
Referenced by resetStreamripperProperties(), and streamripperStateChange().
QString ripping::default_value_of_streamName | ( | ) | [static] |
Definition at line 357 of file ripping.cpp.
Referenced by settings_stream_widget_connection::delete_old_streamInfo_and_start_recognization(), resetStreamripperProperties(), and radioStation::setServerUri().
bool ripping::doesTheUserWantsThatTheStreamIsRipping | ( | const statusType | theStatus | ) | [static] |
theStatus | the status for which you want to determinate if the user wants to rip the stream or not. |
Definition at line 1090 of file ripping.cpp.
bool ripping::doesTheUserWantsThatTheStreamIsRipping | ( | ) | const |
Performs doesTheUserWantsThatTheStreamIsRipping(const ripping::statusType theStatus) with the status of this object - so it provides a sort of view to the propyerty status.
Definition at line 1095 of file ripping.cpp.
References internal_status, and PropertyValue::internalValue.
Referenced by stationlistWidget::reloadStatusOfStartAndStopActions().
void ripping::emit_metaInterval_milliSecondsChanged | ( | ) | [private, slot] |
This function emits the signal metaInterval_milliSecondsChanged()
Definition at line 80 of file ripping.cpp.
References streamripper_base::index(), metaInterval_milliSeconds(), and metaInterval_milliSecondsChanged().
Referenced by ripping().
virtual PropertyValue ripping::error | ( | ) | const [virtual] |
See property error.
Referenced by refreshRelayPort(), and ripping().
void ripping::errorChanged | ( | void * | index, | |
PropertyValue | newError | |||
) | [signal] |
void ripping::errorOccured | ( | const QProcess::ProcessError | error | ) | [private, slot] |
This slot is to catch the signal QProcess::error(QProcess::ProcessError error)
from m_process.
If the error is...
QProcess::FailedToStart
: Make a test if either the invoked program is missing or you may have insufficient permissions to invoke the program. An appropriate error messessage is set in the property error. QProcess::Crashed
: An appropriate error messessage is set in the property error. error | The QProcess::ProcessError that has occurred. |
Definition at line 954 of file ripping.cpp.
References setError().
Referenced by ripping().
PropertyValue ripping::formatedBitrate | ( | const qint64 | theBitrate | ) | [static] |
Definition at line 786 of file ripping.cpp.
References PropertyValue::error, PropertyValue::formatedValue, PropertyValue::formatedValueAlignment, PropertyValue::internalValue, PropertyValue::toolTip, PropertyValue::type, PropertyValue::unset, PropertyValue::value, and PropertyValue::whatsThis.
Referenced by settings_stream_widget_connection::change_empty_user_visible_widgets_to__connection_failed(), settings_stream_widget_connection::load_info_from_kcfg_and_start_recognization(), and setBitrate().
PropertyValue ripping::formatedDataSize | ( | const qint64 | theDataSize | ) | [static] |
Definition at line 655 of file ripping.cpp.
References PropertyValue::error, PropertyValue::formatedValue, PropertyValue::formatedValueAlignment, PropertyValue::internalValue, PropertyValue::toolTip, PropertyValue::type, PropertyValue::unset, PropertyValue::value, and PropertyValue::whatsThis.
Referenced by setDataSize().
PropertyValue ripping::formatedError | ( | const QString & | theError | ) | [static] |
Definition at line 512 of file ripping.cpp.
References PropertyValue::formatedValue, PropertyValue::internalValue, PropertyValue::toolTip, PropertyValue::type, PropertyValue::unset, PropertyValue::value, and PropertyValue::whatsThis.
Referenced by setError().
PropertyValue ripping::formatedMetaInterval | ( | const qint64 | theMetaInterval | ) | [static] |
Definition at line 852 of file ripping.cpp.
References PropertyValue::error, PropertyValue::formatedValue, PropertyValue::formatedValueAlignment, PropertyValue::internalValue, PropertyValue::type, PropertyValue::unset, and PropertyValue::value.
Referenced by settings_stream_widget_connection::change_empty_user_visible_widgets_to__connection_failed(), settings_stream_widget_connection::load_info_from_kcfg_and_start_recognization(), and setMetaInterval().
PropertyValue ripping::formatedMetaInterval_milliSeconds | ( | const qint64 | theMetaInterval_milliSeconds | ) | [static] |
Definition at line 927 of file ripping.cpp.
References PropertyValue::error, PropertyValue::formatedValue, PropertyValue::formatedValueAlignment, PropertyValue::internalValue, PropertyValue::type, PropertyValue::unset, and PropertyValue::value.
PropertyValue ripping::formatedRelayPort | ( | const qint64 | theRelayPort | ) | [static] |
Definition at line 722 of file ripping.cpp.
References PropertyValue::error, PropertyValue::formatedValue, PropertyValue::formatedValueAlignment, PropertyValue::internalValue, PropertyValue::toolTip, PropertyValue::type, PropertyValue::unset, PropertyValue::value, and PropertyValue::whatsThis.
Referenced by refreshRelayPort().
PropertyValue ripping::formatedServerName | ( | const QString & | theServerName | ) | [static] |
Definition at line 362 of file ripping.cpp.
References PropertyValue::formatedValue, PropertyValue::internalValue, PropertyValue::type, PropertyValue::unset, and PropertyValue::value.
Referenced by settings_stream_widget_connection::change_empty_user_visible_widgets_to__connection_failed(), settings_stream_widget_connection::load_info_from_kcfg_and_start_recognization(), and setServerName().
PropertyValue ripping::formatedSong | ( | const QString & | theSong | ) | [static] |
Definition at line 619 of file ripping.cpp.
References EQUAL, PropertyValue::formatedValue, PropertyValue::internalValue, OR, PropertyValue::type, PropertyValue::unset, and PropertyValue::value.
Referenced by setSong().
PropertyValue ripping::formatedStatus | ( | const statusType | theStatus | ) | [static] |
Definition at line 403 of file ripping.cpp.
References PropertyValue::formatedValue, idle, PropertyValue::internalValue, is_buffering, is_connecting, is_ripping, is_saving, is_skipping, is_starting, PropertyValue::toolTip, PropertyValue::type, PropertyValue::unset, PropertyValue::value, and PropertyValue::whatsThis.
Referenced by setStatus().
PropertyValue ripping::formatedStreamName | ( | const QString & | theStreamName | ) | [static] |
Definition at line 313 of file ripping.cpp.
References PropertyValue::error, PropertyValue::formatedValue, PropertyValue::internalValue, PropertyValue::toolTip, PropertyValue::type, PropertyValue::unset, PropertyValue::value, and PropertyValue::whatsThis.
Referenced by settings_stream_widget_connection::load_info_from_kcfg_and_start_recognization(), and setStreamName().
void ripping::helper_interpretate_metainfo_and_datasize | ( | QString | my_line | ) | [private] |
This internal helper function used in interpretate_console_output() interpretates a specific part of streamrippers output and sets the properties song and dataSize accordingly.
my_line | A string of the form song title [ 1kb]. The units B, KB, K, MB and M are recognized for the data size (not case sensitive). |
Definition at line 255 of file ripping.cpp.
References dataSize(), NOT, OR, setDataSize(), and setSong().
Referenced by interpretate_console_output().
void ripping::interpretate_console_output | ( | QStringList & | stringList | ) | [protected, virtual] |
This function reads the output of the streamripper process and interpretates it. It keeps the property of this class up to date - so when you want to use this information, use the properties.
Internally for performance reasons it uses from the many lines it can receive only the last available information of each type. (For example: When it receives 15 lines "[Ripping] song title [data size]" it uses only the last one to set status, song and dataSize properties - but controls all the lines before, to see if they contain data of other type like bitrate information or so on, and if so, it uses it.)
Implements console_reader.
Definition at line 98 of file ripping.cpp.
References default_value_of_dataSize(), default_value_of_song(), helper_interpretate_metainfo_and_datasize(), is_buffering, is_connecting, is_ripping, is_saving, is_skipping, NOT, setBitrate(), setDataSize(), setError(), setMetaInterval(), setRelayPort(), setServerName(), setSong(), setStatus(), and setStreamName().
virtual bool ripping::isRunning | ( | ) | const [virtual] |
See property isRunning.
virtual PropertyValue ripping::metaInterval | ( | ) | const [virtual] |
See property metaInterval.
virtual PropertyValue ripping::metaInterval_milliSeconds | ( | ) | const [virtual] |
See property metaInterval_milliSeconds.
Referenced by emit_metaInterval_milliSecondsChanged().
void ripping::metaInterval_milliSecondsChanged | ( | void * | index, | |
PropertyValue | newMetaInterval_milliSeconds | |||
) | [signal] |
See property metaInterval_milliSeconds.
Referenced by emit_metaInterval_milliSecondsChanged().
void ripping::metaIntervalChanged | ( | void * | index, | |
PropertyValue | newMetaInterval | |||
) | [signal] |
See property metaInterval.
Referenced by setMetaInterval(), and radioStation::updateMetaData().
void ripping::not_running | ( | ) | [signal] |
QStringList ripping::parameterList | ( | ) | const [protected, virtual] |
This function provides the necessary parameters for calling streamripper as available from serverUri() and settings_general - and some extra parameter (like to don't override temporary files).
Implements streamripper_base.
Reimplemented in get_stream_info, and radioStation.
Definition at line 1004 of file ripping.cpp.
References proxyinfo::proxyserver(), and serverUri().
void ripping::refreshRelayPort | ( | ) | [private, slot] |
Recalculates internal_relayPort and emits the necessary signals.
Definition at line 756 of file ripping.cpp.
References error(), formatedRelayPort(), streamripper_base::index(), internal_relayPort, PropertyValue::internalValue, is_ripping, is_skipping, lastRecognizedRelayPort, relayPortChanged(), status(), PropertyValue::type, and PropertyValue::unset.
Referenced by setError(), setRelayPort(), and setStatus().
virtual PropertyValue ripping::relayPort | ( | ) | const [virtual] |
See property relayPort.
void ripping::relayPortChanged | ( | void * | index, | |
PropertyValue | newRelayPort | |||
) | [signal] |
See property relayPort.
Referenced by refreshRelayPort().
void ripping::resetStreamripperProperties | ( | ) | [protected, virtual] |
This function resets all streamripper properties to it's default values (=unset). It uses the reset functions of the properties, so for all changes a notify signal will be emitted.
Definition at line 85 of file ripping.cpp.
References default_value_of_bitrate(), default_value_of_dataSize(), default_value_of_error(), default_value_of_metaInterval(), default_value_of_relayPort(), default_value_of_serverName(), default_value_of_song(), default_value_of_status(), default_value_of_streamName(), setBitrate(), setDataSize(), setError(), setMetaInterval(), setRelayPort(), setServerName(), setSong(), setStatus(), and setStreamName().
Referenced by ripping(), and get_stream_info::setServerUri().
void ripping::running | ( | ) | [signal] |
virtual PropertyValue ripping::serverName | ( | ) | const [virtual] |
See property serverName.
void ripping::serverNameChanged | ( | void * | index, | |
PropertyValue | newServerName | |||
) | [signal] |
See property serverName.
Referenced by setServerName(), and radioStation::updateMetaData().
virtual QString ripping::serverUri | ( | ) | const [protected, pure virtual] |
This function provides the URI which should be ripped and is used by parameterList(). Implement it in inherited classes!
Implemented in get_stream_info, and radioStation.
Referenced by parameterList().
void ripping::setBitrate | ( | const qint64 | newBitrate | ) | [protected, virtual] |
Used internally to write the property bitrate.
Reimplemented in radioStation.
Definition at line 834 of file ripping.cpp.
References bitrateChanged(), formatedBitrate(), streamripper_base::index(), internal_bitrate, and PropertyValue::internalValue.
Referenced by interpretate_console_output(), and resetStreamripperProperties().
void ripping::setDataSize | ( | const qint64 | newDataSize | ) | [protected, virtual] |
Used internally to write the property dataSize.
Definition at line 694 of file ripping.cpp.
References dataSizeChanged(), formatedDataSize(), streamripper_base::index(), internal_dataSize, and PropertyValue::internalValue.
Referenced by helper_interpretate_metainfo_and_datasize(), interpretate_console_output(), resetStreamripperProperties(), and streamripperStateChange().
void ripping::setError | ( | const QString & | newError | ) | [protected, virtual] |
Used internally to write the property error.
Definition at line 597 of file ripping.cpp.
References errorChanged(), formatedError(), streamripper_base::index(), internal_error, PropertyValue::internalValue, and refreshRelayPort().
Referenced by errorOccured(), interpretate_console_output(), resetStreamripperProperties(), and startStreamripper().
void ripping::setMetaInterval | ( | const qint64 | newMetaInterval | ) | [protected, virtual] |
Used internally to write the property metaInterval.
Reimplemented in radioStation.
Definition at line 882 of file ripping.cpp.
References formatedMetaInterval(), streamripper_base::index(), internal_metaInterval, PropertyValue::internalValue, and metaIntervalChanged().
Referenced by interpretate_console_output(), and resetStreamripperProperties().
void ripping::setRelayPort | ( | const qint64 | newRelayPort | ) | [protected, virtual] |
Used internally to write the property relayPort.
Definition at line 768 of file ripping.cpp.
References lastRecognizedRelayPort, and refreshRelayPort().
Referenced by interpretate_console_output(), resetStreamripperProperties(), and streamripperStateChange().
void ripping::setServerName | ( | const QString & | newServerName | ) | [protected, virtual] |
Used internally to write the property serverName.
Reimplemented in radioStation.
Definition at line 385 of file ripping.cpp.
References formatedServerName(), streamripper_base::index(), internal_serverName, PropertyValue::internalValue, and serverNameChanged().
Referenced by interpretate_console_output(), and resetStreamripperProperties().
void ripping::setSong | ( | const QString & | newSong | ) | [protected, virtual] |
Used internally to write the property song.
Definition at line 637 of file ripping.cpp.
References formatedSong(), streamripper_base::index(), internal_song, PropertyValue::internalValue, and songChanged().
Referenced by helper_interpretate_metainfo_and_datasize(), interpretate_console_output(), resetStreamripperProperties(), and streamripperStateChange().
void ripping::setStatus | ( | const statusType | newStatus | ) | [protected, virtual] |
Used internally to write the properties status and also isRunning.
Definition at line 468 of file ripping.cpp.
References formatedStatus(), idle, streamripper_base::index(), internal_isRunning, internal_status, PropertyValue::internalValue, not_running(), refreshRelayPort(), running(), and statusChanged().
Referenced by interpretate_console_output(), resetStreamripperProperties(), startStreamripper(), and streamripperStateChange().
void ripping::setStreamName | ( | const QString & | newStreamName | ) | [protected, virtual] |
Used internally to write the property streamName.
Reimplemented in radioStation.
Definition at line 349 of file ripping.cpp.
References formatedStreamName(), streamripper_base::index(), internal_streamName, PropertyValue::internalValue, and streamNameChanged().
Referenced by interpretate_console_output(), and resetStreamripperProperties().
void ripping::shutDown | ( | ) | [slot] |
This slot sends the terminate signal to the streamripper instance running in m_process.
void not_running()
Definition at line 1083 of file ripping.cpp.
References console_reader::m_process.
Referenced by stationlistModel::stopRecording().
virtual PropertyValue ripping::song | ( | ) | const [virtual] |
See property song.
void ripping::songChanged | ( | void * | index, | |
PropertyValue | newSong | |||
) | [signal] |
void ripping::startStreamripper | ( | ) | [virtual, slot] |
This function starts streamripper (using streamripper_base::startStreamripper()) if it isn't yet running. It uses workingDirectory() as working directory and if this directory doesn't exist, it is created automatically (if possible). It resets the property error and actualizes the property status.
void not_running()
Reimplemented from streamripper_base.
Definition at line 1048 of file ripping.cpp.
References idle, is_starting, console_reader::m_process, setError(), setStatus(), and workingDirectory().
Referenced by settings_stream_widget_connection::helper_setServerUri_connectMProcess_startRecognization(), and stationlistModel::record().
virtual PropertyValue ripping::status | ( | ) | const [virtual] |
void ripping::statusChanged | ( | void * | index, | |
PropertyValue | newStatus | |||
) | [signal] |
virtual PropertyValue ripping::streamName | ( | ) | const [virtual] |
See property streamName.
void ripping::streamNameChanged | ( | void * | index, | |
PropertyValue | newStreamName | |||
) | [signal] |
See property streamName.
Referenced by setStreamName(), and radioStation::updateMetaData().
QString ripping::streamripperCommand | ( | ) | const [protected, virtual] |
This function provides the necessary command for invoking streamripper as available from settings_general::streamripperCommand.
Implements streamripper_base.
Definition at line 1043 of file ripping.cpp.
void ripping::streamripperStateChange | ( | const QProcess::ProcessState | newState | ) | [private, slot] |
This slot is to catch the signal QProcess::stateChanged(QProcess::ProcessState)
from m_process.
QProcess::NotRunning
than the properties get adjusted. QProcess::Starting
nothing happens because the properties get adjusted by the calling function. QProcess::Running
nothing happens because the properties will get adjusted by interpretate_console_output().newState | The new QProcess::ProcessState that has occurred. |
Definition at line 982 of file ripping.cpp.
References default_value_of_dataSize(), default_value_of_relayPort(), default_value_of_song(), default_value_of_status(), setDataSize(), setRelayPort(), setSong(), and setStatus().
Referenced by ripping().
virtual QString ripping::workingDirectory | ( | ) | const [protected, pure virtual] |
Provides the working directory for the Streamripper process.
Implemented in get_stream_info, and radioStation.
Referenced by startStreamripper().
PropertyValue ripping::internal_bitrate [private] |
Used internally to store the property bitrate.
Definition at line 604 of file ripping.h.
Referenced by setBitrate().
PropertyValue ripping::internal_dataSize [private] |
Used internally to store the property dataSize.
Definition at line 606 of file ripping.h.
Referenced by setDataSize().
PropertyValue ripping::internal_error [private] |
Used internally to store the property error.
Definition at line 608 of file ripping.h.
Referenced by setError().
bool ripping::internal_isRunning [private] |
Used internally to store the property isRunning.
Definition at line 610 of file ripping.h.
Referenced by setStatus().
PropertyValue ripping::internal_metaInterval [private] |
Used internally to store the property metaInterval.
Definition at line 612 of file ripping.h.
Referenced by setMetaInterval().
PropertyValue ripping::internal_relayPort [private] |
Used internally to store the property relayPort.
Definition at line 614 of file ripping.h.
Referenced by refreshRelayPort().
PropertyValue ripping::internal_serverName [private] |
Used internally to store the property serverName.
Definition at line 616 of file ripping.h.
Referenced by setServerName().
PropertyValue ripping::internal_song [private] |
PropertyValue ripping::internal_status [private] |
Used internally to store the property status.
Definition at line 620 of file ripping.h.
Referenced by doesTheUserWantsThatTheStreamIsRipping(), and setStatus().
PropertyValue ripping::internal_streamName [private] |
Used internally to store the property streamName.
Definition at line 622 of file ripping.h.
Referenced by setStreamName().
qint64 ripping::lastRecognizedRelayPort [private] |
Here, the last recognized relay port is cached. This is necessary, because the property relayPort holds its value only when the status is is_skipping or is_ripping.
Definition at line 628 of file ripping.h.
Referenced by refreshRelayPort(), and setRelayPort().
PropertyValue ripping::bitrate [read] |
This property holds the bitrate of the stream in kbit/s (with SI prefix, which means 1000 bit per second, not 1024) that is recorded by streamripper. (This information is based on the information that the stream provides via the http header. This must not necessaryly be correct.)
Meaning of the internal value:
This property guards it's last value also when streamripper terminates.
Formated value:
virtual PropertyValue bitrate() const
void bitrateChanged(void *index, PropertyValue newBitrate)
virtual void setBitrate(qint64 bitrate)
static qint64 default_value_of_bitrate()
static PropertyValue formatedBitrate(const qint64 theBitrate)
Definition at line 87 of file ripping.h.
Referenced by stationlistModel::columnInfo().
PropertyValue ripping::dataSize [read] |
This property holds the amount of data of the actual song in byte, that has been recorded by streamripper until now.
This property gets reseted when streamripper terminates.
virtual PropertyValue dataSize() const
void dataSizeChanged(void *index, PropertyValue newDataSize)
virtual void setDataSize(qint64 dataSize)
static qint64 default_value_of_dataSize()
static PropertyValue formatedDataSize(const qint64 theDataSize)
Definition at line 116 of file ripping.h.
Referenced by stationlistModel::columnInfo().
PropertyValue ripping::error [read] |
This property holds the error message of the last error that has occurred. It holds error messages from streamripper or an error messages from KStreamRipper (e.g. that the streamripper command wasn't found or the "save directory" isn't writable).
Formated error message:
"error -"
: The error message is left as is."error -"
: The error is expected to be of the format "error -123 foo bar"
. 123 stands for the ID number of the bug."Error 123: foo bar"
is used. Error IDs < 1000 should be streamripper errors and error IDs >= 1000 should be KStreamRipper errors.Meaning:
This property guards it's last value also when streamripper terminates.
This property gets reseted when you startStreamripper().
virtual QString error() const
void errorChanged(void *index, PropertyValue newError)
virtual void setError(const QString newError)
static QString default_value_of_error()
static PropertyValue formatedError(const QString theError)
Definition at line 155 of file ripping.h.
Referenced by stationlistModel::columnInfo().
bool ripping::isRunning [read] |
This property holds the status of streamripper in a simplified way: false when the status is ripping::idle, and true in all other cases.
Initialization value: false
virtual bool isRunning() const
void not_running()
This means that this signal is emitted when the streamripper process enters in the state QProcess::NotRunning
.
This differs from QProcess:finished()
, which is only emitted when the process was yet running. But not_running
is also emitted after you've tried to start streamripper (m_process has yet entered in state QProcess::Starting
) but the binary could than not be invoced (because is doesn't exit or the user hasn't execution rights or whatever).
void running()
This means that this signal is emitted when the streamripper process has entered in the state QProcess::Starting
or immediately before it will enter.
This differs from QProcess:started()
, which is only emitted when the binary has been successfully invoced. But running
is emitted after you start to try to invoce streamripper - still not knowing if this will work or not.
virtual void setStatus(const statusType newStatus)
static QString default_value_of_isRunning()
bool internal_isRunning
Definition at line 200 of file ripping.h.
Referenced by stationlistWidget::reloadStatusOfStartAndStopActions().
PropertyValue ripping::metaInterval [read] |
This property holds the interval in byte in which metadata is send by the stream.
Meaning of the internal value:
This property guards it's last value also when streamripper terminates.
Formated value:
virtual PropertyValue metaInterval() const
void metaIntervalChanged(void *index, PropertyValue newMetaInterval)
virtual void setMetaInterval(qint64 newMetaInterval)
static qint64 default_value_of_metaInterval()
void resetMetaInterval()
static PropertyValue formatedMetaInterval(const qint64 theMetaInterval)
Definition at line 235 of file ripping.h.
Referenced by stationlistModel::columnInfo().
PropertyValue ripping::metaInterval_milliSeconds [read] |
This property holds the interval in milliseconds in which metadata is send by the stream. It doesn't exist on it's own, but is calculated from the properties metaInterval and bitrate.
Meaning of the internal value:
This property guards it's last value also when streamripper terminates, as it depends on bitrate and metaInterval which guards it's values both.
Formated value:
virtual PropertyValue metaInterval_milliSeconds() const
void metaInterval_milliSecondsChanged( void *index, PropertyValue newMetaInterval_milliSeconds)
static PropertyValue formatedMetaInterval_milliSeconds( const qint64 theMetaInterval_milliSeconds)
The constructor: There, the emitting of the notify signal is organized.
Definition at line 273 of file ripping.h.
Referenced by stationlistModel::columnInfo().
PropertyValue ripping::relayPort [read] |
streamripper can start a local relay server which provides the stream that is actually recorded with some seconds of delay to the local network. This relay server is also used by KStreamRipper to implement to hear to the streams. This property holds the port of the relay server - but only if status is is_skipping or is_ripping.
Meaning:
This property gets reseted when streamripper terminates.
virtual PropertyValue relayPort() const
void relayPortChanged(void *index, PropertyValue newRelayPort)
virtual void setRelayPort(qint64 newRelayPort)
static qint64 default_value_of_relayPort()
static PropertyValue formatedRelayPort(const qint64 theRelayPort)
Definition at line 304 of file ripping.h.
Referenced by stationlistModel::columnInfo(), and listenSupport::setStation().
PropertyValue ripping::serverName [read] |
This property holds the name of server from which the stream comes.
Meaning:
This property guards it's last value also when streamripper terminates.
virtual PropertyValue serverName() const
void serverNameChanged(void *index, PropertyValue newServerName)
virtual void settod_pudel_1920x1200ServerName(const QString newServerName)
static QString default_value_of_serverName()
static PropertyValue formatedServerName(const QString theServerName)
Definition at line 324 of file ripping.h.
Referenced by stationlistModel::columnInfo().
PropertyValue ripping::song [read] |
This property holds the name of the song that is actually recorded by streamripper.
Meaning:
virtual PropertyValue song() const
void songChanged(void *index, PropertyValue newSong)
static QString default_value_of_song()
static PropertyValue formatedSong(const QString theSong)
Definition at line 342 of file ripping.h.
Referenced by stationlistModel::columnInfo().
PropertyValue ripping::status [read] |
This property holds the status of streamripper (like "Buffering...", "Ripping...", "Shutting down..." ...).
Initialization value: ripping::idle
virtual PropertyValue status() const
void statusChanged(void *index, PropertyValue newStatus);
virtual void setStatus(const statusType newStatus)
static statusType default_value_of_status()
static PropertyValue formatedStatus(const statusType theStatus)
Definition at line 358 of file ripping.h.
Referenced by stationlistModel::columnInfo().
PropertyValue ripping::streamName [read] |
This property holds the name of the stream that is recorded by streamripper.
Meaning:
This property guards it's last value also when streamripper terminates.
virtual PropertyValue streamName() const
void streamNameChanged(void *index, PropertyValue newStreamName)
virtual void setStreamName(const QString newStreamName)
static QString default_value_of_streamName()
static PropertyValue formatedStreamName(const QString theStreamName)
Definition at line 378 of file ripping.h.
Referenced by stationlistModel::columnInfo().