#include <propertyvalue.h>
Public Types | |
enum | propertyValueType { value, error, unset } |
Public Member Functions | |
PropertyValue () | |
PropertyValue (const PropertyValue &value) | |
virtual | ~PropertyValue () |
PropertyValue & | operator= (const PropertyValue &value) |
bool | operator== (const PropertyValue value) const |
bool | operator!= (const PropertyValue value) const |
operator QString () const | |
Public Attributes | |
QVariant | internalValue |
propertyValueType | type |
QString | formatedValue |
Qt::Alignment | formatedValueAlignment |
QString | toolTip |
QString | whatsThis |
Private Member Functions | |
void | helper_copyFromHere (const PropertyValue &value) |
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<VersionNumber>();
This will register the type also for this use case. id
will contain the type identifier used by QMetaObject.
Definition at line 47 of file propertyvalue.h.
Enum for determinating the type of value that this object holds.
Definition at line 75 of file propertyvalue.h.
PropertyValue::PropertyValue | ( | ) |
Definition at line 23 of file propertyvalue.cpp.
References formatedValueAlignment, type, and unset.
PropertyValue::PropertyValue | ( | const PropertyValue & | value | ) |
Definition at line 29 of file propertyvalue.cpp.
References helper_copyFromHere().
PropertyValue::~PropertyValue | ( | ) | [virtual] |
Definition at line 34 of file propertyvalue.cpp.
PropertyValue & PropertyValue::operator= | ( | const PropertyValue & | value | ) |
Definition at line 38 of file propertyvalue.cpp.
References helper_copyFromHere().
bool PropertyValue::operator== | ( | const PropertyValue | value | ) | const |
Definition at line 44 of file propertyvalue.cpp.
References formatedValue, formatedValueAlignment, internalValue, toolTip, type, and whatsThis.
bool PropertyValue::operator!= | ( | const PropertyValue | value | ) | const |
Definition at line 55 of file propertyvalue.cpp.
PropertyValue::operator QString | ( | ) | const |
void PropertyValue::helper_copyFromHere | ( | const PropertyValue & | value | ) | [private] |
Internally used to copy another object to this object.
Definition at line 65 of file propertyvalue.cpp.
References formatedValue, formatedValueAlignment, internalValue, toolTip, type, and whatsThis.
Referenced by operator=(), and PropertyValue().
QVariant PropertyValue::internalValue |
This member holds the "real" value.
Default value: none
Definition at line 86 of file propertyvalue.h.
Referenced by ripping::doesTheUserWantsThatTheStreamIsRipping(), ripping::formatedBitrate(), ripping::formatedDataSize(), ripping::formatedError(), ripping::formatedMetaInterval(), ripping::formatedRelayPort(), ripping::formatedServerName(), ripping::formatedSong(), ripping::formatedStatus(), ripping::formatedStreamName(), helper_copyFromHere(), get_streamripper_version::interpretate_console_output(), operator==(), settings_stream_widget_connection::setBitrate(), ripping::setBitrate(), ripping::setDataSize(), ripping::setError(), settings_stream_widget_connection::setMetaInterval(), ripping::setMetaInterval(), ripping::setRelayPort(), settings_stream_widget_connection::setServerName(), ripping::setServerName(), ripping::setSong(), ripping::setStatus(), settings_stream_widget_connection::setStreamName(), and ripping::setStreamName().
Provides information about the "type" of data in internalValue.
Default value: PropertyValue::unset
Definition at line 91 of file propertyvalue.h.
Referenced by get_streamripper_version::binaryStateChange(), settings_general_widget_general::displayVersionNumber(), ripping::formatedBitrate(), ripping::formatedDataSize(), ripping::formatedError(), ripping::formatedMetaInterval(), ripping::formatedRelayPort(), ripping::formatedServerName(), ripping::formatedSong(), ripping::formatedStatus(), ripping::formatedStreamName(), helper_copyFromHere(), get_streamripper_version::interpretate_console_output(), settings_stream_widget_connection::load_info_from_kcfg_and_start_recognization(), operator==(), PropertyValue(), settings_stream_widget_connection::setBitrate(), settings_stream_widget_connection::setMetaInterval(), settings_stream_widget_connection::setServerName(), and settings_stream_widget_connection::setStreamName().
QString PropertyValue::formatedValue |
Provides a well formated and localised version of internalValue ready for displaying.
Default value: none
Definition at line 97 of file propertyvalue.h.
Referenced by get_streamripper_version::binaryStateChange(), settings_general_widget_general::displayVersionNumber(), ripping::formatedBitrate(), ripping::formatedDataSize(), ripping::formatedError(), ripping::formatedMetaInterval(), ripping::formatedRelayPort(), ripping::formatedServerName(), ripping::formatedSong(), ripping::formatedStatus(), ripping::formatedStreamName(), helper_copyFromHere(), get_streamripper_version::interpretate_console_output(), settings_stream_widget_connection::load_info_from_kcfg_and_start_recognization(), operator QString(), operator==(), 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 105 of file propertyvalue.h.
Referenced by ripping::formatedBitrate(), ripping::formatedDataSize(), ripping::formatedMetaInterval(), ripping::formatedRelayPort(), helper_copyFromHere(), operator==(), and PropertyValue().
QString PropertyValue::toolTip |
Provides a tool tip for the value.
Default value: none
Definition at line 110 of file propertyvalue.h.
Referenced by get_streamripper_version::binaryStateChange(), ripping::formatedBitrate(), ripping::formatedDataSize(), ripping::formatedError(), ripping::formatedRelayPort(), ripping::formatedStatus(), ripping::formatedStreamName(), helper_copyFromHere(), and operator==().
QString PropertyValue::whatsThis |
Provides a text for the "What's this" help function.
Default value: none
Definition at line 115 of file propertyvalue.h.
Referenced by get_streamripper_version::binaryStateChange(), ripping::formatedBitrate(), ripping::formatedDataSize(), ripping::formatedError(), ripping::formatedRelayPort(), ripping::formatedStatus(), ripping::formatedStreamName(), helper_copyFromHere(), and operator==().