📄 cservice.html
字号:
<A NAME="deleteMessage(org.jsmsengine.CIncomingMessage)"><!-- --></A><H3>
deleteMessage</H3>
<PRE>
public void <B>deleteMessage</B>(<A HREF="../../org/jsmsengine/CIncomingMessage.html" title="class in org.jsmsengine">CIncomingMessage</A> message)
throws java.lang.Exception</PRE>
<DL>
<DD>Deletes an SMS message from the GSM device memory. <br><br> <strong>Notes:</strong> <ul> <li>A deleted message cannot be recovered.</li> </ul>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - a valid CIncomingMessage object, i.e. an object which is previously read with readMessages() from the GSM device.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../org/jsmsengine/NotConnectedException.html" title="class in org.jsmsengine">NotConnectedException</A></CODE>
<DD><CODE>java.lang.Exception</CODE><DT><B>See Also:</B><DD><A HREF="../../org/jsmsengine/CIncomingMessage.html" title="class in org.jsmsengine"><CODE>CIncomingMessage</CODE></A>,
<A HREF="../../org/jsmsengine/CService.html#deleteMessage(int)"><CODE>deleteMessage(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setStorageSIM()"><!-- --></A><H3>
setStorageSIM</H3>
<PRE>
public boolean <B>setStorageSIM</B>()
throws java.lang.Exception</PRE>
<DL>
<DD>Sets the preferred message storage of the GSM device to SIM memory.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if the change of preferred message storage succeded.
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setStorageMEM()"><!-- --></A><H3>
setStorageMEM</H3>
<PRE>
public boolean <B>setStorageMEM</B>()
throws java.lang.Exception</PRE>
<DL>
<DD>Sets the preferred message storage of the GSM device to build-in memory.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if the change of preferred message storage succeded.
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="refreshDeviceInfo()"><!-- --></A><H3>
refreshDeviceInfo</H3>
<PRE>
public void <B>refreshDeviceInfo</B>()
throws java.lang.Exception</PRE>
<DL>
<DD>Refreshes the GSM device specific information. This method is called once during connection. Its up to the developer to call it periodically in order to get the latest information. Note: Information about Manufacturer, Model, SerialNo, IMSI, S/W Version are refreshed only once, since they don't change during a session.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE><DT><B>See Also:</B><DD><A HREF="../../org/jsmsengine/CDeviceInfo.html" title="class in org.jsmsengine"><CODE>CDeviceInfo</CODE></A>,
<A HREF="../../org/jsmsengine/CService.html#connect()"><CODE>connect()</CODE></A>,
<A HREF="../../org/jsmsengine/CService.html#getDeviceInfo()"><CODE>getDeviceInfo()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getManufacturer()"><!-- --></A><H3>
getManufacturer</H3>
<PRE>
private java.lang.String <B>getManufacturer</B>()
throws java.lang.Exception</PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getModel()"><!-- --></A><H3>
getModel</H3>
<PRE>
private java.lang.String <B>getModel</B>()
throws java.lang.Exception</PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getSerialNo()"><!-- --></A><H3>
getSerialNo</H3>
<PRE>
private java.lang.String <B>getSerialNo</B>()
throws java.lang.Exception</PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getImsi()"><!-- --></A><H3>
getImsi</H3>
<PRE>
private java.lang.String <B>getImsi</B>()
throws java.lang.Exception</PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getSwVersion()"><!-- --></A><H3>
getSwVersion</H3>
<PRE>
private java.lang.String <B>getSwVersion</B>()
throws java.lang.Exception</PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getBatteryLevel()"><!-- --></A><H3>
getBatteryLevel</H3>
<PRE>
private int <B>getBatteryLevel</B>()
throws java.lang.Exception</PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getSignalLevel()"><!-- --></A><H3>
getSignalLevel</H3>
<PRE>
private int <B>getSignalLevel</B>()
throws java.lang.Exception</PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.lang.Exception</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isIncomingMessage(java.lang.String)"><!-- --></A><H3>
isIncomingMessage</H3>
<PRE>
private boolean <B>isIncomingMessage</B>(java.lang.String pdu)</PRE>
<DL>
<DD>Checks if the message is SMS-DELIVER.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pdu</CODE> - the message pdu
<DT><B>Returns:</B><DD>true if the message is SMS-DELIVER</DL>
</DD>
</DL>
<HR>
<A NAME="isStatusReportMessage(java.lang.String)"><!-- --></A><H3>
isStatusReportMessage</H3>
<PRE>
private boolean <B>isStatusReportMessage</B>(java.lang.String pdu)</PRE>
<DL>
<DD>Checks if the message is SMS-STATUS-REPORT.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pdu</CODE> - the message pdu
<DT><B>Returns:</B><DD>true if the message is SMS-STATUS-REPORT</DL>
</DD>
</DL>
<HR>
<A NAME="received(org.jsmsengine.CIncomingMessage)"><!-- --></A><H3>
received</H3>
<PRE>
<FONT SIZE="-1">@Deprecated
</FONT>public boolean <B>received</B>(<A HREF="../../org/jsmsengine/CIncomingMessage.html" title="class in org.jsmsengine">CIncomingMessage</A> message)</PRE>
<DL>
<DD><B>Deprecated.</B>
<P>
<DD>Virtual method, called upon receipt of a message (Asynchronous mode only!) <br><br> <strong>Notes:</strong> <ul> <li>If you plan to use jSMSEngine API in asynchronous mode, you should override this method, making it do your job upon message receipt.</li> </ul>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - the received message.
<DT><B>Returns:</B><DD>return true if you wish the message to be deleted from the GSM device's memory. Otherwise false.<DT><B>See Also:</B><DD><A HREF="../../org/jsmsengine/CService.html#setReceiveMode(int)"><CODE>setReceiveMode(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="main(java.lang.String[])"><!-- --></A><H3>
main</H3>
<PRE>
public static void <B>main</B>(java.lang.String[] args)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../org/jsmsengine/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<strong>jSMSEngine API v2.0.9</strong><br><strong>Web:</strong><a href=http://www.jsmsengine.org>http://www.jsmsengine.org</a></strong></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../org/jsmsengine/CSerialDriver.html" title="class in org.jsmsengine"><B>PREV CLASS</B></A>
<A HREF="../../org/jsmsengine/CService.CKeepAliveThread.html" title="class in org.jsmsengine"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?org/jsmsengine/CService.html" target="_top"><B>FRAMES</B></A>
<A HREF="CService.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -