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