<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_03) on Mon Oct 10 16:31:48 CEST 2005 -->
<TITLE>
ATCommandListener (IM Profile)
</TITLE>

<META NAME="keywords" CONTENT="com.siemens.icm.io.ATCommandListener interface">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="ATCommandListener (IM Profile)";
}
</SCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ATCommandListener.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<strong>IM Profile</strong></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../com/siemens/icm/io/ATCommandResponseListener.html" title="interface in com.siemens.icm.io"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="ATCommandListener.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.siemens.icm.io</FONT>
<BR>
Interface ATCommandListener</H2>
<HR>
<DL>
<DT>public interface <B>ATCommandListener</B></DL>

<P>
The ATCommandListener interface defines the capabilities for receiving
 unsolicited AT-Events (e.g. like "RING") and changes of the relevant
 incoming interface signals (RING, DCD and DSR). When the user wants to
 receive AT-Events, an implementation class for the ATCommandListener
 interface must be created first. The ATEvent method of this class must
 contain the processing code for the different AT-Events and the
 RINGChanged, DCDChanged and DSRChanged methods possible processing code
 for the signal state changes. After creating an instance of the
 ATCommandListener class, this class instance has to be passed as a
 parameter to the ATCommand.addListener method. After that, the callback
 methods will be called by the runtime system each time the corresponding
 events (URCs or signal state changes) occur.<br>
 Please note that system start URCs like "^SYSSTART", "^SYSSTART ALARM MODE"
 or "^SYSSTART CHARGE-ONLY MODE" are passed to a Java application after the
 first AT command has been sent by the ATCommand class after module start.
 They are passed only to this instance of the ATCommand class which has sent
 the first AT command obviously only if it has registered an
 ATCommandListener instance before the command is sent.
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../com/siemens/icm/io/ATCommand.html" title="class in com.siemens.icm.io"><CODE>ATCommand</CODE></A></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->


<!-- ======== CONSTRUCTOR SUMMARY ======== -->


<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/siemens/icm/io/ATCommandListener.html#ATEvent(java.lang.String)">ATEvent</A></B>(<A HREF="../../../../java/lang/String.html" title="class in java.lang">String</A>&nbsp;Event)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Callback method for unsolicited AT-Events (URCs).
 </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/siemens/icm/io/ATCommandListener.html#CONNChanged(boolean)">CONNChanged</A></B>(boolean&nbsp;SignalState)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Callback method for change of the state of a data connection.

 </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/siemens/icm/io/ATCommandListener.html#DCDChanged(boolean)">DCDChanged</A></B>(boolean&nbsp;SignalState)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Callback method for change of the serial interface signal DCD
 (Data Carrier Detect).
 </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/siemens/icm/io/ATCommandListener.html#DSRChanged(boolean)">DSRChanged</A></B>(boolean&nbsp;SignalState)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Callback method for change of the serial interface signal DSR
 (Data Set Ready).
 </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/siemens/icm/io/ATCommandListener.html#RINGChanged(boolean)">RINGChanged</A></B>(boolean&nbsp;SignalState)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Callback method for change of the serial interface signal RING.
 </TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->


<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="ATEvent(java.lang.String)"><!-- --></A><H3>
ATEvent</H3>
<PRE>
public void <B>ATEvent</B>(<A HREF="../../../../java/lang/String.html" title="class in java.lang">String</A>&nbsp;Event)</PRE>
<DL>
<DD>Callback method for unsolicited AT-Events (URCs).
 The callback method, will be called by the runtime system each time
 an AT-Event occurs on the AT-Interface, if an implementation
 class object is registered as listener for that instance of the ATCommand
 class. While implementing a class for the ATCommandListener interface,
 the user can place the code for incoming URC processing into this method.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>Event</CODE> - The occured AT-Event (URC).<DT><B>See Also:</B><DD><A HREF="../../../../com/siemens/icm/io/ATCommand.html" title="class in com.siemens.icm.io"><CODE>ATCommand</CODE></A>, 
