diff -r 000000000000 -r bde4ae8d615e os/security/authorisation/userpromptservice/test/include/tupstesteractive.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/security/authorisation/userpromptservice/test/include/tupstesteractive.h Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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 +*/ + +#ifndef TUPSINTERACTIVE +#define TUPSINTERACTIVE + +#include +#include "tups_clientapi_sysserver.h" + +#include + +class CUPSTestSession; + +class CTUPSTesterActive : public CActive + { + public: + CTUPSTesterActive(const RMessage2& aMessage); + ~CTUPSTesterActive(); + + // From CActive + void DoCancel() {return; }; + void RunL(); + virtual TInt RunError(TInt aError); + void PackageReturnDataL(TInt aError); + + // Customized. + TInt doActiveUpsRequest(CUPSTestSession* aTestServerSession); + + // state machine enumeration + enum EState + { + EIdle, + ERequestAuthorization, + ESomething + }; + + private: + + RMessage2 iMessage; + TUint32 iStartTime; + TUint32 iEndTime; + EState iState; + TUpsTestServiceReturn iReturnData; + + // data + CUPSTestSession* iServerSessionPointer; + TUpsDecision iDecision; + TPtrC iSerDest; + TPtrC8 iOpaqueData; + + } ; + +#endif