diff -r 826cea16efd9 -r 13a33d82ad98 videoutils_plat/videoconnutility_api/tsrc/VCXConnUtilTestExe/src/VCXConnUtilTestExe.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videoutils_plat/videoconnutility_api/tsrc/VCXConnUtilTestExe/src/VCXConnUtilTestExe.cpp Wed Sep 01 12:20:37 2010 +0100 @@ -0,0 +1,99 @@ +/* +* Copyright (c) 2002 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: ?Description* +*/ + + +// Include Files + +#include "VCXConnUtilTestExe.h" +#include +#include +#include "VCXTestLog.h" + +#include "VCXConnUtilTestCommon.h" +#include "CIptvTestActiveWait.h" +#include "CIptvTestTimer.h" +#include "VCXConnUtilTestExeTester.h" +#include "VCXTestTimerWait.h" + +// Constants + +// Global Variables + +// Local Functions + +// Implements just Error() to avoid panic +class CSimpleScheduler : public CActiveScheduler + { + void Error( TInt ) const{} // From CActiveScheduler + }; + +LOCAL_C void MainL() + { + VCXLOGLO1(">>>VCXConnUtilTestExe ## MainL"); + + RProcess process; + + CVCXTestTimerWait* wait = CVCXTestTimerWait::NewL(); + CleanupStack::PushL( wait ); + + // Create stopper class. + CVCXConnUtilTestExeTester* stopper = CVCXConnUtilTestExeTester::NewL( process.Id() ); + CleanupStack::PushL( stopper ); + + // Loop until done. + while( stopper->Running() ) + { + wait->WaitL( 1000000 ); + } + + VCXLOGLO1("VCXConnUtilTestExe ## Loop done!"); + + CleanupStack::PopAndDestroy( stopper ); + CleanupStack::PopAndDestroy( wait ); + + VCXLOGLO1("<<