AlpPostalEnumerator entry_enum; AlpPostalSmsExchangeEntry entry; alp_postal_sms_exchange_entry_id_t entry_id; AlpPostalProperty* p; alp_postal_sms_exchange_table_entry_init_enumerator(&entry_enum); alp_postal_sms_exchange_table_entry_get_enumerator(&entry_enum); while(alp_postal_sms_exchange_table_entry_get_next(&entry_enum, &entry) != POSTAL_STATUS_DB_NO_RECORD) { alp_postal_sms_exchange_table_entry_get_property(&entry, ALP_POSTAL_SMS_PROPERTY_EXCHANGE_PORT, &p); printf("ALP_POSTAL_SMS_PROPERTY_EXCHANGE_PORT = %d.", p->value.asInteger); alp_postal_sms_exchange_table_entry_get_property(&entry, ALP_POSTAL_SMS_PROPERTY_EXCHANGE_MIMETYPE, &p); printf("ALP_POSTAL_SMS_PROPERTY_EXCHANGE_MIMETYPE = %s.", p->value.asString); alp_postal_sms_exchange_table_entry_get_property(&entry, ALP_POSTAL_SMS_PROPERTY_EXCHANGE_FORCE_DELETE, &p); printf("ALP_POSTAL_SMS_PROPERTY_EXCHANGE_FORCE_DELETE = %s.", (p->value.asBool) ? "true":"false" ); alp_postal_sms_exchange_table_entry_free(&entry); } alp_postal_sms_exchange_table_entry_enumerator_release(&entry_enum); alp_postal_sms_exchange_table_entry_init(&entry); alp_postal_sms_exchange_table_entry_set_property(&entry, ALP_POSTAL_SMS_PROPERTY_EXCHANGE_PORT, (void*)123, 0); alp_postal_sms_exchange_table_entry_set_property(&entry, ALP_POSTAL_SMS_PROPERTY_EXCHANGE_MIMETYPE, "test/mime_type", strlen("test/mime_type")); alp_postal_sms_exchange_table_entry_set_property(&entry, ALP_POSTAL_SMS_PROPERTY_EXCHANGE_FORCE_DELETE, (void*)0, 0); alp_postal_sms_exchange_table_entry_add_new(&entry); alp_postal_sms_exchange_table_entry_get_id(&entry, &entry_id); alp_postal_sms_exchange_table_entry_set_property(&entry, ALP_POSTAL_SMS_PROPERTY_EXCHANGE_MIMETYPE, "test2/mime_type2", strlen("test2/mime_type2")); alp_postal_sms_exchange_table_entry_update(entry_id, &entry); alp_postal_sms_exchange_table_entry_delete (entry_id); alp_postal_sms_exchange_table_entry_free(&entry);
SMS EXCHANGE MIME TYPES | |
| Defines the SMS exchange mime types. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_CELLBROADCAST "sms/cbs" |
| CellBroadcast SMS message mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_CLASS0 "sms/c0s" |
| Class 0 SMS message mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_CLASS2 "sms/c2s" |
| Class 2 SMS message mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_EMI "sms/emi" |
| Email waiting indication SMS message mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_EMS "sms/ems" |
| Reassembled EMS message mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_FXI "sms/fxi" |
| Fax waiting indication SMS message mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_OTI "sms/oti" |
| Other waiting indication SMS message mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_REASSEMBLED "sms/sms" |
| Reassembled SMS message mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_REPORT "sms/rps" |
| Delivery report SMS message mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_SEGMENTED "sms/psms" |
| Segmented part SMS mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_VCAL "text/x-vcalendar" |
| VCal over SMS. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_VCARD "text/x-vcard" |
| VCard over SMS. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_VMI "sms/vmi" |
| Voicemail waiting indication SMS message mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_WAP_PUSH "application/x-wap-push" |
| Wap push SMS message mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_WAP_PUSH_HTTP "application/x-wap-push-http" |
| Wap push OTA HTTP SMS message mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_WAP_PUSH_HTTPS "application/x-wap-push-https" |
| Wap push OTA HTTP secure SMS message mime type. | |
| #define | ALP_POSTAL_SMS_EXCHANGE_MIME_TYPE_WAP_PUSH_SEC "application/x-wap-push-sec" |
| Wap push secure SMS message mime type. | |
SMS EXCHANGE PROPERTIES | |
| Defines the SMS exchange properties. | |
| #define | ALP_POSTAL_SMS_PROPERTY_EXCHANGE_FORCE_DELETE ALP_POSTAL_PROPERTY(ALP_POSTAL_SERVICE_ID_SMS, ALP_POSTAL_SMS_SERVICE_CLASS_ID_EXCHANGE, ALP_POSTAL_PROPERTY_TYPE_BOOLEAN, 3) |
| Force delete a boolean that deletes the dispatched message if no consumer can be found. | |
| #define | ALP_POSTAL_SMS_PROPERTY_EXCHANGE_MIME_TYPE ALP_POSTAL_PROPERTY(ALP_POSTAL_SERVICE_ID_SMS, ALP_POSTAL_SMS_SERVICE_CLASS_ID_EXCHANGE, ALP_POSTAL_PROPERTY_TYPE_C_STRING, 2) |
| Mime type a string that represents the associated exchange mime type of an exchange entry. | |
| #define | ALP_POSTAL_SMS_PROPERTY_EXCHANGE_PORT ALP_POSTAL_PROPERTY(ALP_POSTAL_SERVICE_ID_SMS, ALP_POSTAL_SMS_SERVICE_CLASS_ID_EXCHANGE, ALP_POSTAL_PROPERTY_TYPE_INT, 1) |
| Port number an integer that represents the port number of an exchange entry (can be NULL). | |
Defines | |
| #define | POSTAL_SMS_EXGMGR_DISPATCH_SMS_ACCESS_METHOD "ACCESS" |
| Postal SMS Exchange "ACCESS" proprietary dispatching Method. | |
| #define | POSTAL_SMS_EXGMGR_DISPATCH_SMS_ACTION_CLASS "DISPSMS" |
| Postal SMS Exchange "Dispatch SMS" Action Class. | |
| #define | POSTAL_SMS_EXGMGR_DISPATCH_SMS_FD_DATA_NAME "SMS Data" |
| Postal SMS Exchange "Dispatch" parameter name to be used to retrieve data file decriptor. | |
| #define | POSTAL_SMS_EXGMGR_DISPATCH_SMS_FD_DATA_OBJECT_TYPE "ReassembledSmsPdu" |
| Postal SMS Exchange data file decriptor parameter object type. | |
| #define | POSTAL_SMS_EXGMGR_DISPATCH_SMS_ORIGINATING_ADDRESS_NAME "Originating Address" |
| Postal SMS Exchange "Dispatch" parameter name to be used to retrieve the originating address. | |
| #define | POSTAL_SMS_EXGMGR_DISPATCH_SMS_STRUCT_URL_NAME "Struct URL" |
| Postal SMS Exchange "Dispatch" parameter name to be used to retrieve the URL related to a new SMS. This URL can be used with the alp_postal_sms_exchange_get_sms_parameters_from_url(...) helper API to retrieve the SMS data into a formatted structure. | |
| #define | POSTAL_SMS_EXGMGR_DISPATCH_SMS_VERB POSTAL_SMS_EXGMGR_DISPATCH_SMS_ACTION_CLASS"/"POSTAL_SMS_EXGMGR_DISPATCH_SMS_ACCESS_METHOD |
| Postal SMS Exchange Dispatching SMS Verb. | |
| #define | POSTAL_SMS_EXGMGR_STORE_PARAM_URL_MAX_LENGTH ALP_POSTAL_BODYPART_URI_PROPERTY_MAX_LENGTH |
| Postal SMS Exchange file descriptor path max length. | |
| #define | POSTAL_SMS_EXGMGR_STORE_SMS_VOBJECT_FD_DATA_NAME "VObject Data" |
| Postal SMS Exchange "Store" parameter name to be used to retrieve "VObject" data file decriptor. | |
| #define | POSTAL_STATUS_SMS_EXGMGR_HANDLER_DID_NOT_CONSUME ALP_POSTAL_ERROR_DECLARE(ALP_CLASS_SMS_EXCHANGE, 0x01) |
| handler did not consume the request (used by handlers that accept multiple registrants) | |
Typedefs | |
| typedef alp_postal_object_id_t | alp_postal_sms_exchange_entry_id_t |
| Postal SMS exchange entry identifier type. | |
| typedef _AlpPostalPropertyList | AlpPostalSmsExchangeEntry |
| Postal SMS exchange entry. | |
Functions | |
| alp_status_t | alp_postal_sms_exchange_free_sms_parameters (AlpTelSmsMessage *iSmsParametersP, char *iDeleteUrlP) |
| Free the SMS parameters previously get from an url and delete the url if needed. | |
| alp_status_t | alp_postal_sms_exchange_get_sms_parameters_from_url (char *iUrlP, AlpTelSmsMessage **oSmsParametersPP) |
| Get the SMS parameters of a dispatched message from an url. | |
| alp_status_t | alp_postal_sms_exchange_table_entry_add_new (AlpPostalSmsExchangeEntry *iExchangeEntryP) |
| Add an exchange table entry to the exchange table list stored. | |
| alp_status_t | alp_postal_sms_exchange_table_entry_delete (alp_postal_sms_exchange_entry_id_t iExchangeEntryId) |
| Delete a stored exchange table entry. | |
| alp_status_t | alp_postal_sms_exchange_table_entry_enumerator_release (AlpPostalEnumerator *iEnumeratorP) |
| Release an sms exchange entry enumerator. | |
| alp_status_t | alp_postal_sms_exchange_table_entry_free (AlpPostalSmsExchangeEntry *iExchangeEntryP) |
| Free the given exchange table entry. | |
| alp_status_t | alp_postal_sms_exchange_table_entry_get_enumerator (AlpPostalEnumerator *oEnumeratorP) |
| Get an enumerator of the stored exchange table entries. | |
| alp_status_t | alp_postal_sms_exchange_table_entry_get_id (AlpPostalSmsExchangeEntry *iExchangeEntryP, alp_postal_sms_exchange_entry_id_t *oExchangeEntryP) |
| Get the id of an exchange table entry structure provided by the server, otherwise id won't exist. | |
| alp_status_t | alp_postal_sms_exchange_table_entry_get_next (AlpPostalEnumerator *iEnumeratorP, AlpPostalSmsExchangeEntry *ioExchangeEntryP) |
| Return the exchange table entry for the current position and increment the enumerator. | |
| alp_status_t | alp_postal_sms_exchange_table_entry_get_property (AlpPostalSmsExchangeEntry *iExchangeEntryP, alp_postal_property_id_t iSmsExchangeEntryPropertyId, AlpPostalProperty **ioExchangeEntryPropertyPP) |
| Retrieve a property from an exchange table entry. | |
| alp_status_t | alp_postal_sms_exchange_table_entry_init (AlpPostalSmsExchangeEntry *iExgEntryP) |
| Initialize an sms exchange entry. | |
| alp_status_t | alp_postal_sms_exchange_table_entry_init_enumerator (AlpPostalEnumerator *iEnumeratorP) |
| Initialize an sms exchange entry enumerator. MUST be called before alp_postal_sms_exchange_table_entry_get_enumerator API. | |
| alp_status_t | alp_postal_sms_exchange_table_entry_set_property (AlpPostalSmsExchangeEntry *ioSmsExchangeEntryP, alp_postal_property_id_t iSmsExchangeEntryPropertyId, alp_postal_property_const_value_t iSmsExchangeEntryPropertyDataP, uint16_t iSmsExchangeEntryPropertyDataSize) |
| Set a property to a Postal SmsExchangeEntry. | |
| alp_status_t | alp_postal_sms_exchange_table_entry_update (alp_postal_sms_exchange_entry_id_t iExchangeEntryId, AlpPostalSmsExchangeEntry *iExchangeEntryP) |
| Update a stored exchange table entry. | |
|
|
CellBroadcast SMS message mime type.
|
|
|
Class 0 SMS message mime type.
|
|
|
Class 2 SMS message mime type.
|
|
|
Email waiting indication SMS message mime type.
|
|
|
Reassembled EMS message mime type.
|
|
|
Fax waiting indication SMS message mime type.
|
|
|
Other waiting indication SMS message mime type.
|
|
|
Reassembled SMS message mime type.
|
|
|
Delivery report SMS message mime type.
|
|
|
Segmented part SMS mime type.
|
|
|
VCal over SMS.
|
|
|
VCard over SMS.
|
|
|
Voicemail waiting indication SMS message mime type.
|
|
|
Wap push SMS message mime type.
|
|
|
Wap push OTA HTTP SMS message mime type.
|
|
|
Wap push OTA HTTP secure SMS message mime type.
|
|
|
Wap push secure SMS message mime type.
|
|
|
Force delete a boolean that deletes the dispatched message if no consumer can be found.
|
|
|
Mime type a string that represents the associated exchange mime type of an exchange entry.
|
|
|
Port number an integer that represents the port number of an exchange entry (can be NULL).
|
|
|
Postal SMS Exchange "ACCESS" proprietary dispatching Method.
|
|
|
Postal SMS Exchange "Dispatch SMS" Action Class.
|
|
|
Postal SMS Exchange "Dispatch" parameter name to be used to retrieve data file decriptor.
|
|
|
Postal SMS Exchange data file decriptor parameter object type.
|
|
|
Postal SMS Exchange "Dispatch" parameter name to be used to retrieve the originating address.
|
|
|
Postal SMS Exchange "Dispatch" parameter name to be used to retrieve the URL related to a new SMS. This URL can be used with the alp_postal_sms_exchange_get_sms_parameters_from_url(...) helper API to retrieve the SMS data into a formatted structure.
|
|
|
Postal SMS Exchange Dispatching SMS Verb.
|
|
|
Postal SMS Exchange file descriptor path max length.
|
|
|
Postal SMS Exchange "Store" parameter name to be used to retrieve "VObject" data file decriptor.
|
|
|
handler did not consume the request (used by handlers that accept multiple registrants)
|
|
|
Postal SMS exchange entry identifier type.
|
|
|
Postal SMS exchange entry.
|
|
||||||||||||
|
Free the SMS parameters previously get from an url and delete the url if needed.
|
|
||||||||||||
|
Get the SMS parameters of a dispatched message from an url.
|
|
|
Add an exchange table entry to the exchange table list stored.
|
|
|
Delete a stored exchange table entry.
|
|
|
Release an sms exchange entry enumerator.
|
|
|
Free the given exchange table entry.
|
|
|
Get an enumerator of the stored exchange table entries.
|
|
||||||||||||
|
Get the id of an exchange table entry structure provided by the server, otherwise id won't exist.
|
|
||||||||||||
|
Return the exchange table entry for the current position and increment the enumerator.
|
|
||||||||||||||||
|
Retrieve a property from an exchange table entry.
|
|
|
Initialize an sms exchange entry.
|
|
|
Initialize an sms exchange entry enumerator. MUST be called before alp_postal_sms_exchange_table_entry_get_enumerator API.
|
|
||||||||||||||||||||
|
Set a property to a Postal SmsExchangeEntry.
|
|
||||||||||||
|
Update a stored exchange table entry.
|
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.