MenuItemInvokeParams
#include <bb/system/MenuItemInvokeParams>
To link against this class, add the following line to your .pro file: LIBS += -lbbsystem
The parameters required to invoke an action related to a MenuItem.
BlackBerry 10.0.0
Public Functions Index
| MenuItemInvokeParams () | |
| MenuItemInvokeParams (const MenuItemInvokeParams &other) | |
| ~MenuItemInvokeParams () | |
| MenuItemInvokeParams & | operator= (const MenuItemInvokeParams &other) |
| InvokeTarget::Type | type () const |
| QString | target () const |
| QString | action () const |
| QString | mimeType () const |
| QUrl | uri () const |
| bb::system::FileTransferMode::Type | fileTransferMode () const |
| QByteArray | data () const |
| QVariantMap | metadata () const |
| bb::system::SecurityPerimeter::Type | perimeter () const |
| bool | isValid () const |
Public Functions
MenuItemInvokeParams &
Copies the data from an existing MenuItemInvokeParams object to this object.
| Parameters | |
|---|---|
| other |
The source MenuItemInvokeParams object to copy. |
The MenuItemInvokeParams instance.
BlackBerry 10.0.0
InvokeTarget::Type
Returns the type of the target.
The kind of process represented by the target. The value returned is valid only if the instance is valid (see isValid()). See bb::system::InvokeTarget::Type for the list of possible targets.
BlackBerry 10.0.0
QString
Returns the identity of the target (as stated in its BAR manifest).
Use this value with bb::system::InvokeRequest::setTarget().
The identity of the target, or an empty string if this instance is not valid (see isValid()).
BlackBerry 10.0.0
QString
Returns the action to be performed by the target of the invocation request.
The action to be performed by the target, or an empty string if this instance is not valid (see isValid()).
BlackBerry 10.0.0
QString
Returns the MIME type of the data to be acted on.
The MIME type of the data, or the empty string if this instance is not valid (see isValid()).
BlackBerry 10.0.0
QUrl
Returns the URI that references the data to be passed into the invocation request.
bb::system::FileTransferMode::Type
Returns the file transfer mode that will be applied to the invocation.
The file transfer mode will be applied if the scheme of the URI is "file:///" and the path references a file that is not in the shared area.
the file transfer mode that will be applied to the invocation. See bb::system::FileTransferMode for the list of transfer modes.
BlackBerry 10.0.0
QByteArray
Returns the data that is to be sent to the target upon invocation.
The data to send to the target, or an empty QByteArray if this instance is not valid (see isValid()).
BlackBerry 10.0.0
QVariantMap
Returns the metadata associated with the invocation.
Metadata is optional and can be included to pass additional information to the target. It will be encoded as a JSON object and sent to the target.
The metadata.
BlackBerry 10.0.0
bb::system::SecurityPerimeter::Type
Returns the perimeter in which the action will be invoked.
The perimeter in which the action will be invoked. See bb::system::SecurityPerimeter::Type for the list of perimeters.
BlackBerry 10.0.0
bool
Indicates if this object contains valid invocation data.
true if this object is valid, false otherwise.
BlackBerry 10.0.0