48
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 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 "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: Definition of Movement Detection API
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef C_EXAMPLELOCATIONCONVERTER_H
|
|
20 |
#define C_EXAMPLELOCATIONCONVERTER_H
|
|
21 |
|
|
22 |
#include <e32base.h>
|
|
23 |
|
|
24 |
#include <commdb.h>
|
|
25 |
#include <lbs/lbslocinfoconverterpluginbase.h>
|
|
26 |
#include <lbs/lbslocinfoconverterpluginclasstypes.h>
|
|
27 |
#include <lbs/lbslocinfoconverterplugincommon.h>
|
|
28 |
|
|
29 |
#include <lbs/lbslocationinfoconvertercommon.h>
|
|
30 |
#include <lbs/lbslocationclasstypes.h>
|
|
31 |
#include <lbs/lbslocationcommon.h>
|
|
32 |
#include <lbs/lbslocationposinfo.h>
|
|
33 |
#include <lbs/lbslocationgsminfo.h>
|
|
34 |
#include <lbs/lbslocationgsmneighbourinfo.h>
|
|
35 |
#include <lbs/lbslocationinfo.h>
|
|
36 |
#include <lbs/lbslocationwcdmainfo.h>
|
|
37 |
#include <lbs/lbslocationwcdmaneighbourinfo.h>
|
|
38 |
#include <lbs/lbslocationwlaninfo.h>
|
|
39 |
|
|
40 |
/**
|
|
41 |
* CExampleLocationConverter is an ECom plugin that implements CLbsLocInfoConversionPluginBase.
|
|
42 |
*
|
|
43 |
* This class is responsible for monitering movement of mobile based on
|
|
44 |
* GSM information available to mobile at any instant.
|
|
45 |
*
|
|
46 |
* @lib movementdetector.lib
|
|
47 |
* @since S60 v4.0
|
|
48 |
*/
|
|
49 |
class CExampleLocationConverter : public CLbsLocInfoConverterPluginBase
|
|
50 |
|
|
51 |
{
|
|
52 |
|
|
53 |
public:
|
|
54 |
|
|
55 |
/**
|
|
56 |
* Loads a location info conveter and initalises it.
|
|
57 |
*
|
|
58 |
* @param[in] aObserver An observer for location conversion event.
|
|
59 |
* @param[in] aPluginArgs Agruements sent to conversion plugin.
|
|
60 |
* return Pointer to the new loation info converter.If module id is not specified
|
|
61 |
* default plug in will be loaded.
|
|
62 |
*/
|
|
63 |
static CExampleLocationConverter* NewL( TLbsLocInfoConverterPluginParams& aPluginParams );
|
|
64 |
|
|
65 |
/**
|
|
66 |
* Unloads this movement detector.
|
|
67 |
*
|
|
68 |
* @since S60 TACO
|
|
69 |
*/
|
|
70 |
virtual ~CExampleLocationConverter();
|
|
71 |
|
|
72 |
// From CLbsLocInfoConversionPluginBase
|
|
73 |
|
|
74 |
/**
|
|
75 |
* Converts the area informations of a group of geographical locations
|
|
76 |
* to its corresponding position information.
|
|
77 |
*
|
|
78 |
* @param[in] aLocationInfoArray Array of location informations corresponding
|
|
79 |
* to geographical locations are passed and on successful completion of this
|
|
80 |
* method,position information corresponding to the loation informations are
|
|
81 |
* updated in each area info object.
|
|
82 |
* @param[in] aConversionPrefs Conversion preferences suggested by client.
|
|
83 |
*
|
|
84 |
* @leave KErrArgument If the location info array is empty.
|
|
85 |
*/
|
|
86 |
virtual void ConvertLocationInfoL(
|
|
87 |
RLbsLocationInfoArray& aLocationInfoArray,
|
|
88 |
const TLbsConversionPrefs aConversionPrefs,
|
|
89 |
const TLbsConversionOutputInfoMask aRequestedInfo );
|
|
90 |
|
|
91 |
/**
|
|
92 |
* Cancels get location info operation.
|
|
93 |
*/
|
|
94 |
virtual void CancelConvertLocationInfo();
|
|
95 |
|
|
96 |
virtual void ValidateClient( const TSecureId& aSecureId,
|
|
97 |
const TVendorId& aVendorId,
|
|
98 |
const TLbsConversionOutputInfoMask aRequestedInfo );
|
|
99 |
|
|
100 |
virtual void CancelValidateClient();
|
|
101 |
|
|
102 |
virtual void ConversionPluginPreferences(
|
|
103 |
TLbsConversionPluginInfo& aPluginInfo );
|
|
104 |
|
|
105 |
private:
|
|
106 |
|
|
107 |
|
|
108 |
void ConstructL(TLbsLocInfoConverterPluginParams& aPluginParams);
|
|
109 |
|
|
110 |
/**
|
|
111 |
* Default C++ Constructor
|
|
112 |
*/
|
|
113 |
CExampleLocationConverter(TLbsLocInfoConverterPluginParams& aParams);
|
|
114 |
|
|
115 |
private: // data
|
|
116 |
|
|
117 |
MLbsLocInfoConverterPluginObserver &iObserver;
|
|
118 |
TBool iRetainLocalityInCache;
|
|
119 |
};
|
|
120 |
|
|
121 |
|
|
122 |
#endif // C_LBTCELLIDMVMTDET_H
|