telephonyserverplugins/simatktsy/tests/inc/ccsatselectitemfu.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 SelectItem
       
    21 */
       
    22 
       
    23 #ifndef CCSATSELECTITEMFU_H
       
    24 #define CCSATSELECTITEMFU_H
       
    25 
       
    26 #include <test/tefunit.h>
       
    27 
       
    28 #include <etelmm.h>
       
    29 #include <etelmmcs.h>
       
    30 
       
    31 #include "ccsatcomponenttestbase.h"
       
    32 
       
    33 class CCSatSelectItemFU : public CCSatComponentTestBase
       
    34 	{
       
    35 public:
       
    36 	// Create a suite of all the tests
       
    37 	static CTestSuite* CreateSuiteL(const TDesC& aName);
       
    38 
       
    39 public:
       
    40 	// Individual test steps
       
    41 
       
    42 	void TestNotifySelectItemPCmd0001L();
       
    43 	void TestNotifySelectItemPCmd0001bL();
       
    44 	void TestNotifySelectItemPCmd0001cL();
       
    45 	void TestNotifySelectItemPCmd0001dL();
       
    46 	void TestNotifySelectItemPCmd0001eL();
       
    47 	void TestNotifySelectItemPCmd0001fL();
       
    48 	void TestNotifySelectItemPCmd0001gL();
       
    49 	void TestNotifySelectItemPCmd0001hL();
       
    50 	void TestNotifySelectItemPCmd0001iL();
       
    51 	void TestNotifySelectItemPCmd0001jL();
       
    52 	void TestNotifySelectItemPCmd0001kL();
       
    53 	void TestNotifySelectItemPCmd0001lL();
       
    54 	void TestNotifySelectItemPCmd0002L();
       
    55 	void TestNotifySelectItemPCmd0004L();
       
    56 	
       
    57 private:
       
    58 	
       
    59 	void PrepareSelItemCompleteDataL(
       
    60 			TUint8 aCmdNum,
       
    61 			TUint8 aCmdQual,
       
    62 			RSat::TAlphaIdStatus aAlphaIdStatus = RSat::EAlphaIdNotSet,
       
    63 			const TDesC8& aAlpha = KNullDesC8,
       
    64 			TUint8 aNumItems = 0,
       
    65 			const TUint8* aItemIds = NULL,
       
    66 			const TPtrC8* aItemNames = NULL,
       
    67 			const RArray<TUint32>* aActionArr = NULL,
       
    68 			RSat::TIconQualifier aIconQual = RSat::EIconQualifierNotSet,
       
    69 			TUint8 aIcon = 0,
       
    70 			RSat::TIconQualifier aIconListQual = RSat::EIconQualifierNotSet,
       
    71 			const RArray<TUint32>* aIconList = NULL,
       
    72 			TUint8 aDefaultItem = 0,
       
    73 			TInt aResult = KErrNone,
       
    74 			TInt aDelay = 1);
       
    75 
       
    76 	void TestNotifySelectItemPCmdL(
       
    77 			TUint8 aCmdNum,
       
    78 			TUint8 aCmdQual,
       
    79 			RSat::TSatVersion aParamVersion = RSat::KSatV2,
       
    80 			RSat::TAlphaIdStatus aAlphaIdStatus = RSat::EAlphaIdNotSet,
       
    81 			const TDesC8& aAlpha = KNullDesC8,
       
    82 			TUint8 aNumItems = 0,
       
    83 			const TUint8* aItemIds = NULL,
       
    84 			const TPtrC8* aItemNames = NULL,
       
    85 			const RArray<TUint32>* aActionArr = NULL,
       
    86 			RSat::TIconQualifier aIconQual = RSat::EIconQualifierNotSet,
       
    87 			TUint8 aIcon = 0,
       
    88 			RSat::TIconQualifier aIconListQual = RSat::EIconQualifierNotSet,
       
    89 			const RArray<TUint32>* aIconList = NULL,
       
    90 			TUint8 aDefaultItem = 0,
       
    91 			TInt aResult = KErrNone,
       
    92 			const TDesC16* aAlphaIdCheck = NULL,
       
    93 			const TPtrC16* aItemNamesCheck = NULL);
       
    94 
       
    95 	void GenerateSelItemTerminalResponseL(
       
    96 			TUint8 aSelectItemPCmdQualifier,
       
    97 			const RSat::TSelectItemRspV1& aResp,
       
    98 			const TInt aExpResult = KErrNone);
       
    99 	
       
   100 	}; // class CCSatSelectItemFU
       
   101 
       
   102 #endif // CCSATSELECTITEMFU_H
       
   103