#include <propertyvalue.h>
Public Types | |
enum | propertyValueType { value, error, unset } |
Public Member Functions | |
PropertyValue () | |
virtual | ~PropertyValue () |
Public Attributes | |
QVariant | internalValue |
propertyValueType | type |
QString | formatedValue |
Qt::Alignment | formatedValueAlignment |
QString | toolTip |
QString | whatsThis |
It doesn't provide much intellegence. Think of it not so much like a class, but more like just a struct. You have to set all members manually to give them useful values.
int id = qRegisterMetaType<PropertyValue>("PropertyValue");
at the begin of your main function. This will register the type also for this use case. id
will contain the type identifier used by QMetaObject. However, for most cases id
isn't intresting.
Definition at line 47 of file propertyvalue.h.
Enum for determinating the type of value that this object holds.
Definition at line 62 of file propertyvalue.h.
PropertyValue::PropertyValue | ( | ) |
Definition at line 23 of file propertyvalue.cpp.
References formatedValueAlignment, type, and unset.
PropertyValue::~PropertyValue | ( | ) | [virtual] |
Definition at line 29 of file propertyvalue.cpp.
QString PropertyValue::formatedValue |
Provides a well formated and localised version of internalValue ready for displaying.
Default value: none
Definition at line 84 of file propertyvalue.h.
Referenced by get_streamripper_version::binaryStateChange(), stationlistModel::columnInfo(), settings_general_widget_general::displayVersionNumber(), ripping::formatedBitrate(), ripping::formatedDataSize(), ripping::formatedError(), ripping::formatedMetaInterval(), ripping::formatedMetaInterval_milliSeconds(), ripping::formatedRelayPort(), ripping::formatedServerName(), ripping::formatedSong(), ripping::formatedStatus(), ripping::formatedStreamName(), radioStation::formatedUri(), stationlistModel::helper_firstIsAfterSecond(), get_streamripper_version::interpretate_console_output(), settings_stream_widget_connection::load_info_from_kcfg_and_start_recognization(), settings_stream_widget_connection::setBitrate(), settings_stream_widget_connection::setMetaInterval(), settings_stream_widget_connection::setServerName(), and settings_stream_widget_connection::setStreamName().
Qt::Alignment PropertyValue::formatedValueAlignment |
Provides information about the alignment that should be used for formatedValue. It's of type Qt::Alignment (see http://doc.trolltech.com/main-snapshot/qt.html#AlignmentFlag-enum for details).
Default value: (Qt::AlignLeft | Qt::AlignVCenter)
Definition at line 92 of file propertyvalue.h.
Referenced by ripping::formatedBitrate(), ripping::formatedDataSize(), ripping::formatedMetaInterval(), ripping::formatedMetaInterval_milliSeconds(), ripping::formatedRelayPort(), and PropertyValue().
QVariant PropertyValue::internalValue |
This member holds the "real" value.
Default value: none
Definition at line 73 of file propertyvalue.h.
Referenced by stationlistModel::columnInfo(), ripping::doesTheUserWantsThatTheStreamIsRipping(), ripping::formatedBitrate(), ripping::formatedDataSize(), ripping::formatedError(), ripping::formatedMetaInterval(), ripping::formatedMetaInterval_milliSeconds(), ripping::formatedRelayPort(), ripping::formatedServerName(), ripping::formatedSong(), ripping::formatedStatus(), ripping::formatedStreamName(), radioStation::formatedUri(), stationlistModel::helper_firstIsAfterSecond(), stationlistModel::helper_toLongLong(), get_streamripper_version::interpretate_console_output(), ripping::refreshRelayPort(), settings_stream_widget_connection::setBitrate(), ripping::setBitrate(), radioStation::setBitrate(), ripping::setDataSize(), ripping::setError(), settings_stream_widget_connection::setMetaInterval(), ripping::setMetaInterval(), radioStation::setMetaInterval(), listenSupport::setRelayPort(), settings_stream_widget_connection::setServerName(), ripping::setServerName(), radioStation::setServerName(), ripping::setSong(), ripping::setStatus(), settings_stream_widget_connection::setStreamName(), ripping::setStreamName(), and radioStation::setStreamName().
QString PropertyValue::toolTip |
Provides a tool tip for the value.
Default value: none
Definition at line 97 of file propertyvalue.h.
Referenced by get_streamripper_version::binaryStateChange(), stationlistModel::columnInfo(), ripping::formatedBitrate(), ripping::formatedDataSize(), ripping::formatedError(), ripping::formatedRelayPort(), ripping::formatedStatus(), and ripping::formatedStreamName().
Provides information about the "type" of data in internalValue.
Default value: PropertyValue::unset
Definition at line 78 of file propertyvalue.h.
Referenced by get_streamripper_version::binaryStateChange(), stationlistModel::columnInfo(), settings_general_widget_general::displayVersionNumber(), ripping::formatedBitrate(), ripping::formatedDataSize(), ripping::formatedError(), ripping::formatedMetaInterval(), ripping::formatedMetaInterval_milliSeconds(), ripping::formatedRelayPort(), ripping::formatedServerName(), ripping::formatedSong(), ripping::formatedStatus(), ripping::formatedStreamName(), radioStation::formatedUri(), stationlistModel::helper_firstIsAfterSecond(), get_streamripper_version::interpretate_console_output(), settings_stream_widget_connection::load_info_from_kcfg_and_start_recognization(), PropertyValue(), ripping::refreshRelayPort(), settings_stream_widget_connection::setBitrate(), settings_stream_widget_connection::setMetaInterval(), listenSupport::setRelayPort(), settings_stream_widget_connection::setServerName(), and settings_stream_widget_connection::setStreamName().
QString PropertyValue::whatsThis |
Provides a text for the "What's this" help function.
Default value: none
Definition at line 102 of file propertyvalue.h.
Referenced by get_streamripper_version::binaryStateChange(), stationlistModel::columnInfo(), ripping::formatedBitrate(), ripping::formatedDataSize(), ripping::formatedError(), ripping::formatedRelayPort(), ripping::formatedStatus(), and ripping::formatedStreamName().