okteta
#include <dummydatainformation.h>
Public Member Functions | |
DummyDataInformation (DataInformationBase *parent, const QString &name=QString()) | |
virtual | ~DummyDataInformation () |
virtual bool | canHaveChildren () const |
virtual DataInformation * | childAt (unsigned int) const |
virtual unsigned int | childCount () const |
virtual BitCount64 | childPosition (const DataInformation *, Okteta::Address) const |
virtual QWidget * | createEditWidget (QWidget *parent) const |
virtual QVariant | data (int column, int role) const |
virtual QVariant | dataFromWidget (const QWidget *w) const |
uint | dummyIndex () const |
virtual Qt::ItemFlags | flags (int column, bool fileLoaded=true) const |
virtual int | indexOf (const DataInformation *const) const |
virtual bool | isDummy () const |
virtual qint64 | readData (Okteta::AbstractByteArrayModel *input, Okteta::Address address, BitCount64 bitsRemaining, quint8 *bitOffset) |
virtual bool | setData (const QVariant &value, Okteta::AbstractByteArrayModel *out, Okteta::Address address, BitCount64 bitsRemaining, quint8 bitOffset) |
void | setDummyIndex (uint newIndex) |
virtual void | setWidgetData (QWidget *w) const |
virtual BitCount32 | size () const |
virtual QScriptValue | toScriptValue (QScriptEngine *engine, ScriptHandlerInfo *handlerInfo) |
Public Member Functions inherited from DataInformation | |
DataInformation (const QString &name, DataInformationBase *parent=NULL) | |
virtual | ~DataInformation () |
void | beginRead () |
DataInformationEndianess | byteOrder () const |
virtual DataInformation * | child (const QString &name) const |
virtual DataInformation * | clone () const =0 |
QSysInfo::Endian | effectiveByteOrder () const |
QString | fullObjectPath () const |
bool | hasBeenUpdated () const |
bool | hasBeenValidated () const |
virtual bool | isTopLevel () const |
QDebug | logError () const |
ScriptLogger::LogLevel | loggedData () const |
ScriptLogger * | logger () const |
QDebug | logInfo () const |
QDebug | logWarn () const |
DataInformation * | mainStructure () |
QString | name () const |
DataInformationBase * | parent () const |
virtual BitCount64 | positionInFile (Okteta::Address start) const |
virtual void | resetValidationState () |
int | row () const |
void | setByteOrder (DataInformationEndianess newEndianess) |
void | setCustomTypeName (const QString &customTypeName) |
void | setLoggedData (ScriptLogger::LogLevel lvl) const |
void | setName (const QString &newName) |
void | setParent (DataInformationBase *newParent) |
void | setToStringFunction (const QScriptValue &value) |
void | setUpdateFunc (const QScriptValue &func) |
void | setValidationFunc (const QScriptValue &func) |
virtual QString | sizeString () const |
virtual QString | tooltipString () const |
TopLevelDataInformation * | topLevelDataInformation () const |
QScriptValue | toScriptValue (TopLevelDataInformation *top) |
QScriptValue | toStringFunction () const |
QString | typeName () const |
QScriptValue | updateFunc () const |
QString | validationError () const |
QScriptValue | validationFunc () const |
bool | validationSuccessful () const |
QString | valueString () const |
bool | wasAbleToRead () const |
Public Member Functions inherited from DataInformationBase | |
DataInformationBase () | |
virtual | ~DataInformationBase () |
ArrayDataInformation * | asArray () |
const ArrayDataInformation * | asArray () const |
AbstractBitfieldDataInformation * | asBitfield () |
const AbstractBitfieldDataInformation * | asBitfield () const |
DataInformation * | asDataInformation () |
const DataInformation * | asDataInformation () const |
DummyDataInformation * | asDummy () |
const DummyDataInformation * | asDummy () const |
EnumDataInformation * | asEnum () |
const EnumDataInformation * | asEnum () const |
PointerDataInformation * | asPointer () |
const PointerDataInformation * | asPointer () const |
PrimitiveDataInformation * | asPrimitive () |
const PrimitiveDataInformation * | asPrimitive () const |
StringDataInformation * | asString () |
const StringDataInformation * | asString () const |
StructureDataInformation * | asStruct () |
const StructureDataInformation * | asStruct () const |
TaggedUnionDataInformation * | asTaggedUnion () |
const TaggedUnionDataInformation * | asTaggedUnion () const |
TopLevelDataInformation * | asTopLevel () |
const TopLevelDataInformation * | asTopLevel () const |
UnionDataInformation * | asUnion () |
const UnionDataInformation * | asUnion () const |
virtual bool | isArray () const |
virtual bool | isBitfield () const |
virtual bool | isEnum () const |
virtual bool | isPointer () const |
virtual bool | isPrimitive () const |
virtual bool | isString () const |
virtual bool | isStruct () const |
virtual bool | isTaggedUnion () const |
virtual bool | isUnion () const |
Additional Inherited Members | |
Public Types inherited from DataInformation | |
enum | Columns { ColumnName = 0, ColumnType, ColumnValue, COLUMN_COUNT } |
enum | DataInformationEndianess { EndianessFromSettings = 0, EndianessInherit, EndianessLittle, EndianessBig } |
Protected Member Functions inherited from DataInformation | |
DataInformation (const DataInformation &) | |
void | setAdditionalFunction (AdditionalData::AdditionalDataType entry, const QScriptValue &value, const char *name) |
Static Protected Member Functions inherited from DataInformation | |
static QVariant | eofReachedData (int role) |
Protected Attributes inherited from DataInformation | |
AdditionalData | mAdditionalData |
DataInformationEndianess | mByteOrder:2 |
bool | mHasBeenUpdated:1 |
bool | mHasBeenValidated:1 |
ScriptLogger::LogLevel | mLoggedData:2 |
QString | mName |
DataInformationBase * | mParent |
bool | mValidationSuccessful:1 |
bool | mWasAbleToRead:1 |
Detailed Description
Definition at line 30 of file dummydatainformation.h.
Constructor & Destructor Documentation
DummyDataInformation::DummyDataInformation | ( | DataInformationBase * | parent, |
const QString & | name = QString() |
||
) |
Definition at line 28 of file dummydatainformation.cpp.
|
inlinevirtual |
Definition at line 35 of file dummydatainformation.h.
Member Function Documentation
|
inlinevirtual |
true for unions and structs and arrays
Implements DataInformation.
Definition at line 52 of file dummydatainformation.h.
|
inlinevirtual |
Implements DataInformation.
Definition at line 54 of file dummydatainformation.h.
|
inlinevirtual |
Implements DataInformation.
Definition at line 53 of file dummydatainformation.h.
|
inlinevirtual |
- Parameters
-
child the direct child we want to find the address for start the start of the root element
- Returns
- the address of
child
in the file
Implements DataInformation.
Definition at line 55 of file dummydatainformation.h.
create a QWidget for the QItemDelegate
Implements DataInformation.
Definition at line 83 of file dummydatainformation.cpp.
|
virtual |
get the necessary data (for the model)
Reimplemented from DataInformation.
Definition at line 40 of file dummydatainformation.cpp.
|
virtual |
get the needed data from the widget
Implements DataInformation.
Definition at line 78 of file dummydatainformation.cpp.
|
inline |
Definition at line 60 of file dummydatainformation.h.
|
virtual |
Reimplemented from DataInformation.
Definition at line 45 of file dummydatainformation.cpp.
|
inlinevirtual |
Find the index of a DataInformation in this object, needed to calculate the row.
- Returns
- the index of
data
or -1 if not found
Implements DataInformation.
Definition at line 56 of file dummydatainformation.h.
|
inlinevirtual |
Reimplemented from DataInformationBase.
Definition at line 107 of file dummydatainformation.h.
|
virtual |
Reads the necessary data from input
and returns the number of bytes read.
- Parameters
-
input the byte array to read from address the starting offset to read from bitsRemaining the number of bits remaining in out
bitOffset the bits that have already been read from the current byte (should be modified in this method)
- Returns
- the number of bits read or
-1
if none were read
Implements DataInformation.
Definition at line 61 of file dummydatainformation.cpp.
|
virtual |
Writes the current data contained in this object to out.
Implements DataInformation.
Definition at line 55 of file dummydatainformation.cpp.
|
inline |
Definition at line 59 of file dummydatainformation.h.
|
virtual |
initialize the delegate widget with the correct data
Implements DataInformation.
Definition at line 73 of file dummydatainformation.cpp.
|
virtual |
the size in bits of this element
Implements DataInformation.
Definition at line 68 of file dummydatainformation.cpp.
|
virtual |
This method is virtual since DummyDataInformation has to override it.
- Parameters
-
engine the script engine handlerInfo the object holding the script classes
- Returns
- a QScriptValue wrapping this object
Reimplemented from DataInformation.
Definition at line 50 of file dummydatainformation.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.