|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include <e32base.h> |
|
17 #include "lbsprivacyrequestcommon.h" |
|
18 #include "lbsdevloggermacros.h" |
|
19 |
|
20 |
|
21 /** |
|
22 Returns the class type. |
|
23 |
|
24 @return An integer code representing the class type. |
|
25 @see TLbsPrivacyRequestClassType |
|
26 */ |
|
27 EXPORT_C TUint32 TLbsPrivacyClassTypeBase::ClassType() const |
|
28 { |
|
29 return iClassType; |
|
30 } |
|
31 |
|
32 /** |
|
33 Returns the class size. |
|
34 |
|
35 @return An integer representing the class size. |
|
36 */ |
|
37 EXPORT_C TUint TLbsPrivacyClassTypeBase::ClassSize() const |
|
38 { |
|
39 return iClassSize; |
|
40 } |
|
41 |
|
42 /** |
|
43 Default constructor for TLbsPrivacyRequest |
|
44 */ |
|
45 EXPORT_C TLbsPrivacyRequest::TLbsPrivacyRequest() |
|
46 : TLbsPrivacyClassTypeBase(ELbsPrivacyRequestClass, sizeof(TLbsPrivacyRequest)), |
|
47 iAction(ERequestActionNotUsed), iAdvice(ERequestAdviceNotUsed) |
|
48 { |
|
49 } |
|
50 |
|
51 /** |
|
52 Returns the request advice. |
|
53 Value returned is from enumeration TLbsPrivacyRequest::_TLbsRequestAdvice |
|
54 |
|
55 @return The request advice. |
|
56 @see TLbsPrivacyRequest::_TLbsRequestAdvice |
|
57 */ |
|
58 EXPORT_C TLbsPrivacyRequest::TLbsRequestAdvice TLbsPrivacyRequest::RequestAdvice() const |
|
59 { |
|
60 return iAdvice; |
|
61 } |
|
62 |
|
63 /** |
|
64 Returns for the request action. |
|
65 Value returned is from enumeration TLbsPrivacyRequest::_TLbsRequestAction |
|
66 |
|
67 @return The request action. |
|
68 @see TLbsPrivacyRequest::_TLbsRequestAction |
|
69 */ |
|
70 EXPORT_C TLbsPrivacyRequest::TLbsRequestAction TLbsPrivacyRequest::RequestAction() const |
|
71 { |
|
72 return iAction; |
|
73 } |
|
74 |
|
75 /** |
|
76 Sets for the request advice. |
|
77 |
|
78 @param aAdvice The request advice to be set. Must be from enum TLbsPrivacyRequest::_TLbsRequestAdvice |
|
79 */ |
|
80 EXPORT_C void TLbsPrivacyRequest::SetRequestAdvice(TLbsPrivacyRequest::TLbsRequestAdvice aAdvice) |
|
81 { |
|
82 iAdvice = aAdvice; |
|
83 } |
|
84 |
|
85 /** |
|
86 Setter for the request action. |
|
87 |
|
88 @param aAdvice The request action to be set. Must be from enum TLbsPrivacyRequest::_TLbsRequestAction |
|
89 */ |
|
90 EXPORT_C void TLbsPrivacyRequest::SetRequestAction(TLbsPrivacyRequest::TLbsRequestAction aAction) |
|
91 { |
|
92 iAction = aAction; |
|
93 } |