|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marre.sms.SmsConcatMessage org.marre.sms.SmsTextMessage org.marre.sms.SmsMsgWaitingMessage
Represents a "Message Waiting" sms. As described in TS 23.040-650 section 9.2.3.24.2 "Special SMS Message Indication". On a Sony-Ericsson T610 these messages can be used to display different types of icons in the notification bar.
Field Summary | |
protected java.util.LinkedList |
messages_
List of MsgWaiting "objects". |
static int |
OPT_PROFILE_ID_1
Profile ID 1. |
static int |
OPT_PROFILE_ID_2
Profile ID 2. |
static int |
OPT_PROFILE_ID_3
Profile ID 3. |
static int |
OPT_PROFILE_ID_4
Profile ID 4. |
static int |
OPT_STORE_MSG
Store message in the phone memory. |
static int |
TYPE_EMAIL
Message waiting type : EMAIL |
static int |
TYPE_FAX
Message waiting type : FAX |
static int |
TYPE_VIDEO
Message waiting type : VIDEO |
static int |
TYPE_VOICE
Message waiting type : VOICE |
Constructor Summary | |
SmsMsgWaitingMessage()
Creates an empty message. |
|
SmsMsgWaitingMessage(java.lang.String text)
Creates an message with the supplied text (GSM charset). |
|
SmsMsgWaitingMessage(java.lang.String text,
int alphabet)
Creates an message with the supplied text and alphabet. |
Method Summary | |
void |
addMsgWaiting(int type,
int count)
Adds a message waiting. |
void |
addMsgWaiting(int type,
int count,
int options)
Adds a message waiting. |
protected SmsUdhElement |
getMessageWaitingUdh(org.marre.sms.SmsMsgWaitingMessage.MsgWaiting msgWaiting)
Creates a "Message waiting" UDH element using UDH_IEI_SPECIAL_MESSAGE. |
SmsUdhElement[] |
getUdhElements()
Builds a udh element for this message. |
Methods inherited from class org.marre.sms.SmsTextMessage |
getDcs, getText, getUserData, setText, setText |
Methods inherited from class org.marre.sms.SmsConcatMessage |
getPdus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_VOICE
public static final int TYPE_FAX
public static final int TYPE_EMAIL
public static final int TYPE_VIDEO
public static final int OPT_PROFILE_ID_1
public static final int OPT_PROFILE_ID_2
public static final int OPT_PROFILE_ID_3
public static final int OPT_PROFILE_ID_4
public static final int OPT_STORE_MSG
protected java.util.LinkedList messages_
Constructor Detail |
public SmsMsgWaitingMessage()
public SmsMsgWaitingMessage(java.lang.String text)
text
- Description of this message.public SmsMsgWaitingMessage(java.lang.String text, int alphabet)
text
- Description of this messagealphabet
- Alphabet to use. Valid values are SmsDcs.ALPHABET_*.Method Detail |
public void addMsgWaiting(int type, int count)
type
- Type of message that is waiting. Can be any of TYPE_*.count
- Number of messages waiting for retrieval.public void addMsgWaiting(int type, int count, int options)
type
- Type of message that is waiting. Can be any of TYPE_*.count
- Number of messages waiting for retrieval.options
- Bitfield of OPT_ options.protected SmsUdhElement getMessageWaitingUdh(org.marre.sms.SmsMsgWaitingMessage.MsgWaiting msgWaiting)
If more than one type of message is required to be indicated within one SMS message, then multiple "Message waiting" UDH elements must be used.
Special handling in concatenated messages:
"In the case where this IEI is to be used in a concatenated SM then the
IEI, its associated IEI length and IEI data shall be contained in the
first segment of the concatenated SM. The IEI, its associated IEI length
and IEI data should also be contained in every subsequent segment of the
concatenated SM although this is not mandatory. However, in the case
where these elements are not contained in every subsequent segment of
the concatenated SM and where an out of sequence segment delivery
occurs or where the first segment is not delivered then processing
difficulties may arise at the receiving entity which may result in
the concatenated SM being totally or partially discarded."
msgWaiting
- The MsgWaiting to convert
public SmsUdhElement[] getUdhElements()
getUdhElements
in class SmsTextMessage
SmsTextMessage.getUdhElements()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |