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 () |
int | childCount () const |
HeaderDataItem & | operator= (const HeaderDataItem &other) |
void | setChildCount (int childCount) |
virtual QString | toString () const |
DataItem (const QString &keyId, const DataRevision &revision, const QVariant &payload)![]() | |
DataItem ()![]() | |
DataItem (const DataItem &other)![]() | |
QString | keyId () const ![]() |
DataItem & | operator= (const DataItem &other)![]() |
QVariant | payload () const ![]() |
DataRevision | revision () const ![]() |
void | setKeyId (const QString &keyId)![]() |
void | setPayload (const QVariant &payload)![]() |
void | setRevision (const DataRevision &revision)![]() |
Public Functions
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. |
BlackBerry 10.2.0
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. |
BlackBerry 10.2.0
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. |
BlackBerry 10.2.0
virtual
Destructor.
BlackBerry 10.2.0
int
Get the child count for this header item.
The child count.
BlackBerry 10.2.0
HeaderDataItem &
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. |
The revised HeaderDataItem instance.
BlackBerry 10.2.0
void
Set the child count for this header item.
Parameters | |
---|---|
childCount |
The child count. |
BlackBerry 10.2.0
virtualQString
Convert this header item to a string representation.
The string representation.
BlackBerry 10.2.0
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. |
BlackBerry 10.2.0
Copy constructor.
QString 
Get the ID for this item.
This value must uniquely identify this item in the data source across data updates.
The ID for this item.
BlackBerry 10.2.0
DataItem & 
Assignment operator.
QVariant 
Get the data payload for this item.
The data payload for this item.
BlackBerry 10.2.0
DataRevision 
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.
The revision for this item.
BlackBerry 10.2.0
void 
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. |
BlackBerry 10.2.0
void 
Set the data payload for this item.
Parameters | |
---|---|
payload |
The data payload for this item. |
BlackBerry 10.2.0
void 
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. |
BlackBerry 10.2.0