|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.ericsson.hosasdk.api.hui.IpAppHosaUIManagerAdapter
tourguide.SMSProcessor
Implements handlers for SMS interactions. This class is heavily based on a sample code provided with NRG SDK.
| Constructor Summary | |
SMSProcessor(com.ericsson.hosasdk.api.hui.IpHosaUIManager aHosaUIManager,
ServiceLogic service)
Initializes instance variables. |
|
| Method Summary | |
void |
hosaSendMessageErr(int anAssignmentID,
com.ericsson.hosasdk.api.TpHosaSendMessageError[] anErrorList)
Processes a failed SMS send notification. |
void |
hosaSendMessageRes(int anAssignmentID,
com.ericsson.hosasdk.api.TpHosaSendMessageReport[] aResponseList)
Processes a sucessful SMS send notification. |
com.ericsson.hosasdk.api.ui.IpAppUI |
reportEventNotification(com.ericsson.hosasdk.api.ui.TpUIIdentifier anUserInteraction,
com.ericsson.hosasdk.api.ui.TpUIEventNotificationInfo anEventInfo,
int anAssignmentID)
Called by the UI manager to report a notification. |
com.ericsson.hosasdk.api.ui.IpAppUI |
reportNotification(com.ericsson.hosasdk.api.ui.TpUIIdentifier anUserInteraction,
com.ericsson.hosasdk.api.ui.TpUIEventInfo anEventInfo,
int anAssignmentID)
Called by the UI manager to report a notification. |
void |
sendSMS(java.lang.String aSender,
java.lang.String aReceiver,
java.lang.String aMessageContent)
Sends SMS. |
int |
startNotifications(java.lang.String aDestinationAddress)
Enables SMS receiving (starts notifications). |
void |
stopNotifications(int anAssignmentId)
Disables SMS receiving (stops notifications). |
| Methods inherited from class com.ericsson.hosasdk.api.hui.IpAppHosaUIManagerAdapter |
dispose, hosaMessageDeliveryNotification, notImplemented, userInteractionAborted, userInteractionNotificationContinued, userInteractionNotificationInterrupted |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ericsson.hosasdk.api.hui.IpAppHosaUIManager |
hosaMessageDeliveryNotification, userInteractionAborted, userInteractionNotificationContinued, userInteractionNotificationInterrupted |
| Constructor Detail |
public SMSProcessor(com.ericsson.hosasdk.api.hui.IpHosaUIManager aHosaUIManager,
ServiceLogic service)
aHosaUIManager - a User Interactions manager (NRG object).service - the service logic object that will process SMS messages.| Method Detail |
public void hosaSendMessageErr(int anAssignmentID,
com.ericsson.hosasdk.api.TpHosaSendMessageError[] anErrorList)
hosaSendMessageErr in interface com.ericsson.hosasdk.api.hui.IpAppHosaUIManagerIpAppHosaUIManager
public void hosaSendMessageRes(int anAssignmentID,
com.ericsson.hosasdk.api.TpHosaSendMessageReport[] aResponseList)
hosaSendMessageRes in interface com.ericsson.hosasdk.api.hui.IpAppHosaUIManagerIpAppHosaUIManager
public com.ericsson.hosasdk.api.ui.IpAppUI reportEventNotification(com.ericsson.hosasdk.api.ui.TpUIIdentifier anUserInteraction,
com.ericsson.hosasdk.api.ui.TpUIEventNotificationInfo anEventInfo,
int anAssignmentID)
reportNotification , but it is not invoked by
the current NRG.
reportEventNotification in interface com.ericsson.hosasdk.api.hui.IpAppHosaUIManager
public com.ericsson.hosasdk.api.ui.IpAppUI reportNotification(com.ericsson.hosasdk.api.ui.TpUIIdentifier anUserInteraction,
com.ericsson.hosasdk.api.ui.TpUIEventInfo anEventInfo,
int anAssignmentID)
reportNotification in interface com.ericsson.hosasdk.api.hui.IpAppHosaUIManagerIpAppHosaUIManager
public void sendSMS(java.lang.String aSender,
java.lang.String aReceiver,
java.lang.String aMessageContent)
aSender - sender of the SMSaMessageContent - textual content of the SMSpublic int startNotifications(java.lang.String aDestinationAddress)
aDestinationAddress - destination address (a 'phone number') of the service
public void stopNotifications(int anAssignmentId)
anAssignmentId - the ID obtained from the startNotifications method
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||