50 { |
50 { |
51 mMLWrapperPrivate->SetContextMode(contextMode); |
51 mMLWrapperPrivate->SetContextMode(contextMode); |
52 } |
52 } |
53 |
53 |
54 // --------------------------------------------------------------------------- |
54 // --------------------------------------------------------------------------- |
|
55 // removeContextMode. |
|
56 // --------------------------------------------------------------------------- |
|
57 // |
|
58 void GlxMLWrapper::removeContextMode(GlxContextMode contextMode) |
|
59 { |
|
60 mMLWrapperPrivate->RemoveContextMode(contextMode); |
|
61 } |
|
62 |
|
63 |
|
64 |
|
65 // --------------------------------------------------------------------------- |
55 // getItemCount. |
66 // getItemCount. |
56 // --------------------------------------------------------------------------- |
67 // --------------------------------------------------------------------------- |
57 // |
68 // |
58 int GlxMLWrapper::getItemCount() |
69 int GlxMLWrapper::getItemCount() |
59 { |
70 { |
90 // |
101 // |
91 QString GlxMLWrapper::retrieveListSubTitle(int index) |
102 QString GlxMLWrapper::retrieveListSubTitle(int index) |
92 { |
103 { |
93 return (mMLWrapperPrivate->RetrieveListSubTitle(index)); |
104 return (mMLWrapperPrivate->RetrieveListSubTitle(index)); |
94 } |
105 } |
|
106 |
|
107 // --------------------------------------------------------------------------- |
|
108 // retrieveListDesc. |
|
109 // --------------------------------------------------------------------------- |
|
110 // |
|
111 QString GlxMLWrapper::retrieveListDesc(int index) |
|
112 { |
|
113 return (mMLWrapperPrivate->RetrieveListDesc(index)); |
|
114 } |
|
115 |
95 // --------------------------------------------------------------------------- |
116 // --------------------------------------------------------------------------- |
96 // retrieveItemUri. |
117 // retrieveItemUri. |
97 // --------------------------------------------------------------------------- |
118 // --------------------------------------------------------------------------- |
98 // |
119 // |
99 QString GlxMLWrapper::retrieveItemUri(int index) |
120 QString GlxMLWrapper::retrieveItemUri(int index) |
107 QSize GlxMLWrapper::retrieveItemDimension(int index) |
128 QSize GlxMLWrapper::retrieveItemDimension(int index) |
108 { |
129 { |
109 return (mMLWrapperPrivate->RetrieveItemDimension(index)); |
130 return (mMLWrapperPrivate->RetrieveItemDimension(index)); |
110 } |
131 } |
111 |
132 |
|
133 // --------------------------------------------------------------------------- |
|
134 // retrieveItemSize. |
|
135 // --------------------------------------------------------------------------- |
|
136 // |
|
137 int GlxMLWrapper::retrieveItemSize(int index) |
|
138 { |
|
139 return (mMLWrapperPrivate->RetrieveItemSize(index)); |
|
140 } |
|
141 |
|
142 // --------------------------------------------------------------------------- |
|
143 // retrieveItemDate. |
|
144 // --------------------------------------------------------------------------- |
|
145 // |
112 QDate GlxMLWrapper::retrieveItemDate(int index) |
146 QDate GlxMLWrapper::retrieveItemDate(int index) |
113 { |
147 { |
114 return (mMLWrapperPrivate->RetrieveItemDate(index)); |
148 return (mMLWrapperPrivate->RetrieveItemDate(index)); |
115 } |
149 } |
116 |
150 |
|
151 // --------------------------------------------------------------------------- |
|
152 // retrieveItemTime. |
|
153 // --------------------------------------------------------------------------- |
|
154 // |
|
155 QTime GlxMLWrapper::retrieveItemTime(int index) |
|
156 { |
|
157 return (mMLWrapperPrivate->RetrieveItemTime(index)); |
|
158 } |
|
159 |
|
160 |
117 int GlxMLWrapper::retrieveItemFrameCount(int index) |
161 int GlxMLWrapper::retrieveItemFrameCount(int index) |
118 { |
162 { |
119 return (mMLWrapperPrivate->RetrieveItemFrameCount(index)); |
163 return (mMLWrapperPrivate->RetrieveItemFrameCount(index)); |
120 } |
164 } |
|
165 |
|
166 QString GlxMLWrapper::retrieveViewTitle() |
|
167 { |
|
168 return (mMLWrapperPrivate->RetrieveViewTitle()); |
|
169 } |
|
170 |
|
171 void GlxMLWrapper::handlepopulated() |
|
172 { |
|
173 emit populated(); |
|
174 } |
|
175 |
|
176 bool GlxMLWrapper::IsPopulated() |
|
177 { |
|
178 return mMLWrapperPrivate->IsPopulated(); |
|
179 } |
|
180 |
|
181 bool GlxMLWrapper::IsDrmProtected(int index) |
|
182 { |
|
183 return mMLWrapperPrivate->IsDrmProtected(index); |
|
184 } |
|
185 bool GlxMLWrapper::IsDrmValid(int index) |
|
186 { |
|
187 return mMLWrapperPrivate->IsDrmValid(index); |
|
188 } |
|
189 |
|
190 void GlxMLWrapper::setDrmValid(int index,bool valid) |
|
191 { |
|
192 mMLWrapperPrivate->setDrmValid(index,valid); |
|
193 } |
121 |
194 |
122 QVariant GlxMLWrapper::RetrieveBitmap(int index) |
195 QVariant GlxMLWrapper::RetrieveBitmap(int index) |
123 { |
196 { |
124 QVariant var; |
197 QVariant var; |
125 var.setValue(mMLWrapperPrivate->RetrieveBitmap(index)); |
198 var.setValue(mMLWrapperPrivate->RetrieveBitmap(index)); |
228 emit updateItem(itemIndex, GlxTBContextNone); |
301 emit updateItem(itemIndex, GlxTBContextNone); |
229 } |
302 } |
230 |
303 |
231 |
304 |
232 // --------------------------------------------------------------------------- |
305 // --------------------------------------------------------------------------- |
|
306 // handleDetailsItemAvailable. |
|
307 // --------------------------------------------------------------------------- |
|
308 // |
|
309 void GlxMLWrapper::handleDetailsItemAvailable(int itemIndex) |
|
310 { |
|
311 |
|
312 emit updateDetails(); |
|
313 } |
|
314 |
|
315 // --------------------------------------------------------------------------- |
233 // handleGeneralError. |
316 // handleGeneralError. |
234 // --------------------------------------------------------------------------- |
317 // --------------------------------------------------------------------------- |
235 // |
318 // |
236 void GlxMLWrapper::handleGeneralError(int aError) |
319 void GlxMLWrapper::handleGeneralError(int aError) |
237 { |
320 { |
238 Q_UNUSED(aError); |
321 Q_UNUSED(aError); |
239 } |
322 } |
240 |
323 |
241 |
324 // --------------------------------------------------------------------------- |
|
325 // handleTitleAvailable. |
|
326 // --------------------------------------------------------------------------- |
|
327 // |
|
328 void GlxMLWrapper::handleTitleAvailable(QString aTitle) |
|
329 { |
|
330 emit updateAlbumTitle(aTitle); |
|
331 } |
|
332 |