|
1 /* |
|
2 * Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Header file for logging SAPI core implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_LOGGINGCALLBACK_H |
|
20 #define C_LOGGINGCALLBACK_H |
|
21 |
|
22 |
|
23 /** |
|
24 * Forward declarations |
|
25 */ |
|
26 class MLoggingCallBack ; |
|
27 |
|
28 /** |
|
29 * CallBack fuction called by core dll loggingservice.lib on reciving |
|
30 * Logging updates from log server |
|
31 * Implements HandleNotifyL() from base class MLoggingCallBack |
|
32 * |
|
33 * @loggingservice.lib dependency |
|
34 * @see MLoggingCallBack in loggingasyncservice.h for details. |
|
35 */ |
|
36 class LoggingInterfaceCB : public MLoggingCallback |
|
37 { |
|
38 public : |
|
39 |
|
40 /** |
|
41 * Construction method for call back class |
|
42 * |
|
43 * @param aCallBack: Callback object after reciving logging updates from core class |
|
44 * @param aInParamList: input paramater list for logging request |
|
45 * @param aOutParamList: out put paramater list to be which will contained logging information |
|
46 * @param aModuleInfo module information of positioning module used |
|
47 */ |
|
48 |
|
49 static LoggingInterfaceCB * NewL( MLiwNotifyCallback* aCallBack ) ; |
|
50 |
|
51 /** |
|
52 * Function to set call back object type , this is needed to |
|
53 * for sending Event notifications to users(KLiwEventCompleted/KLiwEventInProgress) |
|
54 * @aRequestType request type |
|
55 */ |
|
56 |
|
57 inline void SetRequestType( TInt aRequestType ) |
|
58 { |
|
59 iRequestType = aRequestType ; |
|
60 } |
|
61 |
|
62 /** |
|
63 * Implementation of HandleNotifyL method, derived from MLoggingCB |
|
64 * |
|
65 * @param aTransid, Transaction id |
|
66 * @param aStaus , status of the async request |
|
67 * @iter, iterator for getlist results |
|
68 */ |
|
69 |
|
70 void HandleNotifyL( TUint aTransid, TUint aStatus, CLogIter *aiter ) ; |
|
71 |
|
72 /** |
|
73 * Implementation of CancelNotifyL method, derived from MLoggingCB |
|
74 * |
|
75 * @param aTransid, Transaction id |
|
76 */ |
|
77 |
|
78 void CancelNotifyL( TUint aTransid ); |
|
79 |
|
80 /** |
|
81 * GetRequestType |
|
82 */ |
|
83 inline TUint GetRequestType( void ) |
|
84 { |
|
85 return iRequestType ; |
|
86 } |
|
87 |
|
88 /** |
|
89 * destructor |
|
90 */ |
|
91 virtual ~LoggingInterfaceCB( ) ; //Default destructor |
|
92 |
|
93 protected: |
|
94 |
|
95 |
|
96 /** |
|
97 * Overloaded constructor which registers the callback adders |
|
98 * |
|
99 * @param aCallBack: Callback object after reciving logging updates from core class |
|
100 * @param aInParamList: input paramater list for logging request |
|
101 * @param aOutParamList: out put paramater list to be which will contained logging information |
|
102 * @param aModuleInfo module information of positioning module used |
|
103 */ |
|
104 |
|
105 LoggingInterfaceCB( MLiwNotifyCallback* aCallBack ) ; |
|
106 |
|
107 |
|
108 |
|
109 private : |
|
110 |
|
111 MLiwNotifyCallback *iCallBack ; |
|
112 CLiwGenericParamList *iOutParmList ; |
|
113 // CLiwGenericParamList *iInParmList ; |
|
114 TUint iRequestType ; |
|
115 |
|
116 |
|
117 }; |
|
118 |
|
119 #endif // C_LOGGINGCALLBACK_H |