00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00027 #ifndef LBS_LOCATION_COMMON_H
00028 #define LBS_LOCATION_COMMON_H
00029
00030
00031 #include <e32base.h>
00032 #include <s32strm.h>
00033 #include <lbs/lbslocationclasstypes.h>
00034
00035
00036
00037
00041 const TUint KPositionMaxBatchSize = 500;
00042
00043
00048 NONSHARABLE_CLASS(CLbsLocationInfoBase) : public CBase
00049 {
00050
00051 public:
00052
00057 IMPORT_C virtual TLbsLocationInfoClassType Type();
00058
00062 IMPORT_C virtual ~CLbsLocationInfoBase();
00063
00069 IMPORT_C void InternaliseL( RReadStream& aStream );
00070
00077 IMPORT_C void ExternaliseL( RWriteStream& aStream ) const;
00078
00079 protected:
00080
00084 CLbsLocationInfoBase();
00085
00091 virtual void DoInternaliseL( RReadStream& aStream ) = 0;
00092
00099 virtual void DoExternaliseL( RWriteStream& aStream ) const = 0;
00100
00101 private:
00102
00106 CLbsLocationInfoBase( CLbsLocationInfoBase& );
00107
00111 CLbsLocationInfoBase& operator=( CLbsLocationInfoBase& );
00112
00113 private:
00114
00115
00116
00117
00118 TAny* iReserved;
00119
00120 };
00121
00122 typedef RPointerArray<CLbsLocationInfoBase> RLbsLocationInfoBaseArray;
00123
00131 NONSHARABLE_CLASS(CLbsAreaInfoBase) : public CBase
00132 {
00133
00134 public:
00135
00141 IMPORT_C virtual TLbsAreaInfoClassType Type();
00142
00146 IMPORT_C virtual ~CLbsAreaInfoBase();
00147
00153 IMPORT_C void InternaliseL( RReadStream& aStream );
00154
00161 IMPORT_C void ExternaliseL( RWriteStream& aStream );
00162
00166 virtual void ValidateDataL() const = 0;
00167
00168 protected:
00169
00173 CLbsAreaInfoBase();
00174
00180 virtual void DoInternaliseL( RReadStream& aStream ) = 0;
00181
00188 virtual void DoExternaliseL( RWriteStream& aStream ) const = 0;
00189
00190 private:
00191
00195 CLbsAreaInfoBase( CLbsAreaInfoBase& );
00196
00200 CLbsAreaInfoBase& operator=( CLbsAreaInfoBase& );
00201
00202 private:
00203
00207 TAny* iReserved;
00208
00209 };
00210
00211 #endif // LBS_LOCATION_COMMON_H