diff -r 39bb7c3571e9 -r 052078dda061 networkcontrol/ipupsplugins/test/te_ipups/inc/te_ipups_ups_step.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/networkcontrol/ipupsplugins/test/te_ipups/inc/te_ipups_ups_step.h Tue Jun 29 19:20:22 2010 +0530 @@ -0,0 +1,93 @@ +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +/** + @file + @test + @internalComponent - Internal Symbian test code +*/ + + +#if (!defined TE_IPUPS_UPS_STEP_H) +#define TE_IPUPS_UPS_STEP_H +#include +#include "te_ipups_stepbase.h" +#include + +class CIpUpsStep : public CTeIpUpsStepBase + { +public: + CIpUpsStep(); + ~CIpUpsStep(); + virtual TVerdict doTestStepPreambleL(); + virtual TVerdict doTestStepL(); + virtual TVerdict doTestStepPostambleL(); +private: + UserPromptService::CPolicy::TOptions ButtonToOption(const TPtrC& aButton); + TPtrC TUpsDecisionToString(TUpsDecision aDecision); + TUpsDecision TUpsDecisionFromString(const TPtrC& aDecision); + TBool OptionsFlagToString(TUint aOptions, TDes& aOptionString, TBool aCheckAgainstExpectedOpt=ETrue); + TBool VerifyAndPrintPromptDataL(); + void GetValueAt(const TInt aPos, const TPtrC& aArrayString, const TChar aDelimeter, TDes& aValue); + + void GetSessionAndSubSession(UserPromptService::RUpsSession& aUpsSession, UserPromptService::RUpsSubsession& aUpsSubsession); + + TInt iNotifyCount; + UserPromptService::CPromptData* iPromptData; + + TInt iServiceUID; + TPtrC iServerName; + TPtrC iDestination; + TPtrC iOpaqueData; + TBuf8<64> iOpaqueDataStored; + TPtrC iDialogOption; + TPtrC iExpectedDialogOptions; + TBool iPlatSecPass; + TPtrC iExpectedUpsDecision; + TInt iPromptTriggerCount; + TInt iNoOfAuthoriseCalls; + TBool iCancelPromptCall; + + TBool iAlwaysOpenNewSession; + + TBool iUseSameSubSession; + TBool iUseSameSubSessionAfterClose; + TBool iAlwaysOpenNewSubSession; + TInt iTestNotifierMode; + }; + +_LIT(KIpUpsClientStep,"IpUpsStep"); + +_LIT(KIpUpsServiceId, "ServiceId"); +_LIT(KIpUpsDestination, "Destination"); +_LIT(KIpUpsOpaqueData, "OpaqueData"); +_LIT(KIpUpsDialogOptionSelection, "DialogOptionSelection"); +_LIT(KExpectedDialogOptions, "ExpectedDialogOptions"); +_LIT(KIpUpsPlatSecPass, "PlatSecPass"); +_LIT(KIpUpsExpectedDecision, "ExpectedUpsDecision"); +_LIT(KIpUpsPromptTriggerCount, "PromptTriggerCount"); +_LIT(KIpUpsNoOfAuthoriseCalls, "NoOfAuthoriseCalls"); +_LIT(KIpUpsCancelPromptCall, "CancelPromptCall"); + +_LIT(KIpUpsAlwaysOpenNewSession, "AlwaysOpenNewSession"); + +_LIT(KIpUpsUseSameSubSession, "UseSameSubSession"); +_LIT(KIpUpsUseSameSubSessionAfterClose, "UseSameSubSessionAfterClose"); +_LIT(KIpUpsAlwaysOpenNewSubSession, "AlwaysOpenNewSubSession"); + +const TInt KMaxNoOfAuthoriseCalls = 10; +const TChar KIniFileDelimeter = ','; + +#endif