Package com.unipro.smlib

Interface Summary
ACKListener Interface for ACK listeners.
To create ACK listener class implement this interface.
SmsListener Interface for message listeners.
To create message listener class implement this interface.
 

Class Summary
ACKReport Class represents input ACK report of submitted message (acknowledgment about submitting message).
ACKReport object is passed as a parameter to ACKListener.proccessACKReport() method.
To process ACK reports register ACKListener in the SmsManager.
Configurator Class represents settings for smlib.
Configurator object must be passed to the init() method of SmsManager.
InMessage Class represents incoming message.
InMessage object is passed as a parameter to SmsListener.proccessMessage() method.
To process in messages register SmsListener in the SmsManager.
OutMessage Class represents outgoing SMS message.
Outgoing message can be represented as OutMessage instance and sent by sendMessage() method of SmsManager class.
SmsManager Note: In the next version of SMLib this class will not extend java.lang.Thread and implement java.lang.Runnable
Please, plan your business logic accordingly


Main class of SMLib.
 

Exception Summary
MobileException Occurs when connected mobile phone cannot execute some AT commands, which are necessary for sending or receiving of the messages and ACKs.
PortConnectionException Occurs when the connection with mobile phone using data cable cannot be established.
SendException Method sendMessage() of SmsManager throws this exception when there is an error of sending message (Problems with 'W' connection).
ValidationException Exception occurs when invalid parameter of OutMessage or Configurator is set.
Additional information about SMLib exceptions: SMLib exceptions.