NetServices Stack source

Dependents:   HelloWorld ServoInterfaceBoardExample1 4180_Lab4

Revision:
4:fd826cad83c0
Parent:
0:632c9925f013
--- a/drv/at/ATIf.h	Fri Jun 18 10:38:57 2010 +0000
+++ b/drv/at/ATIf.h	Fri Jul 09 14:46:47 2010 +0000
@@ -52,7 +52,8 @@
     
     ATIf();
     virtual ~ATIf();
-    
+
+#if 0    
     template<class T> 
     //void attachSignal( const char* sigName, T* pItem, bool (T::*pMethod)(ATIf*, bool, bool*) ); //Attach Signal ("Unsollicited response code" in Telit_AT_Reference_Guide.pdf) to an handler fn
     //Linker bug : Must be defined here :(
@@ -62,6 +63,7 @@
       m_signals.push_back(sig);
     }
     void detachSignal( const char* sigName );    
+#endif
   
     ATErr open(Serial* pSerial); //Deactivate echo, etc
     #if NET_USB_SERIAL
@@ -73,12 +75,12 @@
     int scanf(const char* format, ... );
     void setTimeout(int timeout); //used by scanf
     void setLineMode(bool lineMode); //Switch btw line & raw fns
-    void setSignals(bool signalsEnable);
+    //void setSignals(bool signalsEnable);
     ATErr flushBuffer(); //Discard input buffer
     ATErr flushLine(int timeout); //Discard input buffer until CRLF is encountered
     
   protected:
-    virtual bool onRead(); //Inherited from SerialBuf, return true if data is incomplete
+    //virtual bool onRead(); //Inherited from SerialBuf, return true if data is incomplete
     ATErr rawOpen(Serial* pSerial, int baudrate); //Simple open function for similar non-conforming protocols
 
   public:
@@ -97,11 +99,12 @@
       
     volatile int m_readTimeout;
     volatile bool m_lineMode;
-    bool m_signalsEnable;
+    //bool m_signalsEnable;
     bool m_isOpen;
     
     char* m_tmpBuf;
-    
+ 
+#if 0 
     class ATSigHandler
     {
       class CDummy;
@@ -120,6 +123,7 @@
     
     bool handleSignal(); //Returns true if signal has been handled
     list<ATSigHandler> m_signals;
+#endif
     
 };