get_streamripper_version Class Reference

This class reads the version info from streamripper. More...

#include <get_streamripper_version.h>

Inheritance diagram for get_streamripper_version:

Inheritance graph
Collaboration diagram for get_streamripper_version:

Collaboration graph

List of all members.

Public Slots

virtual void setStreamripperCommand (const QString &value)


void versionNumberDeterminated (PropertyValue value)

Public Member Functions

 get_streamripper_version (QObject *parent=0)
virtual ~get_streamripper_version ()
virtual QString streamripperCommand () const

Protected Slots

void binaryStateChange (QProcess::ProcessState newState)

Protected Member Functions

virtual void interpretate_console_output (QStringList &stringList)
virtual QStringList parameterList () const

Protected Attributes

QString internal_streamripperCommand
bool stillSignalExpected


QString streamripperCommand

Detailed Description

This class reads the version info from streamripper.

It calls streamripper with the parameter -v. Just connect to the signal vversionNumberDeterminated() and than set the property streamripperCommand.

Definition at line 33 of file get_streamripper_version.h.

Constructor & Destructor Documentation

get_streamripper_version::get_streamripper_version ( QObject *  parent = 0  ) 

Constructor of the class.

parent Sets the parent of this object.

Definition at line 30 of file get_streamripper_version.cpp.

References binaryStateChange(), and console_reader::m_process.

Here is the call graph for this function:

get_streamripper_version::~get_streamripper_version (  )  [virtual]

The destructor.

Definition at line 39 of file get_streamripper_version.cpp.

Member Function Documentation

void get_streamripper_version::binaryStateChange ( QProcess::ProcessState  newState  )  [protected, slot]

Used internally to emit an empty versionNumberDeterminated() if the binary terminates running and so far nothing was recognized.

Definition at line 94 of file get_streamripper_version.cpp.

References PropertyValue::error, PropertyValue::formatedValue, stillSignalExpected, PropertyValue::toolTip, PropertyValue::type, versionNumberDeterminated(), and PropertyValue::whatsThis.

Referenced by get_streamripper_version().

Here is the call graph for this function:

Here is the caller graph for this function:

void get_streamripper_version::interpretate_console_output ( QStringList &  stringList  )  [protected, virtual]

Tries to recognize the version number.

See also:

Implements console_reader.

Definition at line 68 of file get_streamripper_version.cpp.

References streamripper_base::abortStreamripper(), PropertyValue::formatedValue, PropertyValue::internalValue, stillSignalExpected, PropertyValue::type, PropertyValue::value, and versionNumberDeterminated().

Here is the call graph for this function:

QStringList get_streamripper_version::parameterList (  )  const [protected, virtual]


Implements streamripper_base.

Definition at line 58 of file get_streamripper_version.cpp.

void get_streamripper_version::setStreamripperCommand ( const QString &  value  )  [virtual, slot]

virtual QString get_streamripper_version::streamripperCommand (  )  const [virtual]

See property streamripperCommand.

Implements streamripper_base.

void get_streamripper_version::versionNumberDeterminated ( PropertyValue  value  )  [signal]

This signal is emitted when

  • streamripper was recognized with a corresponding version number or
  • if recognization was aborted without a result.
value the version number of type VersionNumber
See also:

Referenced by binaryStateChange(), and interpretate_console_output().

Here is the caller graph for this function:

Member Data Documentation

Used internally to store the property streamripperCommand.

Definition at line 93 of file get_streamripper_version.h.

Referenced by setStreamripperCommand().

Used internally to store the information if we have still to emit the signal versionNumberDeterminated() or not.

Definition at line 96 of file get_streamripper_version.h.

Referenced by binaryStateChange(), interpretate_console_output(), and setStreamripperCommand().

Property Documentation

QString get_streamripper_version::streamripperCommand [read, write]

This property holds the command for which this object will try to find out if it is streamripper and, if yes which version number it has.

  • read:
     virtual QString streamripperCommand() const 
  • write:
     virtual void setStreamripperCommand(const QString value) 
    If you change the property, a new recognization will be started: the given command is invoked with the parameter "-v" (see parameterList()). This class only reads the very first line of the output produced when invoking the command. If it starts with "Streamripper " then the rest of the line is considered as version number and the signal versionNumberDeterminated(VersionNumber value) is emitted. After reading the first line of the output, the process is killed anyway (independent from if a version was recognized or not). If the process aborts without recognizing it as streamripper (with a version number), than the signal is emitted with an empty value.
See also:

Definition at line 59 of file get_streamripper_version.h.

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