CardDoneMessage

Since: BlackBerry 10.0.0

#include <bb/system/CardDoneMessage>

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

Encapsulates information sent from a card to the entity that invoked it when the card has completed its activity or has been closed.


Overview

Public Functions Index

CardDoneMessage ()
CardDoneMessage (const CardDoneMessage &other)
~CardDoneMessage ()
QStringdata () const
QStringdataType () const
CardDoneMessage &operator= (const CardDoneMessage &other)
QStringreason () const
voidsetData (const QString &data)
voidsetDataType (const QString &dataType)
voidsetReason (const QString &reason)

Public Functions

CardDoneMessage ()

Creates a new CardDoneMessage object.

Since:

BlackBerry 10.0.0

CardDoneMessage (

Creates a copy of an existing CardDoneMessage object.

Parameters
other

The source CardDoneMessage object to copy.

Since:

BlackBerry 10.0.0

~CardDoneMessage ()

Destructor.

Since:

BlackBerry 10.0.0

QString data ()

Returns the payload of this message.

The type of the data can be determined using dataType().

Return:

The payload of this message or an empty string if the receiver does not require any data.

Since:

BlackBerry 10.0.0

QString dataType ()

Returns the type of data the message holds.

Return:

The type of the data included in the message.

Since:

BlackBerry 10.0.0

CardDoneMessage & operator= (

Copies the data of an existing CardDoneMessage object to this object.

Parameters
other

The source CardDoneMessage object to copy.

Return:

The CardDoneMessage instance.

Since:

BlackBerry 10.0.0

QString reason ()

Returns the reason that the card was closed.

Return:

The reason the card was closed.

Since:

BlackBerry 10.0.0

void setData (

Sets the payload of this message.

Parameters
data

The payload of this message. The type of the data can be set using setDataType().

Since:

BlackBerry 10.0.0

void setDataType (

Sets the type of the data included in the message.

Parameters
dataType

The type of the data in the message.

Since:

BlackBerry 10.0.0

void setReason (

Sets the reason the card was closed.

Parameters
reason

The reason the card was closed.

Since:

BlackBerry 10.0.0

Last modified: 2014-09-30



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

comments powered by Disqus