|
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_NETWORK_LOCATE_LOG_EVENT_H |
|
29 #define LBS_NETWORK_LOCATE_LOG_EVENT_H |
|
30 |
|
31 #include <lbs/lbslogevent.h> |
|
32 |
|
33 /** log event object for network locate request */ |
|
34 |
|
35 class CLbsNetworkLocateLogEvent : public CLbsLogEvent |
|
36 { |
|
37 public: |
|
38 IMPORT_C static CLbsNetworkLocateLogEvent* NewL(TUid aUid, TPositionInfoBase* aPosInfo); |
|
39 ~CLbsNetworkLocateLogEvent(); |
|
40 // for self locate |
|
41 IMPORT_C TUid LocalApp() const; |
|
42 IMPORT_C void SetLocalApp(TUid aUid); |
|
43 |
|
44 protected: |
|
45 void DoExternalizeL(RWriteStream& aWriteStream) const; |
|
46 void DoInternalizeL(RReadStream& aReadStream); |
|
47 void DoUpdateL(const CLbsLogEvent& aSourceLogEvent); |
|
48 void DoCopyL(CLbsLogEvent*& aTargetLogEvent) const; |
|
49 TInt DataSize() const; |
|
50 private: |
|
51 CLbsNetworkLocateLogEvent(); |
|
52 void ConstructL(TUid aUid, TPositionInfoBase* aPosInfo); |
|
53 |
|
54 private: |
|
55 /** The UID of local application request for the location information */ |
|
56 TUid iLocalApp; |
|
57 |
|
58 }; // class CLbsNetworkLocateLogEvent |
|
59 |
|
60 |
|
61 #endif // LBS_NETWORK_LOCATE_LOG_EVENT_H |