QRODS
Public Slots | Public Member Functions | List of all members
QMetadataModel Class Reference
Inheritance diagram for QMetadataModel:

Public Slots

void entryRemoved (MetadataEntry *entry)
 QMetadataModelPrivate::entryRemoved Removes a metadata entry. More...
 
void metaDataReceived (QList< MetadataEntry * > *)
 QMetadataModelPrivate::metaDataReceived Confirms that the metadata has been received. More...
 
void entryAdded (MetadataEntry *entry)
 QMetadataModelPrivate::entryAdded Appends a metadata entry. More...
 

Public Member Functions

 QMetadataModel (QObject *parent=0)
 QMetadataModel::QMetadataModel Constructor method. More...
 
void setDataPath (QString &dataObj)
 QMetadataModel::setDataPath Sets data path. More...
 
QMetadataModelPrivategetPrivateInstance ()
 
int rowCount (const QModelIndex &parent) const
 QMetadataModel::rowCount Returns the number of rows. More...
 
int columnCount (const QModelIndex &parent) const
 QMetadataModel::columnCount Returns the number of columns. More...
 
QVariant data (const QModelIndex &index, int role) const
 QMetadataModel::data Returns the metadata atribute data. More...
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const
 QMetadataModel::headerData Returns the metadata header data. More...
 
QModelIndex index (int row, int column, const QModelIndex &parent) const
 QMetadataModel::index Creates an index. More...
 

Constructor & Destructor Documentation

QMetadataModel::QMetadataModel ( QObject *  parent = 0)
explicit

QMetadataModel::QMetadataModel Constructor method.

This is a constructor for QMetadataModel class.

Parameters
parentthe parent Qt widget.

Member Function Documentation

int QMetadataModel::columnCount ( const QModelIndex &  parent) const

QMetadataModel::columnCount Returns the number of columns.

Returns the number of columns.

Parameters
parentthe parent.
Returns
returns the number of columns.
QVariant QMetadataModel::data ( const QModelIndex &  index,
int  role 
) const

QMetadataModel::data Returns the metadata atribute data.

Returns the metadata atribute data.

Parameters
indexa QModelIndex.
rolean integer.
Returns
returns returns the metadata information as a QVariant.
void QMetadataModel::entryAdded ( MetadataEntry entry)
slot

QMetadataModelPrivate::entryAdded Appends a metadata entry.

Updates the metadata model after adding a metadata entry.

Parameters
entrya MetadataEntry.
void QMetadataModel::entryRemoved ( MetadataEntry entry)
slot

QMetadataModelPrivate::entryRemoved Removes a metadata entry.

Updates the metadata model after removing a metadata entry.

Parameters
entrya MetadataEntry.
QVariant QMetadataModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const

QMetadataModel::headerData Returns the metadata header data.

Returns the metadata header data as a QVariant.

Parameters
sectionan integer that represents the section.
orientationthe horizontal and vertical orientation.
rolean integer that is the role.
Returns
returns the metadata header data as a QVariant.
QModelIndex QMetadataModel::index ( int  row,
int  column,
const QModelIndex &  parent 
) const

QMetadataModel::index Creates an index.

Creates an index.

Parameters
rowthe row.
columnthe column
parentthe parent.
Returns
returns a QModelIndex.
void QMetadataModel::metaDataReceived ( QList< MetadataEntry * > *  list)
slot

QMetadataModelPrivate::metaDataReceived Confirms that the metadata has been received.

Confirms that the metadata has been received.

Parameters
lista list of MetadataEntry.
int QMetadataModel::rowCount ( const QModelIndex &  parent) const

QMetadataModel::rowCount Returns the number of rows.

Returns the number of rows.

Parameters
parentthe parent.
Returns
returns the number of rows.
void QMetadataModel::setDataPath ( QString &  dataObj)

QMetadataModel::setDataPath Sets data path.

Sets data path.

Parameters
dataObja string that is the data object path.

The documentation for this class was generated from the following files: