author | William Roberts <williamr@symbian.org> |
Sun, 14 Mar 2010 13:12:13 +0000 | |
branch | CompilerCompatibility |
changeset 49 | 93bab755042a |
parent 37 | 5d0ec8b709be |
child 56 | c210248fa89d |
permissions | -rw-r--r-- |
19 | 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 |
#ifndef C_LOGGINGCALLBACK_H |
|
19 |
#define C_LOGGINGCALLBACK_H |
|
20 |
||
21 |
||
22 |
/** |
|
23 |
* Forward declarations |
|
24 |
*/ |
|
25 |
class MLoggingCallBack ; |
|
26 |
||
27 |
/** |
|
28 |
* CallBack fuction called by core dll loggingservice.lib on reciving |
|
29 |
* Logging updates from log server |
|
30 |
* Implements HandleNotifyL() from base class MLoggingCallBack |
|
31 |
* |
|
32 |
* @loggingservice.lib dependency |
|
33 |
* @see MLoggingCallBack in loggingasyncservice.h for details. |
|
34 |
*/ |
|
35 |
class LoggingInterfaceCB : public MLoggingCallback |
|
36 |
{ |
|
37 |
public : |
|
38 |
||
39 |
/** |
|
40 |
* Construction method for call back class |
|
41 |
* |
|
42 |
* @param aCallBack: Callback object after reciving logging updates from core class |
|
43 |
* @param aInParamList: input paramater list for logging request |
|
44 |
* @param aOutParamList: out put paramater list to be which will contained logging information |
|
45 |
* @param aModuleInfo module information of positioning module used |
|
46 |
*/ |
|
47 |
||
48 |
static LoggingInterfaceCB * NewL( MLiwNotifyCallback* aCallBack ) ; |
|
49 |
||
50 |
/** |
|
51 |
* Function to set call back object type , this is needed to |
|
52 |
* for sending Event notifications to users(KLiwEventCompleted/KLiwEventInProgress) |
|
53 |
* @aRequestType request type |
|
54 |
*/ |
|
55 |
||
56 |
inline void SetRequestType( TInt aRequestType ) |
|
57 |
{ |
|
58 |
iRequestType = aRequestType ; |
|
59 |
} |
|
60 |
||
61 |
/** |
|
62 |
* Implementation of HandleNotifyL method, derived from MLoggingCB |
|
63 |
* |
|
64 |
* @param aTransid, Transaction id |
|
65 |
* @param aStaus , status of the async request |
|
66 |
* @iter, iterator for getlist results |
|
67 |
*/ |
|
68 |
||
69 |
void HandleNotifyL( TUint aTransid, TUint aStatus, CLogIter *aiter ) ; |
|
70 |
||
71 |
/** |
|
37
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
72 |
* Implementation of HandleRequestL method, derived from MLoggingCB |
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
73 |
* |
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
74 |
* @param aTransid, Transaction id |
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
75 |
* @param aStaus , status of the async request |
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
76 |
* @parm, aEvents, data for notification |
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
77 |
*/ |
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
78 |
void HandleReqeustL( TUint aTransid, TUint aStatus, CLogsEvent *aEvents ) ; |
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
79 |
|
5d0ec8b709be
Revision: 200949
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
80 |
/** |
19 | 81 |
* Implementation of CancelNotifyL method, derived from MLoggingCB |
82 |
* |
|
83 |
* @param aTransid, Transaction id |
|
84 |
*/ |
|
85 |
||
86 |
void CancelNotifyL( TUint aTransid ); |
|
87 |
||
88 |
/** |
|
89 |
* GetRequestType |
|
90 |
*/ |
|
91 |
inline TUint GetRequestType( void ) |
|
92 |
{ |
|
93 |
return iRequestType ; |
|
94 |
} |
|
95 |
||
96 |
/** |
|
97 |
* destructor |
|
98 |
*/ |
|
99 |
virtual ~LoggingInterfaceCB( ) ; //Default destructor |
|
100 |
||
101 |
protected: |
|
102 |
||
103 |
||
104 |
/** |
|
105 |
* Overloaded constructor which registers the callback adders |
|
106 |
* |
|
107 |
* @param aCallBack: Callback object after reciving logging updates from core class |
|
108 |
* @param aInParamList: input paramater list for logging request |
|
109 |
* @param aOutParamList: out put paramater list to be which will contained logging information |
|
110 |
* @param aModuleInfo module information of positioning module used |
|
111 |
*/ |
|
112 |
||
113 |
LoggingInterfaceCB( MLiwNotifyCallback* aCallBack ) ; |
|
114 |
||
115 |
||
116 |
||
117 |
private : |
|
118 |
||
119 |
MLiwNotifyCallback *iCallBack ; |
|
120 |
CLiwGenericParamList *iOutParmList ; |
|
121 |
// CLiwGenericParamList *iInParmList ; |
|
122 |
TUint iRequestType ; |
|
123 |
||
124 |
||
125 |
}; |
|
126 |
||
127 |
#endif // C_LOGGINGCALLBACK_H |