PushStatus
#include <bb/network/PushStatus>
To link against this class, add the following line to your .pro file: LIBS += -lbbnetwork
Describes the status of a Push request.
The code attribute, when greater than 0, indicates the reason for the failure. The complete set of codes are defined in PushErrorCode.
BlackBerry 10.0.0
Public Functions Index
| PushStatus () | |
| PushStatus (int code) | |
| PushStatus (const PushStatus &other) | |
| PushStatus & | operator= (const PushStatus &other) |
| ~PushStatus () | |
| int | code () const |
| QString | errorDescription () const |
| void | setCode (int code) |
| void | setErrorDescription (const QString &errorDescription) |
| bool | isError () const |
Public Functions
Creates a new PushStatus object to store the response code from the PPG.
| Parameters | |
|---|---|
| code |
The response code associated with the status. |
BlackBerry 10.0.0
Creates a copy of of an existing PushStatus object.
| Parameters | |
|---|---|
| other |
The existing PushStatus object that will be copied. |
BlackBerry 10.0.0
PushStatus &
Copies the data from an existing PushStatus object.
| Parameters | |
|---|---|
| other |
The existing PushStatus object that will be copied. |
A new PushStatus object containing the copied data.
BlackBerry 10.0.0
Destructor.
BlackBerry 10.0.0
int
Gets the response code associated with the PushStatus object.
code Returns the response code associated with the PushStatus. 0 indicates a success, while any other value indicates a failure. By calling errorDescription() on the PushStatus you can find out more information about the error.
BlackBerry 10.0.0
QString
Gets the error description associated with the PushStatus object.
errorDescription Additional information about the error.
BlackBerry 10.0.0
void
Sets the response code.
| Parameters | |
|---|---|
| code |
The response code associated with the status. |
BlackBerry 10.0.0
void
Sets the error description.
| Parameters | |
|---|---|
| errorDescription |
Error details associated with the status. |
BlackBerry 10.0.0
bool
Specifies whether the PushStatus contains an error.
true if there is an error, false otherwise
BlackBerry 10.0.0