|
1 // Copyright (c) 2002-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 "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 __LOGCLIENTOBSERVER_H__ |
|
17 #define __LOGCLIENTOBSERVER_H__ |
|
18 |
|
19 // System includes |
|
20 #include <e32base.h> |
|
21 |
|
22 // User includes |
|
23 #include <logwrap.h> |
|
24 |
|
25 // Classes referenced |
|
26 class CLogClient; |
|
27 class MLogClientChangeObserver; |
|
28 |
|
29 |
|
30 ///////////////////////////////////////////////////////////////////////////////////////// |
|
31 // -----> CLogClientObserver (header) |
|
32 ///////////////////////////////////////////////////////////////////////////////////////// |
|
33 NONSHARABLE_CLASS(CLogClientObserver) : public CActive |
|
34 /** |
|
35 @internalComponent |
|
36 */ |
|
37 { |
|
38 public: |
|
39 static CLogClientObserver* NewL(CLogClient& aClient, MLogClientChangeObserver& aObserver, TInt aPriority); |
|
40 ~CLogClientObserver(); |
|
41 |
|
42 private: |
|
43 CLogClientObserver(CLogClient& aClient, MLogClientChangeObserver& aObserver, TInt aPriority); |
|
44 |
|
45 private: // FROM CActive |
|
46 void RunL(); |
|
47 void DoCancel(); |
|
48 TInt RunError(TInt aError); |
|
49 |
|
50 private: |
|
51 void RequestChanges(); |
|
52 void RequestChangesCancel(); |
|
53 void NotifyObserverL(); |
|
54 |
|
55 private: |
|
56 CLogClient& iClient; |
|
57 MLogClientChangeObserver& iObserver; |
|
58 // |
|
59 TPckgBuf<TInt> iContextBuf; |
|
60 TPckgBuf<TInt> iParamBuf1; |
|
61 TPckgBuf<TInt> iParamBuf2; |
|
62 TPckgBuf<TInt> iParamBuf3; |
|
63 }; |
|
64 |
|
65 |
|
66 #endif |