// in your new handle notification function my_handle_notification_function(int cargc, char **cargv) { AlpNotifyLaunch notifyLaunchParamDetails; AlpPostalEnvelope envelope; AlpPostalProperty* property; alp_postal_envelope_init(&envelope); cargc--; cargv++; alp_notify_details(*cargv, ¬ifyLaunchParamDetails); cargc--; cargv++; // check if the notification type is new incoming envelope if (strcmp(*cargv, ALP_NOTIFY_LAUNCH_TYPE ALP_NOTIFY_EVENT_POSTAL_MMS_ENVELOPE_NEW) == 0 ) { AlpNotifyEventEnvelopeNew* envelopeNewEventP = (AlpNotifyEventEnvelopeNewIncoming*) &(notifyLaunchParamDetails.details); if(envelopeNewEventP != NULL) { //retrieve the corresponding envelope from the Postal database alp_postal_envelope_get(ALP_POSTAL_SERVICE_ID_MMS, envelopeNewEventP->envelopeId, ALP_POSTAL_ADDRESS_NONE_MASK, false, &envelope); // check if the content has not been downloaded alp_postal_envelope_get_property(&envelope, ALP_POSTAL_PROPERTY_ENVELOPE_MESSAGE_COMPLETE, &property); // if the message has not been downloaded retrieve the content from the MMSC alp_postal_mms_session_receive_envelope(yourCurrentSessionId, envelopeNewEventP->envelopeId, yourReceiveCallbackFunctionP); } } } // give the hand back to notify manager alp_notify_done(arg[], 0, 0);
|
|
Postal MMS Session Receive Envelopes request async response Callback.
|
|
|
Postal MMS Session Send Forward Request async response Callback.
|
|
|
Postal MMS Session Send Read Report request async response Callback.
|
|
|
Cancel a send forward request.
|
|
|
Cancel a receive envelope request.
|
|
|
Cancel a send read report request.
|
|
||||||||||||||||
|
Try to retrieve a MMS envelope not yet downloaded (deferred retrieval) - async request.
|
|
||||||||||||||||
|
Try to send a forward request to a not downloaded envelope (ALP_POSTAL_PROPERTY_ENVELOPE_MESSAGE_COMPLETE = false) - async request.
|
|
||||||||||||||||
|
Try to send a read report envelope - async request.
|
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.