|
1 /* |
|
2 * Copyright (c) 2003-2008 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: TItemData inline functions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef DRMVIEWITEMS_INL |
|
20 #define DRMVIEWITEMS_INL |
|
21 |
|
22 |
|
23 // --------------------------------------------------------- |
|
24 // TItemData::IndexInArray |
|
25 // --------------------------------------------------------- |
|
26 // |
|
27 inline TInt TItemData::IndexInArray() |
|
28 { |
|
29 return iIndexInArray; |
|
30 } |
|
31 |
|
32 |
|
33 // --------------------------------------------------------- |
|
34 // TItemData::ItemName |
|
35 // --------------------------------------------------------- |
|
36 // |
|
37 inline void TItemData::ItemName( TFileName& aItemName ) |
|
38 { |
|
39 aItemName = iItemName; |
|
40 } |
|
41 |
|
42 |
|
43 // --------------------------------------------------------- |
|
44 // TItemData::ItemFullName |
|
45 // --------------------------------------------------------- |
|
46 // |
|
47 inline void TItemData::ItemFullName( TFileName& aItemFullName ) |
|
48 { |
|
49 aItemFullName = iItemFullName; |
|
50 } |
|
51 |
|
52 |
|
53 // --------------------------------------------------------- |
|
54 // TItemData::IndexIcon |
|
55 // --------------------------------------------------------- |
|
56 // |
|
57 inline TInt TItemData::IndexIcon() |
|
58 { |
|
59 return iIndexIcon; |
|
60 } |
|
61 |
|
62 |
|
63 // --------------------------------------------------------- |
|
64 // TItemData::TypeOfObject |
|
65 // --------------------------------------------------------- |
|
66 // |
|
67 inline TInt TItemData::TypeOfObject() |
|
68 { |
|
69 return iTypeOfObject; |
|
70 } |
|
71 |
|
72 |
|
73 // --------------------------------------------------------- |
|
74 // TItemData::ContentCanBeSent |
|
75 // --------------------------------------------------------- |
|
76 // |
|
77 inline TBool TItemData::ContentCanBeSent() |
|
78 { |
|
79 return iContentCanBeSent; |
|
80 } |
|
81 |
|
82 |
|
83 // --------------------------------------------------------- |
|
84 // TItemData::UnlimitedRights |
|
85 // --------------------------------------------------------- |
|
86 // |
|
87 inline TBool TItemData::UnlimitedRights() |
|
88 { |
|
89 return iUnlimitedRights; |
|
90 } |
|
91 |
|
92 // --------------------------------------------------------- |
|
93 // TItemData::IndividualConstraint |
|
94 // --------------------------------------------------------- |
|
95 // |
|
96 inline TBool TItemData::IndividualConstraint() |
|
97 { |
|
98 return iIndividualConstraint; |
|
99 } |
|
100 |
|
101 |
|
102 // --------------------------------------------------------- |
|
103 // TItemData::UsageAllowed |
|
104 // --------------------------------------------------------- |
|
105 // |
|
106 inline TBool TItemData::UsageAllowed() |
|
107 { |
|
108 return iUsageAllowed; |
|
109 } |
|
110 |
|
111 // --------------------------------------------------------- |
|
112 // TItemData::IsFuture |
|
113 // --------------------------------------------------------- |
|
114 // |
|
115 inline TBool TItemData::IsFuture() |
|
116 { |
|
117 return iTypeOfObject & EFutureObject; |
|
118 } |
|
119 |
|
120 |
|
121 // --------------------------------------------------------- |
|
122 // TItemData::IsGroup |
|
123 // --------------------------------------------------------- |
|
124 // |
|
125 inline TBool TItemData::IsGroup() |
|
126 { |
|
127 return iTypeOfObject & EGroupObject; |
|
128 } |
|
129 |
|
130 |
|
131 // --------------------------------------------------------- |
|
132 // TItemData::FutureActivationTime |
|
133 // --------------------------------------------------------- |
|
134 // |
|
135 inline TTime TItemData::FutureActivationTime() |
|
136 { |
|
137 return iFutureActivationTime; |
|
138 } |
|
139 |
|
140 |
|
141 // --------------------------------------------------------- |
|
142 // TItemData::LocalID |
|
143 // --------------------------------------------------------- |
|
144 // |
|
145 inline TUint32 TItemData::LocalID() |
|
146 { |
|
147 return iLocalID; |
|
148 } |
|
149 |
|
150 |
|
151 // --------------------------------------------------------- |
|
152 // TItemData::ContentURI |
|
153 // --------------------------------------------------------- |
|
154 // |
|
155 inline void TItemData::ContentURI( TBuf8<KMaxFileName>& aContentURI ) |
|
156 { |
|
157 aContentURI = iContentURI; |
|
158 } |
|
159 |
|
160 |
|
161 // --------------------------------------------------------- |
|
162 // TItemData::SetIndexInArray |
|
163 // --------------------------------------------------------- |
|
164 // |
|
165 inline void TItemData::SetIndexInArray( TInt aIndex ) |
|
166 { |
|
167 iIndexInArray = aIndex; |
|
168 } |
|
169 |
|
170 |
|
171 // --------------------------------------------------------- |
|
172 // TItemData::SetItemName |
|
173 // --------------------------------------------------------- |
|
174 // |
|
175 inline void TItemData::SetItemName( const TDesC& aItemName ) |
|
176 { |
|
177 iItemName = aItemName; |
|
178 } |
|
179 |
|
180 |
|
181 // --------------------------------------------------------- |
|
182 // TItemData::SetItemFullName |
|
183 // --------------------------------------------------------- |
|
184 // |
|
185 inline void TItemData::SetItemFullName( const TDesC& aItemFullName ) |
|
186 { |
|
187 iItemFullName = aItemFullName; |
|
188 } |
|
189 |
|
190 |
|
191 // --------------------------------------------------------- |
|
192 // TItemData::SetContentCanBeSent |
|
193 // --------------------------------------------------------- |
|
194 // |
|
195 inline void TItemData::SetContentCanBeSent( const TBool aContentCanBeSent ) |
|
196 { |
|
197 iContentCanBeSent = aContentCanBeSent; |
|
198 } |
|
199 |
|
200 |
|
201 // --------------------------------------------------------- |
|
202 // TItemData::SetUnlimitedRights |
|
203 // --------------------------------------------------------- |
|
204 // |
|
205 inline void TItemData::SetUnlimitedRights( const TBool aUnlimitedRights ) |
|
206 { |
|
207 iUnlimitedRights = aUnlimitedRights; |
|
208 } |
|
209 |
|
210 // --------------------------------------------------------- |
|
211 // TItemData::IndividualConstraint |
|
212 // --------------------------------------------------------- |
|
213 // |
|
214 inline void TItemData::SetIndividualConstraint( const TBool aIndividualConstraint ) |
|
215 { |
|
216 iIndividualConstraint = aIndividualConstraint; |
|
217 } |
|
218 |
|
219 |
|
220 // --------------------------------------------------------- |
|
221 // TItemData::UsageAllowed |
|
222 // --------------------------------------------------------- |
|
223 // |
|
224 inline void TItemData::SetUsageAllowed( const TBool aUsageAllowed ) |
|
225 { |
|
226 iUsageAllowed = aUsageAllowed; |
|
227 } |
|
228 |
|
229 |
|
230 #endif |
|
231 |
|
232 // End of File |