Note that Getting data is different than Importing data. When getting data, the handler decides where it finds the data (file, database, hardware acquisition), whereas when importing, the handler always takes the data from the Filesystem.
The required data is returned as data objects in the response request.
Capture image or video | |
| This verb is based on ALP_EXG2_GET_ACTIONCLASS. This service launches an application to capture a media file. The subject must be set to the type of the media you want to capture. This will typically be "image/jpeg" or some video type.
It is optionally possible to specify a filename where to store the captured file by passing a path in ALP_EXG2_AUDIO_FILEPATH_STRING_PARAM. If this parameter exists, its value is the path to store the recorded file. On output, the value is updated to be the full path to the recorded filename. This is useful when the requester just needs a reference to the file and not the actual data. | |
| #define | ALP_EXG2_AUDIO_FILEPATH_STRING_PARAM "filePath" |
| String parameter (optional) : path where to store recorded file. | |
| #define | ALP_EXG2_GET_CAPTURE_VERB ALP_EXG2_GET_ACTIONCLASS"/capture" |
| VERB: capture image or video file. | |
Get objects from storage : Contacts options | |
| This describes the options available for ALP_EXG2_GET_FROMSTORAGE_VERB when you invoke it with the ALP_EXG2_CONTACTS_SUBJECT subject to use the Contacts services. Here are all the options you can use to customize a get contact request:
| |
| #define | ALP_EXG2_CONTACTS_CATEGORY_OK_INT_PARAM "categoryOK" |
| Int parameter (optional) : set to non-zero to allow the user to select an entire category. | |
| #define | ALP_EXG2_CONTACTS_CATEGORY_SELECTED_INT_PARAM "categorySelected" |
| Int parameter (returned) : category the user selected (0 = All, -1 = Unfiled, otherwise the category ID). | |
| #define | ALP_EXG2_CONTACTS_CATEGORY_WAS_SELECTED_INT_PARAM "categoryWasSelected" |
| Int parameter (returned) : If ALP_EXG2_CONTACTS_CATEGORY_OK_INT_PARAM, this will tell you if a category was selected. 0 = No, 1 = Yes. | |
| #define | ALP_EXG2_CONTACTS_CONTACT_LUID_INT_PARAM "contactLuid" |
| Int parameter (returned) : this is the Luid of the selected contact. 0 on errors or user cancel. | |
| #define | ALP_EXG2_CONTACTS_CONTACT_TYPE_STRING_PARAM "contactType" |
| String parameter (optional / returned) : restrict picker to show this type of contact. | |
| #define | ALP_EXG2_CONTACTS_DISTRIBUTION_CONTACT_TYPE_STRING_PARAM "distributionType" |
| String parameter (optional) : If present, used to limit the info returned to the desired distribution type. See contacts_dml.h for valid values. | |
| #define | ALP_EXG2_CONTACTS_DISTRIBUTION_OK_INT_PARAM "distributionOK" |
| Int parameter (optional) : if non zero, allow the user to select a distribution group. | |
| #define | ALP_EXG2_CONTACTS_DISTRIBUTION_OK_INT_PARAM_VALUE_NO 0 |
| #define | ALP_EXG2_CONTACTS_DISTRIBUTION_OK_INT_PARAM_VALUE_ONLY 2 |
| #define | ALP_EXG2_CONTACTS_DISTRIBUTION_OK_INT_PARAM_VALUE_YES 1 |
| #define | ALP_EXG2_CONTACTS_DISTRIBUTION_SELECTED_INT_PARAM "distributionSelected" |
| Int parameter (returned) : If ALP_EXG2_CONTACTS_DISTRIBUTION_OK_INT_PARAM is non-zero and ALP_EXG2_CONTACTS_DISTRIBUTION_WAS_SELECTED_INT_PARAM is 1, this will contain the distribution ID selected. | |
| #define | ALP_EXG2_CONTACTS_DISTRIBUTION_WAS_SELECTED_INT_PARAM "distributionWasSelected" |
| Int parameter (returned) : If ALP_EXG2_CONTACTS_CATEGORY_OK_INT_PARAM, this will tell you if a distribution group was selected. 0 = No, 1 = Yes. | |
| #define | ALP_EXG2_CONTACTS_FRIENDLY_NAME_STRING_PARAM "friendlyName" |
| String parameter (optional) : If contactType specified, this is the friendly name of the selected contact. | |
| #define | ALP_EXG2_CONTACTS_SUBJECT "application/vcf" |
| SUBJECT: Get data from the Contacts database. | |
| #define | ALP_EXG2_EDITABLE_INT_PARAM "editable" |
| Used to specify whether a displayed data item should be editable. The parameter should be an zero or nonzero. | |
| #define | ALP_EXG2_IDENTIFIER_STRING_PARAM "identifier" |
| Used to identify specify an existing item to act on. | |
Get objects from storage : General | |
| This verb is based on ALP_EXG2_GET_ACTIONCLASS. This service will show the necessary UI to let the user select data (from a database, file system, hardware...) of the type requested by the subject.
The data is then returned as a data object. | |
| #define | ALP_EXG2_GET_FROMSTORAGE_VERB ALP_EXG2_GET_ACTIONCLASS"/storage" |
| VERB: get from storage. | |
|
|
String parameter (optional) : path where to store recorded file.
|
|
|
Int parameter (optional) : set to non-zero to allow the user to select an entire category.
|
|
|
Int parameter (returned) : category the user selected (0 = All, -1 = Unfiled, otherwise the category ID).
|
|
|
Int parameter (returned) : If ALP_EXG2_CONTACTS_CATEGORY_OK_INT_PARAM, this will tell you if a category was selected. 0 = No, 1 = Yes.
|
|
|
Int parameter (returned) : this is the Luid of the selected contact. 0 on errors or user cancel.
|
|
|
String parameter (optional / returned) : restrict picker to show this type of contact.
|
|
|
String parameter (optional) : If present, used to limit the info returned to the desired distribution type. See contacts_dml.h for valid values.
|
|
|
Int parameter (optional) : if non zero, allow the user to select a distribution group.
|
|
|
|
|
|
|
|
|
|
|
|
Int parameter (returned) : If ALP_EXG2_CONTACTS_DISTRIBUTION_OK_INT_PARAM is non-zero and ALP_EXG2_CONTACTS_DISTRIBUTION_WAS_SELECTED_INT_PARAM is 1, this will contain the distribution ID selected.
|
|
|
Int parameter (returned) : If ALP_EXG2_CONTACTS_CATEGORY_OK_INT_PARAM, this will tell you if a distribution group was selected. 0 = No, 1 = Yes.
|
|
|
String parameter (optional) : If contactType specified, this is the friendly name of the selected contact.
|
|
|
SUBJECT: Get data from the Contacts database.
|
|
|
Used to specify whether a displayed data item should be editable. The parameter should be an zero or nonzero.
|
|
|
VERB: capture image or video file.
|
|
|
VERB: get from storage.
|
|
|
Used to identify specify an existing item to act on.
|
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.