adaptationlayer/modematadaptation/modematcontroller_exe/inc/cmodemathandler.h
changeset 8 6295dc2169f3
parent 5 8ccc39f9d787
child 9 8486d82aef45
equal deleted inserted replaced
7:fa67e03b87df 8:6295dc2169f3
    21 #define CMODEMATHANDLER_H
    21 #define CMODEMATHANDLER_H
    22 
    22 
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include "mmodematobserver.h"
    24 #include "mmodematobserver.h"
    25 
    25 
    26 const TInt KMaxDteIdCount(10);
       
    27 const TInt KPluginCount(2); //atext & common plugin
       
    28 const TInt KMaxNumOfTransactionIds(256);
       
    29 
    26 
    30 // FORWARD DECLARATIONS
    27 // FORWARD DECLARATIONS
    31 class CModemAtSrv;
    28 class CModemAtSrv;
    32 class RIscApi;
    29 class RIscApi;
    33 class TIsiReceiveC;
    30 class TIsiReceiveC;
    34 class MMtiWrapperService;
       
    35 class CModemAtPipeController;
    31 class CModemAtPipeController;
    36 
    32 
    37 
    33 
    38 // CLASS DECLARATION
    34 // CLASS DECLARATION
    39 
    35 
    71         const TATPluginInterface aPluginType,
    67         const TATPluginInterface aPluginType,
    72         const TUint8 aMessageType,
    68         const TUint8 aMessageType,
    73         const TDesC8& aCmd );
    69         const TDesC8& aCmd );
    74 
    70 
    75     /**
    71     /**
    76       *  Connects Handler to modem with specific dteid.
    72       *  Connects handler to modem
    77       *  @param TUint8 aDteId
    73       *  @param aDteId DteId. Default is zero. If pipe is created, pipehandle will be used.
    78       *  @return KErrNone or
    74       *  @return KErrNone or
    79 	  *  @return KErrNoMemory
    75       *  @return KErrNoMemory
    80       */
    76       */
    81 
    77 
    82     TInt Connect( const TUint8 aDteId );
    78     TInt Connect( const TUint8 aDteId );
    83 
    79 
    84     /**
    80     /**
    85      *  Disconnects handler from modem
    81      *  Disconnects handler from modem
    86      *  @param TUint8 aDteId
    82      *  @param TUint8 aDteId
    87      *  @return Disconnect status
    83      *  @return Disconnect status
    88      */
    84      */
    89     TInt Disconnect( const  TUint8 aDteId );
    85     TInt Disconnect( const TUint8 aDteId );
    90     
    86     
    91     /**
    87     /**
    92      *  Check if disconnect is called directly
    88      *  Check if disconnect is called directly
    93      *  @return ETrue if disconnect called directly
    89      *  @return ETrue if disconnect called directly
    94      */
    90      */
    95     TBool IsDisconnected();
    91     TBool IsDisconnected();
    96     
    92     
    97     /**
    93     /**
    98      *  HandleCommandModeChange
    94      *  HandleCommandModeChange
    99      *  @param TUint8 aDteId
       
   100      *  @param TCommandMode aMode
    95      *  @param TCommandMode aMode
   101      */
    96      */
   102     void HandleCommandModeChange( TInt aDteid, TCommandMode aMode );
    97     void HandleCommandModeChange( TCommandMode aMode );
   103     
    98     
   104     /**
    99     /**
   105      *  SendAtModemDataRedirectResultReq
   100      *  SendAtModemDataRedirectResultReq
   106      *  @param TUint8 aDteId
   101      *  @param TUint8 aDteId
   107      *  @param TUint aResult
   102      *  @param TUint aResult
   136     /**
   131     /**
   137      *  SetModemAtExistsInCmt
   132      *  SetModemAtExistsInCmt
   138      *  @param TBool aModemAtExistsInCmt
   133      *  @param TBool aModemAtExistsInCmt
   139      */
   134      */
   140     void SetModemAtExistsInCmt( TBool aModemAtExistsInCmt );
   135     void SetModemAtExistsInCmt( TBool aModemAtExistsInCmt );
       
   136     
       
   137     /**
       
   138      *  SendAtModemConnectReq
       
   139      *  @param TUint8 aDteId
       
   140      */
       
   141     TInt SendAtModemConnectReq( const TUint8 aDteId );
   141 
   142 
   142 protected:
   143 protected:
   143     // from CActive
   144     // from CActive
   144     void RunL();
   145     void RunL();
   145     void DoCancel();
   146     void DoCancel();
   193     TInt iEmulatedValue;
   194     TInt iEmulatedValue;
   194     TUint8 iDteId;
   195     TUint8 iDteId;
   195     TUint8 iChannel;
   196     TUint8 iChannel;
   196     TATPluginInterface iPluginType;
   197     TATPluginInterface iPluginType;
   197 #endif
   198 #endif
   198     TUint8 iLastTransactionId[KMaxNumOfTransactionIds];
   199     TUint8 iLastTransactionId;
   199     TBool iDisconnected;
   200     TBool iDisconnected;
   200     TBool iModemAtExistInCmt;
   201     TBool iModemAtExistInCmt;
   201     };
   202     };
   202 
   203 
   203 #endif  // CMODEMATHANDLER_H
   204 #endif  // CMODEMATHANDLER_H