sl@0: /*
sl@0: * Copyright (c) 2008-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 "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: * Name        : ttimerthread.h
sl@0: * 
sl@0: *
sl@0: */
sl@0: 
sl@0: #ifndef __TTIMERTHREAD__
sl@0: #define __TTIMERTHREAD__
sl@0: 
sl@0: #include <e32base.h>
sl@0: #include <time.h>
sl@0: #include <signal.h>
sl@0: #include <test/testexecutestepbase.h>
sl@0: 
sl@0: class TTimerTestThreadParams
sl@0:     {
sl@0: public:
sl@0:     TTimerTestThreadParams(CTestStep& aTestStep)
sl@0:     : iTestStep(aTestStep),
sl@0:       iTestResult(ETrue)
sl@0:     {
sl@0:         
sl@0:         
sl@0:     }
sl@0:     ~TTimerTestThreadParams()
sl@0:      {
sl@0:      
sl@0:      }
sl@0:     public:
sl@0:         CTestStep&          iTestStep;
sl@0:         TBool               iTestResult;
sl@0:     };
sl@0: class CTimerTestThread:public CBase
sl@0:     {
sl@0:     public:
sl@0:         
sl@0:       static CTimerTestThread* NewL(TTimerTestThreadParams& aParam);
sl@0:       ~CTimerTestThread();
sl@0:       CTimerTestThread(TTimerTestThreadParams& aParam);
sl@0:       static TInt OEEntry(TAny* aData);
sl@0:       static void OEMainL(TTimerTestThreadParams& aParams);
sl@0:     private:
sl@0:       void doOperation();
sl@0:       TBool compareTimeSpec(struct itimerspec timeSpec1, struct itimerspec timeSpec2);
sl@0:     private:
sl@0:      CTestStep&                   iParentStep;
sl@0:      TTimerTestThreadParams&          iParams;
sl@0:         
sl@0:     };
sl@0: 
sl@0: #endif //__TTIMERTHREAD__