os/security/authorisation/userpromptservice/test/include/tupstesteractive.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2007-2009 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: 
    15 *
    16 */
    17 
    18 
    19 /**
    20  @file  
    21  @test 
    22 */
    23 
    24 #ifndef TUPSINTERACTIVE
    25 #define TUPSINTERACTIVE 
    26  
    27 #include <e32base.h>
    28 #include "tups_clientapi_sysserver.h"
    29 
    30 #include <ups/upstypes.h>
    31 
    32 class CUPSTestSession;
    33 
    34 class CTUPSTesterActive : public CActive
    35 	{
    36 	public:
    37 		CTUPSTesterActive(const RMessage2& aMessage);
    38 		~CTUPSTesterActive();
    39 
    40 		// From CActive
    41 		void DoCancel()	{return; };
    42 		void RunL();
    43 		virtual TInt RunError(TInt aError);
    44 		void PackageReturnDataL(TInt aError);
    45 		
    46 		// Customized.
    47 		TInt doActiveUpsRequest(CUPSTestSession* aTestServerSession);
    48         
    49         // state machine enumeration
    50 		enum EState
    51 		{
    52 			EIdle,
    53 			ERequestAuthorization,
    54 			ESomething
    55 		};  
    56 		
    57 	private:
    58 	
    59 		RMessage2 					iMessage;
    60 		TUint32 					iStartTime;
    61 		TUint32 					iEndTime;
    62 		EState						iState;
    63 		TUpsTestServiceReturn 		iReturnData;
    64 		
    65 		// data 
    66 		CUPSTestSession* 			iServerSessionPointer;
    67 		TUpsDecision  				iDecision;
    68 		TPtrC 						iSerDest;
    69 		TPtrC8 						iOpaqueData;
    70 
    71 	} ;
    72 	
    73 #endif