HeaderDataItem

Since: BlackBerry 10.2.0

#include <bb/cascades/datamanager/HeaderDataItem>

To link against this class, add the following line to your .pro file: LIBS += -lbbcascadesdatamanager

Class representing a single header data item.


Overview

Inheritance

bb::cascades::datamanager::DataItem
bb::cascades::datamanager::HeaderDataItem

Public Functions Index

HeaderDataItem (const QString &keyId, const DataRevision &revision, int childCount, const QVariant &payload)
HeaderDataItem (const DataItem &data, int childCount)
HeaderDataItem ()
HeaderDataItem (const HeaderDataItem &other)
virtual ~HeaderDataItem ()
intchildCount () const
HeaderDataItem &operator= (const HeaderDataItem &other)
voidsetChildCount (int childCount)
virtual QStringtoString () const
DataItem (const QString &keyId, const DataRevision &revision, const QVariant &payload)Inherited
DataItem ()Inherited
DataItem (const DataItem &other)Inherited
QStringkeyId () const Inherited
DataItem &operator= (const DataItem &other)Inherited
QVariantpayload () const Inherited
DataRevisionrevision () const Inherited
voidsetKeyId (const QString &keyId)Inherited
voidsetPayload (const QVariant &payload)Inherited
voidsetRevision (const DataRevision &revision)Inherited

Public Functions

HeaderDataItem (

Constructor.

Parameters
keyId

The Id for this item.

revision

The revision for this item.

childCount

The child count for this item.

payload

The data payload for this item.

Since:

BlackBerry 10.2.0

HeaderDataItem (

Constructor.

Parameters
data

The data item to obtain key, revision, payload data from.

childCount

The child count for this item.

Since:

BlackBerry 10.2.0

HeaderDataItem ()

Constructor.

Since:

BlackBerry 10.2.0

HeaderDataItem (

Copy constructor.

Parameters
other

The HeaderDataItem object to copy. This follows the rules of implicit sharing.

Since:

BlackBerry 10.2.0

virtual~HeaderDataItem ()

Destructor.

Since:

BlackBerry 10.2.0

int childCount ()

Get the child count for this header item.

Return:

The child count.

Since:

BlackBerry 10.2.0

HeaderDataItem & operator= (

Assignment operator.

Parameters
other

The HeaderDataItem object to assign from. This follows the rules of implicit sharing.

Return:

The revised HeaderDataItem instance.

Since:

BlackBerry 10.2.0

void setChildCount (
  • intchildCount)

Set the child count for this header item.

Parameters
childCount

The child count.

Since:

BlackBerry 10.2.0

virtualQString toString ()

String representation of this header item.

Return:

the string representation.

Since:

BlackBerry 10.2.0

DataItem (Inherited

Constructor.

Parameters
keyId

The Id for this item.

revision

The revision for this item.

payload

The data payload for this item.

Since:

BlackBerry 10.2.0

DataItem ()Inherited

Constructor.

Since:

BlackBerry 10.2.0

DataItem (Inherited

Copy constructor.

Parameters
other

The DataItem object to copy. This follows the rules of implicit sharing.

Since:

BlackBerry 10.2.0

QString keyId ()Inherited

Get the Id for this item.

This value must uniquely identify this item in the data source across data updates.

Return:

The Id.

Since:

BlackBerry 10.2.0

DataItem & operator= (Inherited

Assignment operator.

Parameters
other

The DataItem object to assign from. This follows the rules of implicit sharing.

Return:

The revised DataItem instance.

Since:

BlackBerry 10.2.0

QVariant payload ()Inherited

Get the data payload for this item.

Return:

The data payload.

Since:

BlackBerry 10.2.0

DataRevision revision ()Inherited

Get the revision value for this item.

This value must uniquely identify a discreet state of this item in the data source, including the states of all of the items properties.

Return:

The revision.

Since:

BlackBerry 10.2.0

void setKeyId (Inherited

Set the Id for this item.

This value must uniquely identify this item in the data source across data updates.

Parameters
keyId

The Id for this item.

Since:

BlackBerry 10.2.0

void setPayload (Inherited

Set the data payload for this item.

Parameters
payload

The data payload for this item.

Since:

BlackBerry 10.2.0

void setRevision (Inherited

Set the revision value for this item.

This value must uniquely identify a discreet state of this item in the data source, including the states of all of the items properties.

Parameters
revision

The revision for this item.

Since:

BlackBerry 10.2.0

Last modified: 2014-03-13

comments powered by Disqus