|
1 // Copyright (c) 2007-2010 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 "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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __TRACEONACTIVATION_H__ |
|
17 #define __TRACEONACTIVATION_H__ |
|
18 |
|
19 #include <kernel/kernel.h> |
|
20 #include <kernel/kern_priv.h> |
|
21 #include <TraceCoreNotificationReceiver.h> |
|
22 |
|
23 //- Forward Declarations ---------------------------------------------------- |
|
24 class TTraceOnActivationParams; |
|
25 class DTcChannel; |
|
26 class DTraceConnection; |
|
27 |
|
28 /** |
|
29 |
|
30 Logical device factory object |
|
31 |
|
32 */ |
|
33 class DTcFactory : public DLogicalDevice |
|
34 { |
|
35 public: |
|
36 DTcFactory(); |
|
37 virtual ~DTcFactory(); |
|
38 virtual TInt Install(); |
|
39 virtual void GetCaps(TDes8& aDes) const; |
|
40 virtual TInt Create(DLogicalChannelBase*& aChannel); |
|
41 }; |
|
42 |
|
43 |
|
44 /** |
|
45 |
|
46 The Kernel side logical channel |
|
47 |
|
48 */ |
|
49 class DTcChannel : public DLogicalChannel |
|
50 { |
|
51 public: |
|
52 DTcChannel(DLogicalDevice* aDevice); |
|
53 virtual ~DTcChannel(); |
|
54 virtual TInt DoCreate(TInt aUnit, const TDesC8* aInfo, const TVersion& aVer); |
|
55 |
|
56 virtual void HandleMsg(TMessageBase* aMsg); |
|
57 TInt DoControl(TInt aFunction, TAny* a1); |
|
58 TInt RegisterNotificationReceiver( TTraceOnActivationParams* aParameters ); |
|
59 TInt UnregisterNotificationReceiver( TTraceOnActivationParams* aParameters ); |
|
60 virtual TInt TraceActivated( TUint32 aComponentId, TUint16 aGroupId ); |
|
61 virtual TInt TraceDeactivated( TUint32 aComponentId, TUint16 aGroupId ); |
|
62 |
|
63 private: |
|
64 DThread* iClientThread; // Store the pointer to the user thread |
|
65 DTraceConnection* iTraceConnection; |
|
66 TDfcQue* iActivationQue; |
|
67 }; |
|
68 |
|
69 #endif // __TRACEONACTIVATION_H__ |