adaptationlayer/tsy/simatktsy_dll/internal/test/simatktsy_testtool/simatk/inc/commandselectitem.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:   Select Item specific test class. Inherits CCommandBase.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef COMMANDSELECTITEM_H
       
    21 #define COMMANDSELECTITEM_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "satmenubase.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Class provides functionality to verify the validity SelectItem
       
    30 *  proactive command and to create an ETel response for it.
       
    31 *  @lib SimAtk.dll
       
    32 */
       
    33 NONSHARABLE_CLASS( CCommandSelectItem ) : public CSatMenuBase
       
    34     {
       
    35     
       
    36     public:  // Constructors and destructor
       
    37         
       
    38         /**
       
    39         * Constructor.
       
    40         */     
       
    41         CCommandSelectItem( const TSatIpc aIpc, const RSat& aSat,
       
    42             CStifItemParser& aParser, CStifLogger& aLog );
       
    43         
       
    44        /**
       
    45         * Destructor.
       
    46         */
       
    47         ~CCommandSelectItem();
       
    48 
       
    49     public: // Implemented pure virtual methods from CSatBase
       
    50 
       
    51         /**
       
    52         * Method requests notifications from Etel and
       
    53         * and resets the internal data structure.
       
    54         * @param aSimAtkStatus Reference to active object's request status
       
    55         * @return KErrNone
       
    56         */
       
    57         TInt NotifySat( TRequestStatus& aSimAtkStatus );
       
    58         
       
    59         /**
       
    60         * Method verifies the validity of received data by compaing
       
    61         * them against scripted parameters.
       
    62         * @return KErrNone if date was valid or KErrCorrupt if received data
       
    63         *   and script did not match.
       
    64         */
       
    65         TInt CheckData();
       
    66         
       
    67     public: // Implemented pure virtual methods from CCommandBase
       
    68     
       
    69         /**
       
    70         * Constructs response packet for Etel from scripted
       
    71         * parameters.
       
    72         * @return KErrNone or KErrCorrupt if parsing failed or mandatory
       
    73         *   parameters were missing.
       
    74         */
       
    75         TInt SendResponse();
       
    76 
       
    77         
       
    78     private:  // Data
       
    79       
       
    80         // Proactive command data and package
       
    81         RSat::TSelectItemV2                 iData;
       
    82         RSat::TSelectItemV2Pckg             iDataPckg;
       
    83 
       
    84         // Response data and package
       
    85         RSat::TSelectItemRspV1              iRsp;
       
    86         RSat::TSelectItemRspV1Pckg          iRspPckg;
       
    87     };
       
    88 
       
    89 #endif      // COMMANDSELECTITEM_H
       
    90             
       
    91 // End of File