--- a/locationmanager/geotagger/inc/cinternalgeotagger.h Tue Jul 06 14:44:37 2010 +0300
+++ b/locationmanager/geotagger/inc/cinternalgeotagger.h Fri Sep 17 16:54:49 2010 +0300
@@ -24,7 +24,6 @@
#include <locationdatatype.h>
#include <geotagger.h>
-#include "reversegeocode.h"
#include "mdccommon.h"
#include "mdesession.h"
#include "mdenamespacedef.h"
@@ -32,13 +31,16 @@
#include "mdepropertydef.h"
#include "mderelation.h"
#include "mdequery.h"
-#include "ctagcreator.h"
#ifdef LOC_GEOTAGGING_CELLID
#include "cgeoconverter.h"
#endif
-class CReverseGeoCoderPlugin;
+#ifdef LOC_REVERSEGEOCODE
+#include "ctagcreator.h"
+#include <reversegeocoderplugin.h>
+#endif
+
/**
* GeoTagger converts a given cell ID(CGI Info) to geo-coordinates.
@@ -49,11 +51,13 @@
class CInternalGeoTagger : public CGeoTagger,
public MMdESessionObserver,
- public MMdEQueryObserver,
- public MReverseGeocodeObserver
+ public MMdEQueryObserver
#ifdef LOC_GEOTAGGING_CELLID
,public MGeoConverterObserver
#endif
+#ifdef LOC_REVERSEGEOCODE
+ ,public MReverseGeocodeObserver
+#endif
{
public:
@@ -106,8 +110,17 @@
*/
void HandleQueryCompleted(CMdEQuery& aQuery, TInt aError);
+
+#ifdef LOC_REVERSEGEOCODE
+ /**
+ * Get location objects, where lat, long not populated.
+ * @param aCountryTagId The country tagId
+ * @param aCityTagId The city tagId
+ */
+ void AddressInfoL( const TItemId aCountryTagId, const TItemId aCityTagId );
+
+
//MReverseGeocodeObserver
-
/**
* This method is called when reverse geocoding is completed
*@param aErrorcode Error if any
@@ -138,6 +151,7 @@
const RMobilePhone::TMobilePhoneNetworkInfoV1&
GetHomeNetworkInfo(TBool& aHomeNwInfoAvailableFlag);
+#endif //LOC_REVERSEGEOCODE
// From MMdESessionObserver
@@ -155,7 +169,7 @@
*/
void HandleSessionError(CMdESession& aSession, TInt aError);
-#ifdef LOC_GEOTAGGING_CELLID
+#ifdef LOC_GEOTAGGING_CELLID
public: // MGeoConverterObserver
/**
* This method is used for notifying completion of geotagging
@@ -170,8 +184,15 @@
* @param aError the error code
*/
void HandleConversionError(TInt aError);
+
+private:
+ /**
+ * Update media object with GPS info.
+ */
+ void UpdateGPSInfoL(const TLocality& aPosition);
+
+#endif //LOC_GEOTAGGING_CELLID
-#endif
private:
/**
@@ -204,13 +225,6 @@
void GetAllLocationsL( );
/**
- * Get location objects, where lat, long not populated.
- * @param aCountryTagId The country tagId
- * @param aCityTagId The city tagId
- */
- void AddressInfoL( const TItemId aCountryTagId, const TItemId aCityTagId );
-
- /**
* checks if the session is ready
* @return ETrue If the session is ready
*/
@@ -267,7 +281,6 @@
TConnectionOption iConnectionOption;
- CTagCreator* iTagCreator;
/**
* An active scheduler wait loop for waiting a session to MdE to open.
@@ -275,14 +288,16 @@
CActiveSchedulerWait* iASW;
TBool iMdeSessionOwnFlag;
TBool iTagPendingHandlerFlag;
- CReverseGeoCoderPlugin* iRevGeocoderPlugin;
- TUid iDtorKey;
#ifdef LOC_GEOTAGGING_CELLID
/*
* Geo converter
*/
CGeoConverter* iGeoConverter;
#endif
+#ifdef LOC_REVERSEGEOCODE
+ CTagCreator* iTagCreator;
+ CReverseGeoCoderPlugin* iRevGeocoderPlugin;
+#endif //LOC_REVERSEGEOCODE
};
#endif // C_CGEOTAGGER_H