sl@0: /* sl@0: * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @test sl@0: */ sl@0: sl@0: #ifndef TUPSINTERACTIVE sl@0: #define TUPSINTERACTIVE sl@0: sl@0: #include sl@0: #include "tups_clientapi_sysserver.h" sl@0: sl@0: #include sl@0: sl@0: class CUPSTestSession; sl@0: sl@0: class CTUPSTesterActive : public CActive sl@0: { sl@0: public: sl@0: CTUPSTesterActive(const RMessage2& aMessage); sl@0: ~CTUPSTesterActive(); sl@0: sl@0: // From CActive sl@0: void DoCancel() {return; }; sl@0: void RunL(); sl@0: virtual TInt RunError(TInt aError); sl@0: void PackageReturnDataL(TInt aError); sl@0: sl@0: // Customized. sl@0: TInt doActiveUpsRequest(CUPSTestSession* aTestServerSession); sl@0: sl@0: // state machine enumeration sl@0: enum EState sl@0: { sl@0: EIdle, sl@0: ERequestAuthorization, sl@0: ESomething sl@0: }; sl@0: sl@0: private: sl@0: sl@0: RMessage2 iMessage; sl@0: TUint32 iStartTime; sl@0: TUint32 iEndTime; sl@0: EState iState; sl@0: TUpsTestServiceReturn iReturnData; sl@0: sl@0: // data sl@0: CUPSTestSession* iServerSessionPointer; sl@0: TUpsDecision iDecision; sl@0: TPtrC iSerDest; sl@0: TPtrC8 iOpaqueData; sl@0: sl@0: } ; sl@0: sl@0: #endif