get_stream_info Class Reference

This class detects meta data from streams. More...

#include <get_stream_info.h>

Inheritance diagram for get_stream_info:

Inheritance graph
Collaboration diagram for get_stream_info:

Collaboration graph

List of all members.

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


QString serverUri

Private Attributes

QString internal_serverUri
KTempDir m_tempDir

Detailed Description

This class detects meta data from streams.

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

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]

See property serverUri.

Implements ripping.

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

See also:

Implements ripping.

Definition at line 70 of file get_stream_info.cpp.

References m_tempDir.

Member Data Documentation

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().

Property Documentation

QString get_stream_info::serverUri [read, write]

This property holds the URI to which streamripper will connect.

Initialization value: an empty string

  • read:
     virtual QString serverUri() const 
    This (public) function implements ripping::serverUri() (which was originally protected). At the same time it is used as read function for this property.
  • write:
     virtual void setServerUri(const QString value) 
    If the new value differs from the old one, this function will also kill() the streamripper process (to prevent that the process continues with the outdated URI) and will call resetStreamripperProperties().
See also:

Definition at line 56 of file get_stream_info.h.

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