|
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_ASSISTANCE_DATA_LOG_EVENT_H |
|
29 #define LBS_ASSISTANCE_DATA_LOG_EVENT_H |
|
30 |
|
31 #include <lbs/lbslogevent.h> |
|
32 |
|
33 /** log event object for assistance data request */ |
|
34 |
|
35 class CLbsAssistanceDataLogEvent : public CLbsLogEvent |
|
36 { |
|
37 public: |
|
38 IMPORT_C static CLbsAssistanceDataLogEvent* NewL(const TUint32 aRequestType, const TUint32 aReceiveType); |
|
39 ~CLbsAssistanceDataLogEvent(); |
|
40 // for assistance data |
|
41 IMPORT_C void SetRequestAssistanceDataType(const TUint32 aMask); |
|
42 IMPORT_C TUint32 RequestAssistanceDataType() const; |
|
43 IMPORT_C void SetReceiveAssistanceDataType(const TUint32 aMask); |
|
44 IMPORT_C TUint32 ReceiveAssistanceDataType() 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 CLbsAssistanceDataLogEvent(); |
|
54 void ConstructL(const TUint32 aRequestType, const TUint32 aReceiveType); |
|
55 private: |
|
56 /** requested assistance data type from application */ |
|
57 TUint32 iRequestAssistanceDataType; |
|
58 /** received assistance data type from network */ |
|
59 TUint32 iReceiveAssistanceDataType; |
|
60 |
|
61 }; // class CLbsAssistanceDataLogEvent |
|
62 |
|
63 |
|
64 #endif // LBS_ASSISTANCE_LOG_EVENT_H |