cbsatplugin/atmisccmdplugin/inc/cgsncommandhandler.h
branchRCL_3
changeset 72 4b59561a31c0
parent 64 1934667b0e2b
equal deleted inserted replaced
64:1934667b0e2b 72:4b59561a31c0
     1 /*
       
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  * Initial Contributors:
       
     9  * Nokia Corporation - initial contribution.
       
    10  *
       
    11  * Contributors:
       
    12  * 
       
    13  * Description :
       
    14  * 
       
    15  * CGSNCommandHandler class declaration for AT+CGSN command
       
    16  * 
       
    17  */
       
    18 
       
    19 #ifndef CGSNCOMMANDHANDLER_H
       
    20 #define CGSNCOMMANDHANDLER_H
       
    21 
       
    22 #include "atcmdsyncbase.h"
       
    23 
       
    24 #include <etel3rdparty.h>
       
    25 
       
    26 /**
       
    27  *  AT+CGSN command handler implementation class
       
    28  */
       
    29 NONSHARABLE_CLASS( CCGSNCommandHandler ) : public CATCmdSyncBase
       
    30     {
       
    31 public:
       
    32     static CCGSNCommandHandler* NewL(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone);
       
    33     ~CCGSNCommandHandler();
       
    34     
       
    35 public:
       
    36     void SetSerialNum(const TDesC8& aSerial);
       
    37     void SetTelephonyError(TInt aTelError);  
       
    38 
       
    39 private: // methods from CATCmdSyncBase    
       
    40     virtual void HandleCommand( const TDesC8& aCmd, RBuf8& aReply, TBool aReplyNeeded );
       
    41     
       
    42 private:
       
    43     CCGSNCommandHandler(MATMiscCmdPlugin* aCallback, TAtCommandParser& aATCmdParser, RMobilePhone& aPhone);
       
    44     void ConstructL();
       
    45     
       
    46 private:
       
    47     TInt    iTelError;
       
    48     TBuf8<CTelephony::KPhoneSerialNumberSize> iSN;
       
    49     
       
    50     RBuf8   iReply;
       
    51     };
       
    52 
       
    53 #endif /* CGSNCOMMANDHANDLER_H */