|
1 /* |
|
2 * Copyright (c) 2003 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: CDRMRightsMgrAppUi inline functions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef DRMRIGHTSMGRAPPUI_INL |
|
21 #define DRMRIGHTSMGRAPPUI_INL |
|
22 |
|
23 |
|
24 // --------------------------------------------------------- |
|
25 // CDRMRightsMgrAppUi::SelectedIndexInArray |
|
26 // --------------------------------------------------------- |
|
27 // |
|
28 inline TInt CDRMRightsMgrAppUi::SelectedIndexInArray() |
|
29 { |
|
30 return iSelectedItem.IndexInArray(); |
|
31 } |
|
32 |
|
33 |
|
34 // --------------------------------------------------------- |
|
35 // CDRMRightsMgrAppUi::SelectedItemName |
|
36 // --------------------------------------------------------- |
|
37 // |
|
38 inline void CDRMRightsMgrAppUi::SelectedItemName( TFileName& aItemName ) |
|
39 { |
|
40 iSelectedItem.ItemName( aItemName ); |
|
41 } |
|
42 |
|
43 |
|
44 // --------------------------------------------------------- |
|
45 // CDRMRightsMgrAppUi::SelectedItemFullName |
|
46 // --------------------------------------------------------- |
|
47 // |
|
48 inline void CDRMRightsMgrAppUi::SelectedItemFullName( |
|
49 TFileName& aItemFullName ) |
|
50 { |
|
51 iSelectedItem.ItemFullName( aItemFullName ); |
|
52 } |
|
53 |
|
54 |
|
55 // --------------------------------------------------------- |
|
56 // CDRMRightsMgrAppUi::SelectedLocalID |
|
57 // --------------------------------------------------------- |
|
58 // |
|
59 inline TUint32 CDRMRightsMgrAppUi::SelectedLocalID() |
|
60 { |
|
61 return iSelectedItem.LocalID(); |
|
62 } |
|
63 |
|
64 |
|
65 // --------------------------------------------------------- |
|
66 // CDRMRightsMgrAppUi::SelectedContentURI |
|
67 // --------------------------------------------------------- |
|
68 // |
|
69 inline void CDRMRightsMgrAppUi::SelectedContentURI( |
|
70 TBuf8<KMaxFileName>& aContentURI ) |
|
71 { |
|
72 iSelectedItem.ContentURI( aContentURI ); |
|
73 } |
|
74 |
|
75 |
|
76 // --------------------------------------------------------- |
|
77 // CDRMRightsMgrAppUi::SelectedContentCanBeSent |
|
78 // --------------------------------------------------------- |
|
79 // |
|
80 inline TBool CDRMRightsMgrAppUi::SelectedContentCanBeSent() |
|
81 { |
|
82 return iSelectedItem.ContentCanBeSent(); |
|
83 } |
|
84 |
|
85 |
|
86 // --------------------------------------------------------- |
|
87 // CDRMRightsMgrAppUi::UnlimitedRights |
|
88 // --------------------------------------------------------- |
|
89 // |
|
90 inline TBool CDRMRightsMgrAppUi::UnlimitedRights() |
|
91 { |
|
92 return iSelectedItem.UnlimitedRights(); |
|
93 } |
|
94 |
|
95 // --------------------------------------------------------- |
|
96 // CDRMRightsMgrAppUi::IndividualConstraint |
|
97 // --------------------------------------------------------- |
|
98 // |
|
99 inline TBool CDRMRightsMgrAppUi::IndividualConstraint() |
|
100 { |
|
101 return iSelectedItem.IndividualConstraint(); |
|
102 } |
|
103 |
|
104 |
|
105 // --------------------------------------------------------- |
|
106 // CDRMRightsMgrAppUi::UsageAllowed |
|
107 // --------------------------------------------------------- |
|
108 // |
|
109 inline TBool CDRMRightsMgrAppUi::UsageAllowed() |
|
110 { |
|
111 return iSelectedItem.UsageAllowed(); |
|
112 } |
|
113 |
|
114 |
|
115 // --------------------------------------------------------- |
|
116 // CDRMRightsMgrAppUi::SelectedIsGroup |
|
117 // --------------------------------------------------------- |
|
118 // |
|
119 inline TBool CDRMRightsMgrAppUi::SelectedIsGroup() |
|
120 { |
|
121 return iSelectedItem.IsGroup(); |
|
122 } |
|
123 |
|
124 // --------------------------------------------------------- |
|
125 // CDRMRightsMgrAppUi::SetSelectedItemName |
|
126 // --------------------------------------------------------- |
|
127 // |
|
128 inline void CDRMRightsMgrAppUi::SetSelectedItemName( const TDesC& aItemName ) |
|
129 { |
|
130 iSelectedItem.SetItemName( aItemName ); |
|
131 } |
|
132 |
|
133 |
|
134 // --------------------------------------------------------- |
|
135 // CDRMRightsMgrAppUi::SetSelectedItemFullName |
|
136 // --------------------------------------------------------- |
|
137 // |
|
138 inline void CDRMRightsMgrAppUi::SetSelectedItemFullName( |
|
139 const TDesC& aItemFullName ) |
|
140 { |
|
141 iSelectedItem.SetItemFullName( aItemFullName ); |
|
142 } |
|
143 |
|
144 |
|
145 // --------------------------------------------------------- |
|
146 // CDRMRightsMgrAppUi::SetSelectedContentCanBeSent |
|
147 // --------------------------------------------------------- |
|
148 // |
|
149 inline void CDRMRightsMgrAppUi::SetSelectedContentCanBeSent( |
|
150 const TBool aContentCanBeSent ) |
|
151 { |
|
152 iSelectedItem.SetContentCanBeSent( aContentCanBeSent ); |
|
153 } |
|
154 |
|
155 // --------------------------------------------------------- |
|
156 // CDRMRightsMgrAppUi::SetSelectedIndividualConstraint |
|
157 // --------------------------------------------------------- |
|
158 // |
|
159 inline void CDRMRightsMgrAppUi::SetSelectedIndividualConstraint( |
|
160 const TBool aIndividualConstraint ) |
|
161 { |
|
162 iSelectedItem.SetIndividualConstraint( aIndividualConstraint ); |
|
163 } |
|
164 |
|
165 |
|
166 // --------------------------------------------------------- |
|
167 // CDRMRightsMgrAppUi::SetSelectedUsageAllowed |
|
168 // --------------------------------------------------------- |
|
169 // |
|
170 inline void CDRMRightsMgrAppUi::SetSelectedUsageAllowed( const TBool aUsageAllowed ) |
|
171 { |
|
172 iSelectedItem.SetUsageAllowed( aUsageAllowed ); |
|
173 } |
|
174 |
|
175 #endif |
|
176 |
|
177 // End of File |