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

This class represents 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 (

Constructs a HeaderDataItem given an ID, revision, child count, and payload.

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 (

Constructs a HeaderDataItem given a DataItem and child count.

Parameters
data

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

childCount

The child count for this item.

Since:

BlackBerry 10.2.0

HeaderDataItem ()

Constructs a HeaderDataItem.

Since:

BlackBerry 10.2.0

HeaderDataItem (

Copy constructor.

This function constructs a HeaderDataItem containing exactly the same values as the provided HeaderDataItem.

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.

This function assigns values from the given HeaderDataItem to the returned HeaderDataItem.

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 ()

Convert this header item to a string representation.

Return:

The string representation.

Since:

BlackBerry 10.2.0

DataItem (Inherited

Constructs a DataItem given an ID, revision, and payload.

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

Constructs a DataItem.

Since:

BlackBerry 10.2.0

DataItem (Inherited

Copy constructor.

This function constructs a DataItem containing exactly the same values as the provided DataItem.

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 for this item.

Since:

BlackBerry 10.2.0

DataItem & operator= (Inherited

Assignment operator.

This function assigns values from the given DataItem to the returned DataItem.

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 for this item.

Since:

BlackBerry 10.2.0

DataRevision revision ()Inherited

Get the revision value for this item.

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

Return:

The revision for this item.

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 discrete state of this item in the data source, including the states of all properties of the item.

Parameters
revision

The revision for this item.

Since:

BlackBerry 10.2.0

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus