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 |