1 /* |
|
2 * Copyright (c) 2007-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: Implementation of model interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 //Includes |
|
20 // class headers |
|
21 #include "mulmodelimpl.h" |
|
22 |
|
23 #include <mul/mulvarianttype.h> |
|
24 |
|
25 // Local Headers |
|
26 #include "mulcachemanager.h" |
|
27 #include "muldatawindow.h" |
|
28 #include "mulpagedatawindow.h" |
|
29 #include "mulpushmode.h" |
|
30 #include "mulpullmode.h" |
|
31 #include "mulassert.h" |
|
32 #include "mulmodeldef.h" |
|
33 #include "mullog.h" |
|
34 |
|
35 namespace Alf |
|
36 { |
|
37 |
|
38 // --------------------------------------------------------------------------- |
|
39 // MulModelImpl() |
|
40 // --------------------------------------------------------------------------- |
|
41 // |
|
42 OSN_EXPORT MulModelImpl::MulModelImpl() |
|
43 { |
|
44 MUL_LOG_ENTRY_EXIT("MUL::MulModelImpl::MulModelImpl()"); |
|
45 |
|
46 //mDataWindow.reset( new ( EMM ) MulDataWindow( *this )); |
|
47 mDataWindow.reset( new ( EMM ) MulPageDataWindow( *this )); |
|
48 mModelHelper.reset(new (EMM) MulPushMode(*mDataWindow )); |
|
49 } |
|
50 |
|
51 // --------------------------------------------------------------------------- |
|
52 // ~MulModelImpl() |
|
53 // --------------------------------------------------------------------------- |
|
54 // |
|
55 OSN_EXPORT MulModelImpl::~MulModelImpl() |
|
56 { |
|
57 MUL_LOG_ENTRY_EXIT("MUL::MulModelImpl::~MulModelImpl()"); |
|
58 mObserverArray.clear(); |
|
59 } |
|
60 |
|
61 // ------------------------ From IMulModel ----------------------------------- |
|
62 |
|
63 // --------------------------------------------------------------------------- |
|
64 // Insert |
|
65 // --------------------------------------------------------------------------- |
|
66 // |
|
67 void MulModelImpl::Insert(int aIndex, int aCount,const MulDataPath& aPath) |
|
68 { |
|
69 MUL_LOG_ENTRY_EXIT("MUL::MulModelImpl::Insert()"); |
|
70 MUL_LOG_INFO2("MUL::MulModelImpl::Insert() index:%d,count:%d",aIndex,aCount); |
|
71 |
|
72 mModelHelper->Insert(aIndex, aCount,aPath); |
|
73 |
|
74 if( aCount > 0 && mDataWindow->Highlight() == KNotInitialized ) |
|
75 { |
|
76 mDataWindow->UpdateHighlight(0); |
|
77 NotifyDataChange( IMulModelObserver::EHighlightChanged , 0 ); |
|
78 } |
|
79 |
|
80 NotifyDataChange( IMulModelObserver::EItemsInserted, aIndex, aCount ); |
|
81 } |
|
82 |
|
83 // --------------------------------------------------------------------------- |
|
84 // Remove |
|
85 // --------------------------------------------------------------------------- |
|
86 // |
|
87 void MulModelImpl::Remove(int aIndex, int aCount, const MulDataPath& aPath) |
|
88 { |
|
89 // If the highlight has changed because of the remove then inform the widget |
|
90 if( mModelHelper->Remove(aIndex, aCount, aPath) ) |
|
91 { |
|
92 NotifyDataChange( IMulModelObserver::EHighlightChanged , mDataWindow->Highlight() ); |
|
93 } |
|
94 NotifyDataChange( IMulModelObserver::EItemsRemoved, aIndex, aCount ); |
|
95 } |
|
96 |
|
97 // --------------------------------------------------------------------------- |
|
98 // Update |
|
99 // --------------------------------------------------------------------------- |
|
100 // |
|
101 void MulModelImpl::Update( int aIndex, int aCount, const MulDataPath& aPath ) |
|
102 { |
|
103 mModelHelper->Update( aIndex, aCount, aPath ); |
|
104 } |
|
105 |
|
106 // --------------------------------------------------------------------------- |
|
107 // Refresh |
|
108 // --------------------------------------------------------------------------- |
|
109 // |
|
110 void MulModelImpl::Refresh( int aCount, const MulDataPath& aPath ) |
|
111 { |
|
112 mModelHelper->Refresh( aCount, aPath ); |
|
113 NotifyDataChange( IMulModelObserver::EModelRefreshed , aCount ); |
|
114 } |
|
115 |
|
116 // --------------------------------------------------------------------------- |
|
117 // SetData |
|
118 // --------------------------------------------------------------------------- |
|
119 // |
|
120 void MulModelImpl::SetData( int aIndex, auto_ptr<MulVisualItem> aVisualItem, const MulDataPath& aPath ) |
|
121 { |
|
122 MUL_LOG_ENTRY_EXIT("MUL::MulModelImpl::SetData()"); |
|
123 MUL_LOG_INFO1("MUL::MulModelImpl::SetData() index:%d",aIndex ); |
|
124 |
|
125 mModelHelper->SetData( aIndex, aVisualItem, aPath ); |
|
126 NotifyDataChange( IMulModelObserver::EItemUpdated , aIndex ); |
|
127 } |
|
128 |
|
129 // --------------------------------------------------------------------------- |
|
130 // Data |
|
131 // --------------------------------------------------------------------------- |
|
132 // |
|
133 const MulVisualItem* MulModelImpl::Data( int aIndex, const MulDataPath& aPath) const |
|
134 { |
|
135 return mModelHelper->Data( aIndex, aPath ); |
|
136 } |
|
137 |
|
138 // --------------------------------------------------------------------------- |
|
139 // Count |
|
140 // --------------------------------------------------------------------------- |
|
141 // |
|
142 int MulModelImpl::Count( const MulDataPath& aPath) const |
|
143 { |
|
144 return mModelHelper->Count( aPath ); |
|
145 } |
|
146 |
|
147 // --------------------------------------------------------------------------- |
|
148 // SetDataProvider |
|
149 // --------------------------------------------------------------------------- |
|
150 // |
|
151 void MulModelImpl::SetDataProvider( const IMulModelProvider& aDataProvider ) |
|
152 { |
|
153 mModelHelper.reset(new (EMM) MulPullMode( *mDataWindow, aDataProvider ) ); |
|
154 } |
|
155 |
|
156 // --------------------------------------------------------------------------- |
|
157 // SetTemplate |
|
158 // --------------------------------------------------------------------------- |
|
159 // |
|
160 void MulModelImpl::SetTemplate( mulwidget::TLogicalTemplate aTemplateId ) |
|
161 { |
|
162 MUL_LOG_ENTRY_EXIT("MUL::MulModelImpl::SetTemplate"); |
|
163 mModelHelper->SetTemplate( aTemplateId ); |
|
164 // default template updated |
|
165 NotifyTemplateChange( -1, aTemplateId ); |
|
166 } |
|
167 |
|
168 // --------------------------------------------------------------------------- |
|
169 // SetTemplate |
|
170 // --------------------------------------------------------------------------- |
|
171 // |
|
172 void MulModelImpl::SetTemplate(int aItemIndex, mulwidget::TLogicalTemplate aTemplateId, const MulDataPath& aPath ) |
|
173 { |
|
174 MUL_LOG_ENTRY_EXIT("MUL::MulModelImpl::SetTemplate"); |
|
175 mModelHelper->SetTemplate(aItemIndex, aTemplateId, aPath ); |
|
176 NotifyTemplateChange( aItemIndex, aTemplateId ); |
|
177 } |
|
178 |
|
179 // --------------------------------------------------------------------------- |
|
180 // SetDataWindow |
|
181 // --------------------------------------------------------------------------- |
|
182 // |
|
183 void MulModelImpl::SetDataWindow( int aBufferSize ) |
|
184 { |
|
185 mDataWindow->SetBufferSize( aBufferSize ); |
|
186 } |
|
187 |
|
188 // --------------------------------------------------------------------------- |
|
189 // DataWindow |
|
190 // --------------------------------------------------------------------------- |
|
191 // |
|
192 int MulModelImpl::DataWindow() const |
|
193 { |
|
194 return mDataWindow->BufferSize(); |
|
195 } |
|
196 |
|
197 // --------------------------------------------------------------------------- |
|
198 // SetHighlight |
|
199 // --------------------------------------------------------------------------- |
|
200 // |
|
201 void MulModelImpl::SetHighlight( int aItemIndex, const MulDataPath& /*aPath*/ ) |
|
202 { |
|
203 mDataWindow->SetHighlight( aItemIndex ); |
|
204 |
|
205 NotifyDataChange( IMulModelObserver::EHighlightChanged , aItemIndex ); |
|
206 } |
|
207 |
|
208 // --------------------------------------------------------------------------- |
|
209 // Highlight |
|
210 // --------------------------------------------------------------------------- |
|
211 // |
|
212 int MulModelImpl::Highlight( MulDataPath& /*aPath*/ ) |
|
213 { |
|
214 return mDataWindow->Highlight(); |
|
215 } |
|
216 |
|
217 // --------------------------------------------------------------------------- |
|
218 // Highlight |
|
219 // --------------------------------------------------------------------------- |
|
220 // |
|
221 int MulModelImpl::Highlight() |
|
222 { |
|
223 return mDataWindow->Highlight(); |
|
224 } |
|
225 |
|
226 // --------------------------------------------------------------------------- |
|
227 // SetMarkedIndices |
|
228 // --------------------------------------------------------------------------- |
|
229 // |
|
230 void MulModelImpl::SetMarkedIndices( MulWidgetDef::TMulWidgetMarkingType aType, |
|
231 const std::vector<int>& aItemsIndex, |
|
232 const MulDataPath& aPath ) |
|
233 |
|
234 { |
|
235 //fire update event in alf model |
|
236 mModelHelper->CacheManager().SetMarkedIndices( aType, aItemsIndex, aPath ); |
|
237 |
|
238 for( int i = 0 ; i < aItemsIndex.size() ; i++ ) |
|
239 { |
|
240 if(mDataWindow->IsItemInDataWindow(aItemsIndex[i])) |
|
241 { |
|
242 CreateMarkingEvent(aItemsIndex[i]); |
|
243 } |
|
244 } |
|
245 } |
|
246 |
|
247 // --------------------------------------------------------------------------- |
|
248 // SetMarkedIndices |
|
249 // --------------------------------------------------------------------------- |
|
250 // |
|
251 void MulModelImpl::SetMarkedIndices(MulWidgetDef::TMulWidgetMarkingType aType) |
|
252 { |
|
253 //fire update event in alf model |
|
254 mModelHelper->CacheManager().SetMarkedIndices( aType ); |
|
255 |
|
256 for( int i = mDataWindow->TopOffset() ; i <= mDataWindow->BottomOffset() ; i++ ) |
|
257 { |
|
258 CreateMarkingEvent(i); |
|
259 } |
|
260 |
|
261 for( int i = mDataWindow->RearTopOffset( ); i <= mDataWindow->RearBottomOffset() && i > 0 ; i++ ) |
|
262 { |
|
263 CreateMarkingEvent(i); |
|
264 } |
|
265 } |
|
266 |
|
267 // --------------------------------------------------------------------------- |
|
268 // CreateMarkingEvent |
|
269 // --------------------------------------------------------------------------- |
|
270 // |
|
271 void MulModelImpl::CreateMarkingEvent(int aAbsoluteIndex) |
|
272 { |
|
273 NotifyDataChange( IMulModelObserver::EMarkingChanged , aAbsoluteIndex ); |
|
274 } |
|
275 |
|
276 // --------------------------------------------------------------------------- |
|
277 // NotifyStateChange |
|
278 // --------------------------------------------------------------------------- |
|
279 // |
|
280 void MulModelImpl::NotifyStateChange( IMulModelObserver::TMulChangedState aState, |
|
281 std::auto_ptr<IMulVariantType> aData) |
|
282 { |
|
283 for( int i = 0; i < mObserverArray.size(); ++i ) |
|
284 { |
|
285 mObserverArray[i]->ModelStateChanged( aState, *aData ); |
|
286 } |
|
287 } |
|
288 |
|
289 // --------------------------------------------------------------------------- |
|
290 // NotifyDataChange |
|
291 // --------------------------------------------------------------------------- |
|
292 // |
|
293 void MulModelImpl::NotifyDataChange( IMulModelObserver::TMulChangedState aState, |
|
294 int aStartIndex, int aCount ) |
|
295 { |
|
296 std::auto_ptr<IAlfMap> map( new ( EMM )AlfMap() ); |
|
297 map->addItem( new (EMM) AlfVariantType(aStartIndex),UString(KStartIndex)); |
|
298 map->addItem( new (EMM) AlfVariantType(aCount),UString(KCount)); |
|
299 |
|
300 std::auto_ptr<IMulVariantType> data(new (EMM)MulVariantType(*map)); |
|
301 NotifyStateChange( aState , data ); |
|
302 } |
|
303 |
|
304 // --------------------------------------------------------------------------- |
|
305 // NotifyDataChange |
|
306 // --------------------------------------------------------------------------- |
|
307 // |
|
308 void MulModelImpl::NotifyDataChange( IMulModelObserver::TMulChangedState aState, int aIndex ) |
|
309 { |
|
310 std::auto_ptr<IMulVariantType> data(new (EMM)MulVariantType(aIndex)); |
|
311 NotifyStateChange( aState , data ); |
|
312 } |
|
313 |
|
314 // --------------------------------------------------------------------------- |
|
315 // NotifyTemplateChange |
|
316 // --------------------------------------------------------------------------- |
|
317 // |
|
318 void MulModelImpl::NotifyTemplateChange( int aIndex, mulwidget::TLogicalTemplate aTamplateId ) |
|
319 { |
|
320 std::auto_ptr<IAlfMap> map( new ( EMM )AlfMap() ); |
|
321 map->addItem(new (EMM) AlfVariantType(aTamplateId),osncore::UString(KDefaultTemplate)); |
|
322 map->addItem(new (EMM) AlfVariantType(aIndex),osncore::UString(KIndex)); |
|
323 |
|
324 std::auto_ptr<IMulVariantType> data(new (EMM)MulVariantType(*map)); |
|
325 NotifyStateChange( IMulModelObserver::ETemplateChanged , data ); |
|
326 } |
|
327 |
|
328 // --------------------------------------------------------------------------- |
|
329 // MarkedIndices |
|
330 // --------------------------------------------------------------------------- |
|
331 // |
|
332 const std::vector<int>& MulModelImpl::MarkedIndices(const MulDataPath& aPath ) |
|
333 { |
|
334 return mModelHelper->CacheManager().MarkedIndices( aPath ); |
|
335 } |
|
336 |
|
337 // --------------------------------------------------------------------------- |
|
338 // IsLoopingOn |
|
339 // --------------------------------------------------------------------------- |
|
340 // |
|
341 bool MulModelImpl::IsLoopingOn() |
|
342 { |
|
343 return ( mDataWindow->RearBottomOffset() != -1 && mDataWindow->OldRearBottomOffset() != -1 ); |
|
344 } |
|
345 |
|
346 // --------------------------------------------------------------------------- |
|
347 // AddModelObserver |
|
348 // --------------------------------------------------------------------------- |
|
349 // |
|
350 void MulModelImpl::AddModelObserver( IMulModelObserver* aObserver ) |
|
351 { |
|
352 __MUL_ASSERT(aObserver, KLInvalidArgument ); |
|
353 if( std::find(mObserverArray.begin(), mObserverArray.end(), aObserver) == mObserverArray.end() ) |
|
354 { |
|
355 mObserverArray.push_back( aObserver ); |
|
356 } |
|
357 } |
|
358 |
|
359 // --------------------------------------------------------------------------- |
|
360 // RemoveModelObserver |
|
361 // --------------------------------------------------------------------------- |
|
362 // |
|
363 void MulModelImpl::RemoveModelObserver( IMulModelObserver* aObserver ) |
|
364 { |
|
365 __MUL_ASSERT(aObserver, KLInvalidArgument ); |
|
366 if( std::find(mObserverArray.begin(), mObserverArray.end(), aObserver ) != mObserverArray.end() ) |
|
367 { |
|
368 mObserverArray.erase( std::find( mObserverArray.begin(), mObserverArray.end(), aObserver )); |
|
369 } |
|
370 } |
|
371 |
|
372 // --------------------------------------------------------------------------- |
|
373 // RemoveModelObserver |
|
374 // --------------------------------------------------------------------------- |
|
375 // |
|
376 mulwidget::TLogicalTemplate MulModelImpl::Template() |
|
377 { |
|
378 return mModelHelper->Template(); |
|
379 } |
|
380 |
|
381 // --------------------------------------------------------------------------- |
|
382 // Accessor |
|
383 // --------------------------------------------------------------------------- |
|
384 // |
|
385 IMulModelAccessor* MulModelImpl::Accessor() |
|
386 { |
|
387 return this; |
|
388 } |
|
389 |
|
390 // ------------------------ From IMulModelAccessor --------------------------- |
|
391 |
|
392 // --------------------------------------------------------------------------- |
|
393 // SetHighlight |
|
394 // --------------------------------------------------------------------------- |
|
395 // |
|
396 void MulModelImpl::SetHighlight( int aItemIndex ) |
|
397 { |
|
398 mDataWindow->SetHighlight( aItemIndex ); |
|
399 } |
|
400 |
|
401 // --------------------------------------------------------------------------- |
|
402 // ScrollWindow |
|
403 // --------------------------------------------------------------------------- |
|
404 // |
|
405 void MulModelImpl::ScrollWindow( int aItemIndex ) |
|
406 { |
|
407 mDataWindow->ScrollWindow( aItemIndex ); |
|
408 } |
|
409 |
|
410 // --------------------------------------------------------------------------- |
|
411 // CurrentItemCount |
|
412 // --------------------------------------------------------------------------- |
|
413 // |
|
414 int MulModelImpl::CurrentItemCount() |
|
415 { |
|
416 return mModelHelper->CurrentItemCount(); |
|
417 } |
|
418 |
|
419 // --------------------------------------------------------------------------- |
|
420 // SetDataWindow |
|
421 // --------------------------------------------------------------------------- |
|
422 // |
|
423 void MulModelImpl::SetVisibleWindow( int aWindowSize, int aPageTopIndex ) |
|
424 { |
|
425 mDataWindow->SetWindowSize( aWindowSize, aPageTopIndex ); |
|
426 } |
|
427 // ------------------------ Member Function ---------------------------------- |
|
428 |
|
429 // --------------------------------------------------------------------------- |
|
430 // DataWindowUpdated |
|
431 // --------------------------------------------------------------------------- |
|
432 // |
|
433 void MulModelImpl::DataWindowUpdated() |
|
434 { |
|
435 mModelHelper->DataWindowUpdated(); |
|
436 std::auto_ptr<IMulVariantType> dummyData; |
|
437 NotifyStateChange( IMulModelObserver::EDataWindowUpdated, dummyData ); |
|
438 } |
|
439 |
|
440 // --------------------------------------------------------------------------- |
|
441 // RelativeIndex |
|
442 // --------------------------------------------------------------------------- |
|
443 // |
|
444 int MulModelImpl::RelativeIndex( int aAbsoluteIndex ) const |
|
445 { |
|
446 return mDataWindow->RelativeIndex(aAbsoluteIndex); |
|
447 } |
|
448 |
|
449 // --------------------------------------------------------------------------- |
|
450 // TopWindowOffset |
|
451 // --------------------------------------------------------------------------- |
|
452 // |
|
453 int MulModelImpl::TopWindowOffset() const |
|
454 { |
|
455 return mDataWindow->TopWindowOffset(); |
|
456 } |
|
457 |
|
458 // --------------------------------------------------------------------------- |
|
459 // BottomWindowOffset |
|
460 // --------------------------------------------------------------------------- |
|
461 // |
|
462 int MulModelImpl::BottomWindowOffset() const |
|
463 { |
|
464 return mDataWindow->BottomWindowOffset(); |
|
465 } |
|
466 |
|
467 // --------------------------------------------------------------------------- |
|
468 // TopOffset |
|
469 // --------------------------------------------------------------------------- |
|
470 // |
|
471 int MulModelImpl::TopOffset() const |
|
472 { |
|
473 return mDataWindow->TopOffset(); |
|
474 } |
|
475 |
|
476 // --------------------------------------------------------------------------- |
|
477 // BottomOffset |
|
478 // --------------------------------------------------------------------------- |
|
479 // |
|
480 int MulModelImpl::BottomOffset() const |
|
481 { |
|
482 return mDataWindow->BottomOffset(); |
|
483 } |
|
484 |
|
485 // --------------------------------------------------------------------------- |
|
486 // RearTopOffset |
|
487 // --------------------------------------------------------------------------- |
|
488 // |
|
489 int MulModelImpl::RearTopOffset() const |
|
490 { |
|
491 return mDataWindow->RearTopOffset(); |
|
492 } |
|
493 |
|
494 // --------------------------------------------------------------------------- |
|
495 // RearBottomOffset |
|
496 // --------------------------------------------------------------------------- |
|
497 // |
|
498 int MulModelImpl::RearBottomOffset() const |
|
499 { |
|
500 return mDataWindow->RearBottomOffset(); |
|
501 } |
|
502 |
|
503 // --------------------------------------------------------------------------- |
|
504 // IsItemMarked |
|
505 // --------------------------------------------------------------------------- |
|
506 // |
|
507 bool MulModelImpl::IsItemMarked( int aIndex ) |
|
508 { |
|
509 return mModelHelper->CacheManager().IsItemMarked(aIndex); |
|
510 } |
|
511 |
|
512 // --------------------------------------------------------------------------- |
|
513 // Item |
|
514 // --------------------------------------------------------------------------- |
|
515 // |
|
516 const MulVisualItem& MulModelImpl::Item( int aAbsoluteIndex ) |
|
517 { |
|
518 return mModelHelper->Item( aAbsoluteIndex ); |
|
519 } |
|
520 |
|
521 // --------------------------------------------------------------------------- |
|
522 // AbsoluteIndex |
|
523 // --------------------------------------------------------------------------- |
|
524 // |
|
525 int MulModelImpl::AbsoluteIndex( int aRelativeIndex ) |
|
526 { |
|
527 return mDataWindow->AbsoluteIndex(aRelativeIndex); |
|
528 } |
|
529 |
|
530 // --------------------------------------------------------------------------- |
|
531 // SetMarkedIndex |
|
532 // --------------------------------------------------------------------------- |
|
533 // |
|
534 void MulModelImpl::SetMarkedIndex( MulWidgetDef::TMulWidgetMarkingType aType, int aIndex ) |
|
535 { |
|
536 mModelHelper->CacheManager().SetMarkedIndex(aType,aIndex); |
|
537 } |
|
538 |
|
539 // ------------- Function from IAlfModel ------------------------------------- |
|
540 |
|
541 // --------------------------------------------------------------------------- |
|
542 // AddModelChangeObserver |
|
543 // --------------------------------------------------------------------------- |
|
544 // |
|
545 void MulModelImpl::addModelChangeObserver( IAlfModelChangeObserver& /*aObserver*/ ) |
|
546 { |
|
547 //__MUL_ASSERT_DEBUG(false, KLNotImplemented ); |
|
548 } |
|
549 |
|
550 // --------------------------------------------------------------------------- |
|
551 // RemoveModelChangeObserver |
|
552 // --------------------------------------------------------------------------- |
|
553 // |
|
554 void MulModelImpl::removeModelChangeObserver( IAlfModelChangeObserver& /*aObserver*/ ) |
|
555 { |
|
556 //__MUL_ASSERT_DEBUG(false, KLNotImplemented ); |
|
557 } |
|
558 // --------------------------------------------------------------------------- |
|
559 // SetData |
|
560 // --------------------------------------------------------------------------- |
|
561 // |
|
562 void MulModelImpl::setData( IAlfVariantType* /*aData*/ ) |
|
563 { |
|
564 __MUL_ASSERT_DEBUG(false, KLNotImplemented); |
|
565 } |
|
566 |
|
567 // --------------------------------------------------------------------------- |
|
568 // UpdateData |
|
569 // --------------------------------------------------------------------------- |
|
570 // |
|
571 void MulModelImpl::updateData( int /*aNumContainerIndices*/, |
|
572 int* /*aContainerIndices*/, |
|
573 IAlfVariantType* /*aData*/ ) |
|
574 { |
|
575 __MUL_ASSERT_DEBUG(false, KLNotImplemented); |
|
576 } |
|
577 |
|
578 // --------------------------------------------------------------------------- |
|
579 // AddData |
|
580 // --------------------------------------------------------------------------- |
|
581 // |
|
582 void MulModelImpl::addData( int /*aNumContainerIndices*/, |
|
583 int* /*aContainerIndices*/, |
|
584 IAlfVariantType* /*aData*/ ) |
|
585 { |
|
586 __MUL_ASSERT_DEBUG(false, KLNotImplemented); |
|
587 } |
|
588 |
|
589 // --------------------------------------------------------------------------- |
|
590 // RemoveData |
|
591 // --------------------------------------------------------------------------- |
|
592 // |
|
593 void MulModelImpl::removeData( int /*aNumContainerIndices*/, int* /*aContainerIndices*/ ) |
|
594 { |
|
595 __MUL_ASSERT_DEBUG(false, KLNotImplemented); |
|
596 } |
|
597 |
|
598 // --------------------------------------------------------------------------- |
|
599 // ExecuteOperations |
|
600 // --------------------------------------------------------------------------- |
|
601 // |
|
602 void MulModelImpl::executeOperations( AlfPtrVector<AlfModelOperation>& /*aOperationsArray*/ ) |
|
603 { |
|
604 __MUL_ASSERT_DEBUG(false, KLNotImplemented); |
|
605 } |
|
606 |
|
607 // --------------------------------------------------------------------------- |
|
608 // ExecuteOperation |
|
609 // --------------------------------------------------------------------------- |
|
610 // |
|
611 void MulModelImpl::executeOperation( AlfModelOperation* /*aOperation*/ ) |
|
612 { |
|
613 __MUL_ASSERT_DEBUG(false, KLNotImplemented); |
|
614 } |
|
615 |
|
616 // --------------------------------------------------------------------------- |
|
617 // ClearModel |
|
618 // --------------------------------------------------------------------------- |
|
619 // |
|
620 void MulModelImpl::clearModel() |
|
621 { |
|
622 __MUL_ASSERT_DEBUG(false, KLNotImplemented); |
|
623 } |
|
624 |
|
625 // --------------------------------------------------------------------------- |
|
626 // Data |
|
627 // --------------------------------------------------------------------------- |
|
628 // |
|
629 IAlfVariantType* MulModelImpl::data() const |
|
630 { |
|
631 __MUL_ASSERT_DEBUG(false, KLNotImplemented); |
|
632 return NULL; |
|
633 } |
|
634 |
|
635 // --------------------------------------------------------------------------- |
|
636 // From class MAlfInterfaceBase. |
|
637 // Getter for interfaces provided by the list model. |
|
638 // --------------------------------------------------------------------------- |
|
639 // |
|
640 IAlfInterfaceBase* MulModelImpl::makeInterface( const IfId& /*aType*/ ) |
|
641 { |
|
642 return static_cast<IMulModel*>( this ); |
|
643 } |
|
644 |
|
645 |
|
646 } // namespace Alf |
|
647 |
|
648 //End of file |
|