telephonyserverplugins/simatktsy/tests/inc/ccsatgetinkeyfu.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // functional unit of the SAT.
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @file The TEFUnit header file which tests the GetInkey
       
    21 */
       
    22 
       
    23 #ifndef CCSATGETINKEYFU_H
       
    24 #define CCSATGETINKEYFU_H
       
    25 
       
    26 #include <test/tefunit.h>
       
    27 
       
    28 #include <etelmm.h>
       
    29 #include <etelmmcs.h>
       
    30 
       
    31 #include "ccsatcomponenttestbase.h"
       
    32 
       
    33 class CCSatGetInkeyFU : public CCSatComponentTestBase
       
    34 	{
       
    35 public:
       
    36 	
       
    37 	// Create a suite of all the tests
       
    38 	static CTestSuite* CreateSuiteL(const TDesC& aName);
       
    39 
       
    40 public:
       
    41 	// Individual test steps
       
    42 
       
    43 	void TestNotifyGetInkeyPCmd0001L();
       
    44 	void TestNotifyGetInkeyPCmd0002L();
       
    45 	void TestNotifyGetInkeyPCmd0004L();
       
    46 	
       
    47 	void TestNotifyGetInkeyPCmd0001bL();
       
    48 
       
    49 private:
       
    50 
       
    51 	struct TData
       
    52 		{
       
    53 		struct TIcon
       
    54 			{
       
    55 			TIcon(); 
       
    56 			void Clear();
       
    57 
       
    58 			TBool iIfUse;
       
    59 			TUint8 iQualifier;
       
    60 			TUint8 iIdentifier;
       
    61 			};
       
    62 		
       
    63 		TIcon iIcon;
       
    64 		TUint8 iCommandQualifier;
       
    65 		TUint8 iCodingScheme;
       
    66 		TBuf8<RSat::KGetInkeyTextMaxSize> iText;
       
    67 		};	
       
    68 
       
    69 	void PrepareTlvData ( TTlv& aTlvData );
       
    70 
       
    71 	void PrepareExpectDataL ();
       
    72 	
       
    73 	void PrepareCompleteDataL ( TInt aResultCode = KErrNone );
       
    74 
       
    75 	void ProactiveCommandCallL( RSat::TGetInkeyV2& aGetInkeyData,
       
    76 			                    TInt aCompleteErrorCode = KErrNone, 
       
    77 			                    TInt aResultCode = KErrNone );
       
    78 
       
    79 	void DataInitialization(
       
    80 			const TData::TIcon& aIcon,
       
    81 			const TDesC8& aText = KNullDesC8,
       
    82 			TUint8 aCommandQualifier = 0,
       
    83 			TUint8 aCodingScheme = K8BitDCS);
       
    84 
       
    85 	void TerminalResponseCallL(
       
    86 			const RSat& aSat,
       
    87 			RSat::TPCmdResult aGeneralResult = RSat::KSuccess,
       
    88 			TUint aInfoType = RSat::KNoAdditionalInfo,
       
    89 			const TDesC8& aText = KNullDesC8,
       
    90 			TUint8 aCodingScheme = K8BitDCS,
       
    91 			TInt aCodeError = KErrNone,
       
    92 			RSat::TGetInkeyRspFormat aRspFormat = RSat::EDigitOnly);
       
    93 	
       
    94 	void DataCompareL( const RSat::TGetInkeyV2& aGetInkeyData );
       
    95 
       
    96 	TData iData;
       
    97 
       
    98 	}; // class CCSatGetInkeyFU
       
    99 
       
   100 #endif // CCSATGETINKEYFU_H
       
   101