|
1 /* |
|
2 * Copyright (c) 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 "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation of helper class used when listing |
|
15 * entries from location triggering server. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include "lbtlistoptions.h" |
|
21 // --------------------------------------------------------------------------- |
|
22 // CLbtListTriggerOptions::NewL() |
|
23 // |
|
24 // (other items were commented in a header). |
|
25 // --------------------------------------------------------------------------- |
|
26 // |
|
27 EXPORT_C CLbtListTriggerOptions* CLbtListTriggerOptions::NewL() |
|
28 { |
|
29 CLbtListTriggerOptions* self = new( ELeave ) CLbtListTriggerOptions; |
|
30 CleanupStack::PushL( self ); |
|
31 self->ConstructL(); |
|
32 CleanupStack::Pop( self ); |
|
33 return self; |
|
34 } |
|
35 void CLbtListTriggerOptions::ConstructL() |
|
36 { |
|
37 |
|
38 |
|
39 } |
|
40 |
|
41 // --------------------------------------------------------------------------- |
|
42 // CLbtListTriggerOptions::GetRetrievedFields( |
|
43 // TLbtTriggerAttributeFieldsMask &aEntryMask, |
|
44 // TLbtTriggerDynamicInfoFieldsMask &aDynInfoMask ) |
|
45 // |
|
46 // (other items were commented in a header). |
|
47 // --------------------------------------------------------------------------- |
|
48 // |
|
49 EXPORT_C void CLbtListTriggerOptions::GetRetrievedFields( |
|
50 TLbtTriggerAttributeFieldsMask &aEntryMask, |
|
51 TLbtTriggerDynamicInfoFieldsMask &aDynInfoMask ) const |
|
52 |
|
53 { |
|
54 aDynInfoMask=iDynInfoFieldsMask; |
|
55 aEntryMask=iTriigerAttributeFieldsMask; |
|
56 } |
|
57 // --------------------------------------------------------------------------- |
|
58 // CLbtListTriggerOptions::SetRetrievedFields( |
|
59 // TLbtTriggerAttributeFieldsMask aEntryMask, |
|
60 // TLbtTriggerDynamicInfoFieldsMask aDynInfoMask = KLbtTriggerDynInfoFieldsAll ) |
|
61 // |
|
62 // (other items were commented in a header). |
|
63 // --------------------------------------------------------------------------- |
|
64 // |
|
65 |
|
66 EXPORT_C void CLbtListTriggerOptions::SetRetrievedFields( |
|
67 TLbtTriggerAttributeFieldsMask aEntryMask, /* check if the default param has to be mentioned here*/ |
|
68 TLbtTriggerDynamicInfoFieldsMask aDynInfoMask ) |
|
69 { |
|
70 iTriigerAttributeFieldsMask=aEntryMask; |
|
71 iDynInfoFieldsMask=aDynInfoMask; |
|
72 } |
|
73 // --------------------------------------------------------------------------- |
|
74 // CLbtListTriggerOptions::SortingOption() |
|
75 // |
|
76 // (other items were commented in a header). |
|
77 // --------------------------------------------------------------------------- |
|
78 // |
|
79 EXPORT_C CLbtListTriggerOptions::TLbtListTriggerSorting CLbtListTriggerOptions::SortingOption() const |
|
80 { |
|
81 return iSorting; |
|
82 } |
|
83 // --------------------------------------------------------------------------- |
|
84 // CLbtListTriggerOptions::SetSortingOption() |
|
85 // |
|
86 // (other items were commented in a header). |
|
87 // --------------------------------------------------------------------------- |
|
88 // |
|
89 EXPORT_C void CLbtListTriggerOptions::SetSortingOption( TLbtListTriggerSorting aOption ) |
|
90 { |
|
91 iSorting=aOption; |
|
92 } |
|
93 |
|
94 // --------------------------------------------------------------------------- |
|
95 // CLbtListTriggerOptions::SetFilterL( CLbtTriggerFilterBase* aFilter ) |
|
96 // |
|
97 // (other items were commented in a header). |
|
98 // --------------------------------------------------------------------------- |
|
99 // |
|
100 EXPORT_C void CLbtListTriggerOptions::SetFilterL( |
|
101 CLbtTriggerFilterBase* aFilter ) |
|
102 { |
|
103 iFilter=aFilter; |
|
104 } |
|
105 // --------------------------------------------------------------------------- |
|
106 // CLbtListTriggerOptions::Filter( ) |
|
107 // |
|
108 // (other items were commented in a header). |
|
109 // --------------------------------------------------------------------------- |
|
110 // |
|
111 EXPORT_C CLbtTriggerFilterBase* CLbtListTriggerOptions:: Filter() |
|
112 { |
|
113 return iFilter; |
|
114 } |
|
115 |
|
116 CLbtListTriggerOptions::CLbtListTriggerOptions() |
|
117 { |
|
118 |
|
119 } |
|
120 |