#include <get_streamripper_version.h>
Public Slots | |
virtual void | setStreamripperCommand (const QString &value) |
Signals | |
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 |
Properties | |
QString | streamripperCommand |
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.
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.
get_streamripper_version::~get_streamripper_version | ( | ) | [virtual] |
The destructor.
Definition at line 39 of file get_streamripper_version.cpp.
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().
void get_streamripper_version::interpretate_console_output | ( | QStringList & | stringList | ) | [protected, virtual] |
Tries to recognize the version number.
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().
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] |
See property streamripperCommand.
Definition at line 48 of file get_streamripper_version.cpp.
References streamripper_base::abortStreamripper(), internal_streamripperCommand, streamripper_base::startStreamripper(), and stillSignalExpected.
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
value | the version number of type VersionNumber |
Referenced by binaryStateChange(), and interpretate_console_output().
QString get_streamripper_version::internal_streamripperCommand [protected] |
Used internally to store the property streamripperCommand.
Definition at line 93 of file get_streamripper_version.h.
Referenced by setStreamripperCommand().
bool get_streamripper_version::stillSignalExpected [protected] |
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().
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.
virtual QString streamripperCommand() const
virtual void setStreamripperCommand(const QString value)
QString internal_streamripperCommand
Definition at line 59 of file get_streamripper_version.h.