public final class

CBMessage

extends Object
java.lang.Object
   ↳ com.android.internal.telephony.gsm.CBMessage

Class Overview

Ausmus 20111021 for unbundle

Summary

Nested Classes
enum CBMessage.CBMessageClass  
Fields
protected byte[] cb_msg
protected int dcs
protected int gs
protected String mDcs
protected int mEncodingType
protected boolean mEncodingTypeSet
protected String mMsgId
protected boolean mode
protected int msg_id
protected int msg_len CB body
protected int page
protected int pages
protected int septetCount
protected int sn CB header
protected int updatenum
Public Constructors
CBMessage()
Public Methods
void getCBChannel()
The purpose of this function is used to get channel of cell broadcast.
CBMessage.CBMessageClass getCBMessageClass()
Returns the class of this message.
byte[] getCb_msg()
int getCurrentPage()
int getDcs()
int getGs()
String getMessageBody()
Returns the message body as a String, if it exists and is text based.
SmsMessage.MessageClass getMessageClass()
int getMsg_id()
int getMsg_len()
int getPage()
int getPages()
byte[] getRowData()
int getSeptetCount()
int getSn()
int getTotalPage()
int getUpdatenum()
byte[] getUserData()
String getmDcs()
int getmEncodingType()
String getmMsgId()
boolean isMode()
boolean ismEncodingTypeSet()
static CBMessage newFromCBM(String[] lines)
void parseCBPdu(byte[] pdu)
String parseCBUserData()
The purpose of this function is used to get message class and body .
void setCB(boolean mode)
The purpose of this function is used to enable or disable cell broadcast.
void setCBChannel(Boolean mode, String mMsgId, String mDsc)
The purpose of this function is used to set channel of cell broadcast.
void setCb_msg(byte[] cb_msg)
void setDcs(int dcs)
void setGs(int gs)
void setMode(boolean mode)
void setMsg_id(int msg_id)
void setMsg_len(int msg_len)
void setPage(int page)
void setPages(int pages)
void setSeptetCount(int septetCount)
void setSn(int sn)
void setUpdatenum(int updatenum)
void setmDcs(String mDcs)
void setmEncodingType(int mEncodingType)
void setmEncodingTypeSet(boolean mEncodingTypeSet)
void setmMsgId(String mMsgId)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected byte[] cb_msg

protected int dcs

protected int gs

protected String mDcs

protected int mEncodingType

protected boolean mEncodingTypeSet

protected String mMsgId

protected boolean mode

protected int msg_id

protected int msg_len

CB body

protected int page

protected int pages

protected int septetCount

protected int sn

CB header

protected int updatenum

Public Constructors

public CBMessage ()

Public Methods

public void getCBChannel ()

The purpose of this function is used to get channel of cell broadcast.

public CBMessage.CBMessageClass getCBMessageClass ()

Returns the class of this message.

public byte[] getCb_msg ()

Returns
  • the cb_msg

public int getCurrentPage ()

public int getDcs ()

Returns
  • the dcs

public int getGs ()

Returns
  • the gs

public String getMessageBody ()

Returns the message body as a String, if it exists and is text based.

Returns
  • message body is there is one, otherwise null

public SmsMessage.MessageClass getMessageClass ()

public int getMsg_id ()

Returns
  • the msg_id

public int getMsg_len ()

Returns
  • the msg_len

public int getPage ()

Returns
  • the page

public int getPages ()

Returns
  • the pages

public byte[] getRowData ()

public int getSeptetCount ()

Returns
  • the septetCount

public int getSn ()

Returns
  • the sn

public int getTotalPage ()

public int getUpdatenum ()

Returns
  • the updatenum

public byte[] getUserData ()

public String getmDcs ()

Returns
  • the mDcs

public int getmEncodingType ()

Returns
  • the mEncodingType

public String getmMsgId ()

Returns
  • the mMsgId

public boolean isMode ()

Returns
  • the mode

public boolean ismEncodingTypeSet ()

Returns
  • the mEncodingTypeSet

public static CBMessage newFromCBM (String[] lines)

public void parseCBPdu (byte[] pdu)

public String parseCBUserData ()

The purpose of this function is used to get message class and body .

public void setCB (boolean mode)

The purpose of this function is used to enable or disable cell broadcast.

public void setCBChannel (Boolean mode, String mMsgId, String mDsc)

The purpose of this function is used to set channel of cell broadcast.

public void setCb_msg (byte[] cb_msg)

Parameters
cb_msg the cb_msg to set

public void setDcs (int dcs)

Parameters
dcs the dcs to set

public void setGs (int gs)

Parameters
gs the gs to set

public void setMode (boolean mode)

Parameters
mode the mode to set

public void setMsg_id (int msg_id)

Parameters
msg_id the msg_id to set

public void setMsg_len (int msg_len)

Parameters
msg_len the msg_len to set

public void setPage (int page)

Parameters
page the page to set

public void setPages (int pages)

Parameters
pages the pages to set

public void setSeptetCount (int septetCount)

Parameters
septetCount the septetCount to set

public void setSn (int sn)

Parameters
sn the sn to set

public void setUpdatenum (int updatenum)

Parameters
updatenum the updatenum to set

public void setmDcs (String mDcs)

Parameters
mDcs the mDcs to set

public void setmEncodingType (int mEncodingType)

Parameters
mEncodingType the mEncodingType to set

public void setmEncodingTypeSet (boolean mEncodingTypeSet)

Parameters
mEncodingTypeSet the mEncodingTypeSet to set

public void setmMsgId (String mMsgId)

Parameters
mMsgId the mMsgId to set