|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.rim.device.api.system.SMSParameters
|
+--net.rim.device.api.system.SMSPacketHeader
A RadioPacketHeader for sending SMS packets. See GSM 03.40 for details.
| Field Summary | ||
static String[] |
INDICATOR_TYPE_NAMES
|
|
static int |
RECORD_STATUS_MS_ORIGINATED
|
|
static int |
RECORD_STATUS_REPORT_RECEIVED
|
|
static int |
RECORD_STATUS_REPORT_REQUESTED
|
|
static int |
RECORD_STATUS_UNREAD
|
|
static int |
SMS_ID_NOT_ON_SIM
|
|
static int |
WAITING_INDICATOR_TYPE_EMAIL
Represents the email wait indicator. |
|
static int |
WAITING_INDICATOR_TYPE_FAX
Represents the fax wait indicator. |
|
static int |
WAITING_INDICATOR_TYPE_OTHER
Represents an "other" wait indicator. |
|
static int |
WAITING_INDICATOR_TYPE_VOICEMAIL
Represents the voicemail waiting indicator. |
|
| Constructor Summary | ||
SMSPacketHeader()
Constructs a new SMSPacketHeader. |
||
| Method Summary | ||
static int |
getBitsPerCharacter(int messageCoding)
Returns the number of bits required per character for the specified encoding type. |
|
static int |
getBitsPerSegment(int messageCoding)
Get the number of bits which can fit into a segment. |
|
static int |
getBytesPerCharacter(int messageCoding)
Returns the number of bytes consumed per character for the specified encoding type. |
|
static int |
getCharacters(int segments,
int messageCoding)
Returns the number of characters which can fit into the specified number of segments using the specified encoding type. |
|
int |
getID()
Returns the SIM ID for this message. |
|
int |
getMessageWaitingType()
Returns this message's MWI Group type. |
|
int |
getNumMessages()
Returns the number of messages waiting. |
|
int |
getRecordStatus()
Returns the record status for this message. |
|
static int |
getSegments(int characters,
int messageCoding)
Returns the number of segments required for the specified number of characters and encoding type. |
|
static int |
getSegments(int characters,
int messageCoding,
int udhLength)
Returns the number of segments required for the specified number of characters and encoding type. |
|
boolean |
getStatusReportRequest()
Returns the status report request. |
|
long |
getTimestamp()
Returns the timestamp for this message. |
|
boolean |
isDeliveryPeriodDefault()
Returns a boolean indicating whether or not the delivery period is set to the default amount of time. |
|
boolean |
isFromSIMCard()
Determines if this message originated from the device SIM card. |
|
boolean |
isMessageWaitingActive()
Determines if this message's MWI Group is "Active". |
|
boolean |
isMessageWaitingGroup()
Determines if this message is part of the Message Waiting Indication Group. |
|
boolean |
isMessageWaitingStore()
Determines if this message's MWI Group is "Store Message". |
|
boolean |
isReplyPath()
Determines if this message specifies the reply path to use. |
|
static boolean |
isSegmentationSupported()
Returns true if SMS fragmentation/reassembly is supported. |
|
boolean |
isUserDataHeaderPresent()
Returns a boolean indicating whether or not a user data header is present. |
|
boolean |
isValidityPeriodDefault()
|
|
void |
reset()
Resets the contents of this header. |
|
void |
setDeliveryPeriod(int deliveryPeriod)
Sets the delivery period for the message. |
|
void |
setMessageClass(int messageClass)
Sets the message class. |
|
void |
setMessageCoding(int messageCoding)
Sets the message coding. |
|
void |
setMessageWaitingType(int waitingIndType)
Sets this message's MWI Group type. |
|
void |
setNumMessages(int numMessages)
Sets the number of messages waiting. |
|
void |
setProtocolId(int protocolMeaning,
int protocolId)
Sets the protocol meaning and ID. |
|
void |
setStatusReportRequest(boolean statusReportRequest)
Sets the status report request for the message. |
|
void |
setUserDataHeaderPresent(boolean userDataHeaderPresent)
Sets the user data header present for the message. |
|
void |
setValidityPeriod(int validityPeriod)
Sets the validity period for the message. |
|
static boolean |
validateForASCIIMessageCoding(char c)
Validate the given character against the ASCII encoding. |
|
static boolean |
validateForDefaultMessageCoding(char c)
Validate the given character against the default encoding. |
|
static boolean |
validateForISO8859MessageCoding(char c)
Validate the given character against the ISO8859 encoding. |
|
static boolean |
validateForMessageCoding(char c,
int messageCoding)
Determines if the specified character is valid for the given encoding type. |
|
static boolean |
validateForUCS2MessageCoding(char c)
Validate the given character against the UCS2 encoding. |
|
| Methods inherited from class net.rim.device.api.system.SMSParameters |
getCallbackAddress, getCallbackPlan, getCallbackType, getDeliveryPeriod, getLanguage, getMessageClass, getMessageCoding, getPeerAddress, getPeerPlan, getPeerType, getPriority, getPrivacy, getProtocolId, getProtocolMeaning, getSCAddress, getSCPlan, getSCType, getValidityPeriod, setCallbackAddress, setCallbackAddress, setLanguage, setPeerAddress, setPeerAddress, setPriority, setPrivacy, setProtocolId, setProtocolMeaning, setSCAddress, setSCAddress |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int WAITING_INDICATOR_TYPE_VOICEMAIL
Indicates that a voicemail is waiting.
public static final int WAITING_INDICATOR_TYPE_FAX
Indicates that a fax is waiting.
public static final int WAITING_INDICATOR_TYPE_EMAIL
Indicates that an email is waiting.
public static final int WAITING_INDICATOR_TYPE_OTHER
public static final int RECORD_STATUS_REPORT_REQUESTED
public static final int RECORD_STATUS_REPORT_RECEIVED
| Constructor Detail |
| Method Detail |
public void reset()
RadioPacketHeaderreset in interface RadioPacketHeaderreset in class SMSParameters
public void setProtocolId(int protocolMeaning,
int protocolId)
If this is not specified, the default protocol meaning and ID are used.
protocolMeaning - An integer representing the protocol meaning.protocolId - An integer representing the protocol Id.public void setMessageCoding(int messageCoding)
If this is not specified, the default message coding is used.
setMessageCoding in class SMSParametersmessageCoding - An integer representing the message coding.public void setMessageClass(int messageClass)
If this is not specified, the default message class is used.
setMessageClass in class SMSParametersmessageClass - An integer representing the message class.public boolean isUserDataHeaderPresent()
public void setUserDataHeaderPresent(boolean userDataHeaderPresent)
userDataHeaderPresent - Whether user data header is presentpublic void setValidityPeriod(int validityPeriod)
If this is not specified, the default validity period is used.
setValidityPeriod in class SMSParametersvalidityPeriod - The validity period.public void setDeliveryPeriod(int deliveryPeriod)
If this is not specified, the default delivery period is used.
setDeliveryPeriod in class SMSParametersdeliveryPeriod - The delivery period.public boolean isDeliveryPeriodDefault()
public boolean getStatusReportRequest()
public void setStatusReportRequest(boolean statusReportRequest)
statusReportRequest - The status report request.public boolean isMessageWaitingGroup()
public boolean isMessageWaitingStore()
public boolean isMessageWaitingActive()
public int getMessageWaitingType()
public void setMessageWaitingType(int waitingIndType)
waitingIndType - An integer representing the message waiting idnication
group type to set.public int getNumMessages()
public void setNumMessages(int numMessages)
numMessages - The number of messages waiting.public int getID()
public long getTimestamp()
public int getRecordStatus()
public boolean isFromSIMCard()
public boolean isReplyPath()
public static boolean isSegmentationSupported()
public static int getBitsPerCharacter(int messageCoding)
messageCoding - The encoding type.public static int getBytesPerCharacter(int messageCoding)
messageCoding - The encoding type.public static int getBitsPerSegment(int messageCoding)
public static int getSegments(int characters,
int messageCoding)
characters - The number of characters.messageCoding - The encoding type.
public static int getSegments(int characters,
int messageCoding,
int udhLength)
characters - The number of characters.messageCoding - The encoding type.udhLength - The number of bits required by user defined data
public static int getCharacters(int segments,
int messageCoding)
segments - The number of segments.messageCoding - The encoding type.
public static boolean validateForMessageCoding(char c,
int messageCoding)
c - The character to validate.messageCoding - The encoding type.public static boolean validateForDefaultMessageCoding(char c)
c - The character to validate.public static boolean validateForISO8859MessageCoding(char c)
c - The character to validate.public static boolean validateForASCIIMessageCoding(char c)
c - The character to validate.public static boolean validateForUCS2MessageCoding(char c)
c - The character to validate.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2004 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.