common/tools/ats/smoketest/messaging/Inc/TestMessWatcher.h
changeset 117 483f966c6335
child 872 17498133d9ad
equal deleted inserted replaced
113:7f0174848f99 117:483f966c6335
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This contains CTestMessWatcher which starts the message watchers
       
    15 // 
       
    16 //
       
    17 
       
    18 #if (!defined __TEST_MESS_WATCHER_H__)
       
    19 #define __TEST_MESS_WATCHER_H__
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <watcher.h>
       
    23 
       
    24 const TInt	KTestUtilsWatcherStarterMin = 5000000;
       
    25 
       
    26 class CTestMessWatcher : public CActive
       
    27 {
       
    28 public:
       
    29 	static CTestMessWatcher* NewL(TInt aPriority = EPriorityStandard);
       
    30 	~CTestMessWatcher();
       
    31 
       
    32 private:
       
    33 	CTestMessWatcher(TInt aPriority);
       
    34 	void	RunL();
       
    35 	void	DoCancel();
       
    36 	void	ConstructL();
       
    37 
       
    38 private:
       
    39 	RTimer						iTimer;
       
    40 	RProcess					iWatcher;
       
    41 	TBool						iConstructed;
       
    42 	TTimeIntervalMicroSeconds32	iTimeLeft;
       
    43 };
       
    44 
       
    45 #endif /* __TEST_MESS_WATCHER_H__ */