adaptationlayer/tsy/simatktsy_dll/internal/test/simatktsy_testtool/simatk/inc/commandsendussd.h
changeset 4 510c70acdbf6
parent 3 1972d8c2e329
child 5 8ccc39f9d787
equal deleted inserted replaced
3:1972d8c2e329 4:510c70acdbf6
     1 /*
       
     2 * Copyright (c) 2002-2006 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 the License "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 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   SendUssd specific test class. Inherits CCommandBase.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef COMMANDSENDUSSD_H
       
    21 #define COMMANDSENDUSSD_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "satcommandbase.h"
       
    25 #include "satcontrollable.h"
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  Class provides functionality to verify the validity of SendUssd
       
    31 *  proactive command and to create an ETel response for it.
       
    32 *  @lib SimAtk.dll
       
    33 */
       
    34 NONSHARABLE_CLASS( CCommandSendUssd ) 
       
    35     : public CSatCommandBase, public MSatControllable
       
    36     {
       
    37     
       
    38     public:  // Constructors and destructor
       
    39         
       
    40         /**
       
    41         * Constructor.
       
    42         */     
       
    43         CCommandSendUssd( const TSatIpc aIpc, const RSat& aSat,
       
    44             CStifItemParser& aParser, CStifLogger& aLog );
       
    45         
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         ~CCommandSendUssd();
       
    50         
       
    51                 
       
    52     public: // Implemented pure virtual methods from CSatBase
       
    53 
       
    54         /**
       
    55         * Method requests notifications from Etel and
       
    56         * and resets the internal data structure.
       
    57         * @param aSimAtkStatus Reference to active object's request status
       
    58         * @return KErrNone
       
    59         */
       
    60         TInt NotifySat( TRequestStatus& aSimAtkStatus );
       
    61         
       
    62         /**
       
    63         * Method verifies the validity of received data by compaing
       
    64         * them against scripted parameters.
       
    65         * @return KErrNone if date was valid or KErrCorrupt if received data
       
    66         *   and script did not match.
       
    67         */
       
    68         TInt CheckData();
       
    69 
       
    70 
       
    71     public: // Implemented pure virtual methods from CCommandBase
       
    72     
       
    73         /**
       
    74         * Constructs response packet for Etel from scripted
       
    75         * parameters.
       
    76         * @return KErrNone or KErrCorrupt if parsing failed or mandatory
       
    77         *   parameters were missing.
       
    78         */
       
    79         TInt SendResponse();
       
    80 
       
    81         
       
    82     private: // Data
       
    83     
       
    84         // Proactive command data and package
       
    85         RSat::TSendUssdV1             iData;
       
    86         RSat::TSendUssdV1Pckg         iDataPckg;
       
    87         
       
    88         // Response data and package
       
    89         RSat::TSendUssdRspV1          iRsp;
       
    90         RSat::TSendUssdRspV1Pckg      iRspPckg;
       
    91     };
       
    92 
       
    93 #endif // COMMANDSENDUSSD_H
       
    94             
       
    95 // End of File