diff -r e8c1ea2c6496 -r 8758140453c0 lbs/common/inc/LbsTransmitLocationLogEvent.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lbs/common/inc/LbsTransmitLocationLogEvent.h Thu Jan 21 12:53:44 2010 +0000 @@ -0,0 +1,63 @@ +/** +* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Symbian Foundation License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + + + +/** + @file + @publishedPartner + @released +*/ + +#ifndef LBS_TRANSMIT_LOCATION_LOG_EVENT_H +#define LBS_TRANSMIT_LOCATION_LOG_EVENT_H + +#include + +/** log event object for transmit to 3rd party locate request */ + +class CLbsTransmitLocationLogEvent : public CLbsLogEvent + { +public: + IMPORT_C static CLbsTransmitLocationLogEvent* NewL(TUid aUid, TPositionInfoBase* aPosInfo, TDesC& aDestination); + ~CLbsTransmitLocationLogEvent(); + // for X3P + IMPORT_C TUid X3PApp() const; + IMPORT_C void SetX3PApp(TUid aUid); + IMPORT_C void SetDestination(TDesC& aDestination); + IMPORT_C TDesC& Destination() const; + +protected: + void DoExternalizeL(RWriteStream& aWriteStream) const; + void DoInternalizeL(RReadStream& aReadStream); + void DoUpdateL(const CLbsLogEvent& aSourceLogEvent); + void DoCopyL(CLbsLogEvent*& aTargetLogEvent) const; + TInt DataSize() const; +private: + CLbsTransmitLocationLogEvent(); + void ConstructL(TUid aUid, TPositionInfoBase* aPosInfo, TDesC& aDestination); + +private: + /** The UID of 3rd party application request for the location information */ + TUid iX3PApp; + /** Descriptor of the destination application */ + TBuf<64> iDestination; + }; // class CLbsTransmitLocationLogEvent + +#endif // LBS_TRANSMIT_LOCATION_LOG_EVENT_H