|
1 /** |
|
2 * Copyright (c) 2006-2009 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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 @publishedPartner |
|
25 @released |
|
26 */ |
|
27 |
|
28 #ifndef LBS_TRANSMIT_LOCATION_LOG_EVENT_H |
|
29 #define LBS_TRANSMIT_LOCATION_LOG_EVENT_H |
|
30 |
|
31 #include <lbs/lbslogevent.h> |
|
32 |
|
33 /** log event object for transmit to 3rd party locate request */ |
|
34 |
|
35 class CLbsTransmitLocationLogEvent : public CLbsLogEvent |
|
36 { |
|
37 public: |
|
38 IMPORT_C static CLbsTransmitLocationLogEvent* NewL(TUid aUid, TPositionInfoBase* aPosInfo, TDesC& aDestination); |
|
39 ~CLbsTransmitLocationLogEvent(); |
|
40 // for X3P |
|
41 IMPORT_C TUid X3PApp() const; |
|
42 IMPORT_C void SetX3PApp(TUid aUid); |
|
43 IMPORT_C void SetDestination(TDesC& aDestination); |
|
44 IMPORT_C TDesC& Destination() const; |
|
45 |
|
46 protected: |
|
47 void DoExternalizeL(RWriteStream& aWriteStream) const; |
|
48 void DoInternalizeL(RReadStream& aReadStream); |
|
49 void DoUpdateL(const CLbsLogEvent& aSourceLogEvent); |
|
50 void DoCopyL(CLbsLogEvent*& aTargetLogEvent) const; |
|
51 TInt DataSize() const; |
|
52 private: |
|
53 CLbsTransmitLocationLogEvent(); |
|
54 void ConstructL(TUid aUid, TPositionInfoBase* aPosInfo, TDesC& aDestination); |
|
55 |
|
56 private: |
|
57 /** The UID of 3rd party application request for the location information */ |
|
58 TUid iX3PApp; |
|
59 /** Descriptor of the destination application */ |
|
60 TBuf<64> iDestination; |
|
61 }; // class CLbsTransmitLocationLogEvent |
|
62 |
|
63 #endif // LBS_TRANSMIT_LOCATION_LOG_EVENT_H |