<A HREF="../../../../com/siemens/icm/io/ATCommand.html#addListener(com.siemens.icm.io.ATCommandListener)"><CODE>ATCommand.addListener(com.siemens.icm.io.ATCommandListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="RINGChanged(boolean)"><!-- --></A><H3>
RINGChanged</H3>
<PRE>
public void <B>RINGChanged</B>(boolean&nbsp;SignalState)</PRE>
<DL>
<DD>Callback method for change of the serial interface signal RING.
 The callback method, will be called by the runtime system each time
 time a change of the serial interface signal RING, if an implementation
 class object is registered as listener for that instance of the ATCommand
 class. While implementing a class for the ATCommandListener interface,
 the user can place the code for RING signal processing into this method.
 The ATCommand class replaces the connection of the devices AT interpreters
 to an external device through a serial interface. So this callback will be
 called each time the physical signal would be changed and is therefore
 some kind of a virtual RING signal.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>SignalState</CODE> - The new state of the RING signal.<DT><B>See Also:</B><DD><A HREF="../../../../com/siemens/icm/io/ATCommand.html" title="class in com.siemens.icm.io"><CODE>ATCommand</CODE></A>, 
<A HREF="../../../../com/siemens/icm/io/ATCommand.html#addListener(com.siemens.icm.io.ATCommandListener)"><CODE>ATCommand.addListener(com.siemens.icm.io.ATCommandListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="DCDChanged(boolean)"><!-- --></A><H3>
DCDChanged</H3>
<PRE>
public void <B>DCDChanged</B>(boolean&nbsp;SignalState)</PRE>
<DL>
<DD>Callback method for change of the serial interface signal DCD
 (Data Carrier Detect).
 The callback method, will be called by the runtime system each time
 time a change of the serial interface signal DCD, if an implementation
 class object is registered as listener for that instance of the ATCommand
 class. While implementing a class for the ATCommandListener interface,
 the user can place the code for DCD signal processing into this method.
 The ATCommand class replaces the connection of the devices AT interpreters
 to an external device through a serial interface. So this callback will be
 called each time the physical signal would be changed and is therefore
 some kind of a virtual DCD signal.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>SignalState</CODE> - The new state of the DCD signal.<DT><B>See Also:</B><DD><A HREF="../../../../com/siemens/icm/io/ATCommand.html" title="class in com.siemens.icm.io"><CODE>ATCommand</CODE></A>, 
<A HREF="../../../../com/siemens/icm/io/ATCommand.html#addListener(com.siemens.icm.io.ATCommandListener)"><CODE>ATCommand.addListener(com.siemens.icm.io.ATCommandListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="DSRChanged(boolean)"><!-- --></A><H3>
DSRChanged</H3>
<PRE>
public void <B>DSRChanged</B>(boolean&nbsp;SignalState)</PRE>
<DL>
<DD>Callback method for change of the serial interface signal DSR
 (Data Set Ready).
 The callback method, will be called by the runtime system each time
 time a change of the serial interface signal DSR, if an implementation
 class object is registered as listener for that instance of the ATCommand
 class. While implementing a class for the ATCommandListener interface,
 the user can place the code for DSR signal processing into this method.
 The ATCommand class replaces the connection of the devices AT interpreters
 to an external device through a serial interface. So this callback will be
 called each time the physical signal would be changed and is therefore
 some kind of a virtual DSR signal.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>SignalState</CODE> - The new state of the DSR signal.<DT><B>See Also:</B><DD><A HREF="../../../../com/siemens/icm/io/ATCommand.html" title="class in com.siemens.icm.io"><CODE>ATCommand</CODE></A>, 
<A HREF="../../../../com/siemens/icm/io/ATCommand.html#addListener(com.siemens.icm.io.ATCommandListener)"><CODE>ATCommand.addListener(com.siemens.icm.io.ATCommandListener)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="CONNChanged(boolean)"><!-- --></A><H3>
CONNChanged</H3>
<PRE>
public void <B>CONNChanged</B>(boolean&nbsp;SignalState)</PRE>
<DL>
<DD>Callback method for change of the state of a data connection.

 The callback method, will be called by the runtime system each
 time a data connection state changes, if an implementation
 class object is registered as listener for that instance of the ATCommand
 class. The state of a data connection can change from opened to closed, from data mode to
 AT command mode and vice versa.
 While implementing a class for the ATCommandListener interface,
 the user can place the code for data connection processing into this method.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>SignalState</CODE> - The new state of a data connection.<DT><B>See Also:</B><DD><A HREF="../../../../com/siemens/icm/io/ATCommand.html" title="class in com.siemens.icm.io"><CODE>ATCommand</CODE></A>, 
<A HREF="../../../../com/siemens/icm/io/ATCommand.html#addListener(com.siemens.icm.io.ATCommandListener)"><CODE>ATCommand.addListener(com.siemens.icm.io.ATCommandListener)</CODE></A></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=3 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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ATCommandListener.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<strong>IM Profile</strong></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../com/siemens/icm/io/ATCommandResponseListener.html" title="interface in com.siemens.icm.io"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="ATCommandListener.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
<font size=\-1\><a href=\mailto:midp-feedback@risc.sps.mot.com\>Submit a comment or suggestion</a> Version 2.0 of IM Profile Specification<br>Java is a trademark or registered trademark of Sun Microsystems,  Inc. in the US and other countries. Copyright (c) 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font>
</BODY>
</HTML>
