5
|
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 |
/**
|
|
72 |
* Implementation of CancelNotifyL method, derived from MLoggingCB
|
|
73 |
*
|
|
74 |
* @param aTransid, Transaction id
|
|
75 |
*/
|
|
76 |
|
|
77 |
void CancelNotifyL( TUint aTransid );
|
|
78 |
|
|
79 |
/**
|
|
80 |
* GetRequestType
|
|
81 |
*/
|
|
82 |
inline TUint GetRequestType( void )
|
|
83 |
{
|
|
84 |
return iRequestType ;
|
|
85 |
}
|
|
86 |
|
|
87 |
/**
|
|
88 |
* destructor
|
|
89 |
*/
|
|
90 |
virtual ~LoggingInterfaceCB( ) ; //Default destructor
|
|
91 |
|
|
92 |
protected:
|
|
93 |
|
|
94 |
|
|
95 |
/**
|
|
96 |
* Overloaded constructor which registers the callback adders
|
|
97 |
*
|
|
98 |
* @param aCallBack: Callback object after reciving logging updates from core class
|
|
99 |
* @param aInParamList: input paramater list for logging request
|
|
100 |
* @param aOutParamList: out put paramater list to be which will contained logging information
|
|
101 |
* @param aModuleInfo module information of positioning module used
|
|
102 |
*/
|
|
103 |
|
|
104 |
LoggingInterfaceCB( MLiwNotifyCallback* aCallBack ) ;
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
private :
|
|
109 |
|
|
110 |
MLiwNotifyCallback *iCallBack ;
|
|
111 |
CLiwGenericParamList *iOutParmList ;
|
|
112 |
// CLiwGenericParamList *iInParmList ;
|
|
113 |
TUint iRequestType ;
|
|
114 |
|
|
115 |
|
|
116 |
};
|
|
117 |
|
|
118 |
#endif // C_LOGGINGCALLBACK_H |