22 #include "cpincommandhandler.h" |
22 #include "cpincommandhandler.h" |
23 #include "cusdcommandhandler.h" |
23 #include "cusdcommandhandler.h" |
24 #include "cnumcommandhandler.h" |
24 #include "cnumcommandhandler.h" |
25 #include "cfuncommandhandler.h" |
25 #include "cfuncommandhandler.h" |
26 #include "cbccommandhandler.h" |
26 #include "cbccommandhandler.h" |
27 #ifdef PROTOCOL_TDSCDMA |
|
28 #include "hvercommandhandler.h" |
27 #include "hvercommandhandler.h" |
29 #include "cgsncommandhandler.h" |
28 #include "cgsncommandhandler.h" |
30 #include "cgmrcommandhandler.h" |
29 #include "cgmrcommandhandler.h" |
31 #include "cgmicommandhandler.h" |
30 #include "cgmicommandhandler.h" |
32 #include "cmgwcommandhandler.h" |
31 #include "cmgwcommandhandler.h" |
33 #include "cmgdcommandhandler.h" |
32 #include "cmgdcommandhandler.h" |
34 #include "telephonywrapper.h" |
33 #include "telephonywrapper.h" |
35 #include "cgmmcommandhandler.h" |
34 #include "cgmmcommandhandler.h" |
36 #include "scpbrcommandhandler.h" |
35 #include "scpbrcommandhandler.h" |
37 #include "scpbwcommandhandler.h" |
36 #include "scpbwcommandhandler.h" |
38 #endif |
|
39 |
|
40 |
37 |
41 #include "atmisccmdpluginconsts.h" |
38 #include "atmisccmdpluginconsts.h" |
42 #include "cmserror.h" |
39 #include "cmserror.h" |
43 #include "debug.h" |
40 #include "debug.h" |
44 |
41 |
117 iCUSDHandler = CCUSDCommandHandler::NewL(this, iCommandParser, iPhone); |
112 iCUSDHandler = CCUSDCommandHandler::NewL(this, iCommandParser, iPhone); |
118 iCPINHandler = CCPINCommandHandler::NewL(this, iCommandParser, iPhone); |
113 iCPINHandler = CCPINCommandHandler::NewL(this, iCommandParser, iPhone); |
119 iCNUMHandler = CCNUMCommandHandler::NewL(this, iCommandParser, iPhone, iTelServer); |
114 iCNUMHandler = CCNUMCommandHandler::NewL(this, iCommandParser, iPhone, iTelServer); |
120 iCFUNHandler = CCFUNCommandHandler::NewL(this, iCommandParser, iPhone); |
115 iCFUNHandler = CCFUNCommandHandler::NewL(this, iCommandParser, iPhone); |
121 iCBCHandler = CCBCCommandHandler::NewL(this, iCommandParser, iPhone); |
116 iCBCHandler = CCBCCommandHandler::NewL(this, iCommandParser, iPhone); |
122 |
|
123 #ifdef PROTOCOL_TDSCDMA |
|
124 iHVERHandler = CHVERCommandHandler::NewL(this, iCommandParser, iPhone); |
117 iHVERHandler = CHVERCommandHandler::NewL(this, iCommandParser, iPhone); |
125 iCGSNHandler = CCGSNCommandHandler::NewL(this, iCommandParser, iPhone); |
118 iCGSNHandler = CCGSNCommandHandler::NewL(this, iCommandParser, iPhone); |
126 iCGMRHandler = CCGMRCommandHandler::NewL(this, iCommandParser, iPhone); |
119 iCGMRHandler = CCGMRCommandHandler::NewL(this, iCommandParser, iPhone); |
127 iCGMIHandler = CCGMICommandHandler::NewL(this, iCommandParser, iPhone); |
120 iCGMIHandler = CCGMICommandHandler::NewL(this, iCommandParser, iPhone); |
128 iCMGWHandler = CCMGWCommandHandler::NewL(this, iCommandParser, iPhone); |
121 iCMGWHandler = CCMGWCommandHandler::NewL(this, iCommandParser, iPhone); |
312 if(iCommandParser.Command() == TAtCommandParser::ECmdAtCmee) |
302 if(iCommandParser.Command() == TAtCommandParser::ECmdAtCmee) |
313 { |
303 { |
314 HandleCMEECommand(); |
304 HandleCMEECommand(); |
315 HandleCommandCompleted( KErrNone, EReplyTypeOk); |
305 HandleCommandCompleted( KErrNone, EReplyTypeOk); |
316 } |
306 } |
317 #ifdef PROTOCOL_TDSCDMA |
|
318 else if (iCommandParser.Command() == TAtCommandParser::ECmdAtCmgf) |
307 else if (iCommandParser.Command() == TAtCommandParser::ECmdAtCmgf) |
319 { |
308 { |
320 HandleCMGFCommand(); |
309 HandleCMGFCommand(); |
321 HandleCommandCompleted( KErrNone, EReplyTypeOk); |
310 HandleCommandCompleted( KErrNone, EReplyTypeOk); |
322 } |
311 } |
323 #endif |
|
324 else if (iCurrentHandler != NULL) |
312 else if (iCurrentHandler != NULL) |
325 { |
313 { |
326 iHcCmd = &aCmd; |
314 iHcCmd = &aCmd; |
327 iHcReply = &aReply; |
315 iHcReply = &aReply; |
328 // No need to parse the command again as assumed that |
316 // No need to parse the command again as assumed that |
487 Trace(KDebugPrintD, "aReplyType: ", aReplyType); |
475 Trace(KDebugPrintD, "aReplyType: ", aReplyType); |
488 switch ( aReplyType ) |
476 switch ( aReplyType ) |
489 { |
477 { |
490 case EReplyTypeOther: |
478 case EReplyTypeOther: |
491 break; |
479 break; |
492 #ifdef PROTOCOL_TDSCDMA |
|
493 case EReplyTypeEditor: |
480 case EReplyTypeEditor: |
494 CreateEditModeBuffer( iReplyBuffer ); |
481 CreateEditModeBuffer( iReplyBuffer ); |
495 break; |
482 break; |
496 #endif |
|
497 case EReplyTypeOk: |
483 case EReplyTypeOk: |
498 CreateOkOrErrorReply( iReplyBuffer, ETrue ); |
484 CreateOkOrErrorReply( iReplyBuffer, ETrue ); |
499 break; |
485 break; |
500 case EReplyTypeError: |
486 case EReplyTypeError: |
501 CreateOkOrErrorReply( iReplyBuffer, EFalse ); |
487 CreateOkOrErrorReply( iReplyBuffer, EFalse ); |