Public Member Functions | |
AbstractProtocolConfigForm (QWidget *parent=0) | |
Constructs the widget. | |
virtual | ~AbstractProtocolConfigForm () |
Destroys the widget. | |
virtual void | loadWidget (AbstractProtocol *) |
Loads data from the protocol using it's fieldData() method into this widget. | |
virtual void | storeWidget (AbstractProtocol *) |
Stores data from this widget into the protocol using the protocol's setFieldData() method. | |
uint | hexStrToUInt (QString text, bool *ok=NULL) |
Convenience Method - can be used by storeWidget() implementations. | |
quint64 | hexStrToUInt64 (QString text, bool *ok=NULL) |
Convenience Method - can be used by storeWidget() implementations. | |
Static Public Member Functions | |
static AbstractProtocolConfigForm * | createInstance () |
Allocates and returns a new instance of the widget. |
AbstractProtocolConfigForm::AbstractProtocolConfigForm | ( | QWidget * | parent = 0 | ) | [inline] |
Constructs the widget.
virtual AbstractProtocolConfigForm::~AbstractProtocolConfigForm | ( | ) | [inline, virtual] |
Destroys the widget.
static AbstractProtocolConfigForm* AbstractProtocolConfigForm::createInstance | ( | ) | [inline, static] |
Allocates and returns a new instance of the widget.
Caller is responsible for freeing up after use. Subclasses MUST implement this function
uint AbstractProtocolConfigForm::hexStrToUInt | ( | QString | text, |
bool * | ok = NULL |
||
) | [inline] |
Convenience Method - can be used by storeWidget() implementations.
quint64 AbstractProtocolConfigForm::hexStrToUInt64 | ( | QString | text, |
bool * | ok = NULL |
||
) | [inline] |
Convenience Method - can be used by storeWidget() implementations.
virtual void AbstractProtocolConfigForm::loadWidget | ( | AbstractProtocol * | ) | [inline, virtual] |
Loads data from the protocol using it's fieldData() method into this widget.
Any conversion to user friendly display/editing formats (e.g. hex format) SHOULD be done by this method.
Subclasses MUST implement this function. See the SampleProtocol for an example
virtual void AbstractProtocolConfigForm::storeWidget | ( | AbstractProtocol * | ) | [inline, virtual] |
Stores data from this widget into the protocol using the protocol's setFieldData() method.
Field values MUST be converted from any user friendly display/editing formats (e.g. hex format) to simple Qt-style integers/strings before passing to setFieldData()
Subclasses MUST implement this function. See the SampleProtocol for an example