#include <get_stream_info.h>
Public Member Functions | |
get_stream_info (QObject *parent=0) | |
virtual | ~get_stream_info () |
virtual QString | serverUri () const |
virtual void | setServerUri (const QString value) |
Protected Member Functions | |
virtual QStringList | parameterList () const |
virtual QString | workingDirectory () const |
Properties | |
QString | serverUri |
Private Attributes | |
QString | internal_serverUri |
KTempDir | m_tempDir |
This class calls streamripper, lets it connect to the stream, recognizes streamName, serverName, bitrate and metaInterval and disconnects immediately after that.
Just set the property serverUri and startStreamripper(). The recognized data is available as usual through the properties.
Definition at line 36 of file get_stream_info.h.
get_stream_info::get_stream_info | ( | QObject * | parent = 0 |
) |
Constructor of the class.
parent | Sets the parent of this object. |
Definition at line 27 of file get_stream_info.cpp.
get_stream_info::~get_stream_info | ( | ) | [virtual] |
The destructor.
Definition at line 31 of file get_stream_info.cpp.
References console_reader::m_process.
QStringList get_stream_info::parameterList | ( | ) | const [protected, virtual] |
Returns the parameters which virtual QStringList ripping::parameterList() const
would return and addititionaly a parameter that stops streamripper directly after the first data is send and a parameter that prevents streamripper from writing any data.
Reimplemented from ripping.
Definition at line 53 of file get_stream_info.cpp.
virtual QString get_stream_info::serverUri | ( | ) | const [virtual] |
void get_stream_info::setServerUri | ( | const QString | value | ) | [virtual] |
See property serverUri.
Definition at line 44 of file get_stream_info.cpp.
References streamripper_base::abortStreamripper(), EQUAL, internal_serverUri, NOT, and ripping::resetStreamripperProperties().
Referenced by settings_stream_widget_connection::helper_setServerUri_connectMProcess_startRecognization().
QString get_stream_info::workingDirectory | ( | ) | const [protected, virtual] |
This object provides a temporary directory as working directory. The directory will be removed automatically then this object is destroyed.
Implements ripping.
Definition at line 70 of file get_stream_info.cpp.
References m_tempDir.
QString get_stream_info::internal_serverUri [private] |
Used internally to store the property serverUri.
Definition at line 84 of file get_stream_info.h.
Referenced by setServerUri().
KTempDir get_stream_info::m_tempDir [private] |
Access to the temporary directory that is used as working directory for Streamripper.
Definition at line 87 of file get_stream_info.h.
Referenced by workingDirectory().
QString get_stream_info::serverUri [read, write] |
This property holds the URI to which streamripper will connect.
Initialization value: an empty string
virtual QString serverUri() const
ripping::serverUri()
(which was originally protected). At the same time it is used as read function for this property. virtual void setServerUri(const QString value)
resetStreamripperProperties()
.qint64 internal_serverUri
Definition at line 56 of file get_stream_info.h.