First public contribution.
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 "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test/debug/rventtracker.h
18 #ifndef __REVENTTRACKER_H__
19 #define __REVENTTRACKER_H__
23 #ifndef __KERNEL_MODE__
25 #endif // __KERNEL_MODE__
27 _LIT(KTestLddName, "TestEventTracker");
28 _LIT8(KUseStopModeHook, "UseStopModeHook");
30 /** Session with event tracking debug agent */
32 class REventTracker: public RBusLogicalChannel
41 static inline TVersion Version() { return TVersion(1, 0, 1); }
42 #ifndef __KERNEL_MODE__
44 inline TInt Open(TBool aUseHook);
51 #ifndef __KERNEL_MODE__
53 inline TInt REventTracker::Open(TBool aUseHook)
55 return DoCreate(KTestLddName, Version(), aUseHook, NULL, NULL, EOwnerThread);
58 inline TInt REventTracker::Start()
60 return DoControl(EStart);
63 inline TInt REventTracker::Stop()
65 return DoControl(EStop);
68 #endif // __KERNEL_MODE__
70 #endif // __REVENTTRACKER_H__