00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00026 #ifndef LBSWLANINFO_H
00027 #define LBSWLANINFO_H
00028
00029
00030 #include <e32std.h>
00031 #include <lbs/lbslocationcommon.h>
00032
00033
00037 const TInt KLbsWlanMacAddressLength = 18;
00038
00039
00051 typedef TBuf8<KLbsWlanMacAddressLength> TLbsWlanMacAddress;
00052
00053
00057 NONSHARABLE_CLASS(CLbsWlanInfo) : public CLbsAreaInfoBase
00058 {
00059
00060 public:
00061
00069 IMPORT_C static CLbsWlanInfo* NewL();
00070
00084 IMPORT_C static CLbsWlanInfo* NewL( const TLbsWlanMacAddress& MacAddress,
00085 const TInt aRxStrength );
00086
00093 IMPORT_C static CLbsWlanInfo* NewL( const CLbsWlanInfo& aPositionInfo);
00094
00098 IMPORT_C ~CLbsWlanInfo();
00099
00105 IMPORT_C void SetMacAddress( const TDesC8& aMacAddress );
00106
00110 IMPORT_C void GetMacAddress(TDes8& aMacAddress ) const;
00111
00117 IMPORT_C void SetSignalStrength( const TInt aRxStrength );
00118
00125 IMPORT_C TInt SignalStrength() const;
00126
00127 public:
00128
00134 virtual TLbsAreaInfoClassType Type();
00135
00147 virtual void ValidateDataL() const;
00148
00149 protected:
00150
00154 virtual void DoInternaliseL( RReadStream& aStream );
00155
00159 virtual void DoExternaliseL( RWriteStream& aStream ) const;
00160
00161 private:
00162
00166 CLbsWlanInfo();
00167
00171 CLbsWlanInfo( CLbsWlanInfo& );
00172
00176 CLbsWlanInfo& operator=( CLbsWlanInfo& );
00177
00181 void ConstructL();
00182
00186 void ConstructL( const TLbsWlanMacAddress& MacAddress,
00187 const TInt aPowRx );
00188
00189 private:
00190
00194 TLbsWlanMacAddress iMacAddress;
00195
00199 TInt16 iPowRx;
00200
00201 };
00202
00203 #endif // LBSWLANINFO_H