1 /* |
|
2 * Copyright (c) 2006-2007 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: Stub file for visual list adapter |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __TMGLXVISUALLIST_ADAPTER_H__ |
|
22 #define __TMGLXVISUALLIST_ADAPTER_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 |
|
26 // INTERNAL INCLUDES |
|
27 #include "MGlxVisualList_Observer.h" |
|
28 #include <mglxvisuallist.h> |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 |
|
32 namespace TMGlxVisualList_Adapter_Config |
|
33 { |
|
34 const TInt KDefaultSize = 3; |
|
35 const TInt KDefaultFocus = 1; |
|
36 } |
|
37 |
|
38 // CLASS DEFINITION |
|
39 /** |
|
40 * Stub version of visual list |
|
41 * for testing purposes |
|
42 */ |
|
43 class TMGlxVisualList_Adapter |
|
44 : public MGlxVisualList |
|
45 { |
|
46 public: // Constructors and destructors |
|
47 |
|
48 /** |
|
49 * Construction |
|
50 */ |
|
51 TMGlxVisualList_Adapter( MGlxVisualList_Observer* aObserver ); |
|
52 ~TMGlxVisualList_Adapter(); |
|
53 void SetAdaptee( MGlxVisualList* aAdaptee ); |
|
54 |
|
55 public: // from MGlxVisualList |
|
56 |
|
57 TGlxVisualListId Id() const; |
|
58 CHuiVisual* Visual(TInt aListIndex); |
|
59 CGlxVisualObject* Item(TInt aListIndex); |
|
60 TInt ItemCount() const; |
|
61 TInt FocusIndex() const; |
|
62 CHuiControlGroup* ControlGroup() const; |
|
63 void AddObserverL(MGlxVisualListObserver* aObserver); |
|
64 void RemoveObserver(MGlxVisualListObserver* aObserver); |
|
65 void AddLayoutL(MGlxLayout* aLayout); |
|
66 void RemoveLayout(const MGlxLayout* aLayout); |
|
67 TGlxViewContextId AddContextL(TInt aFrontVisibleRangeOffset, TInt aRearVisibleRangeOffset); |
|
68 void RemoveContext(const TGlxViewContextId& aContextId); |
|
69 void NavigateL(TInt aIndexCount); |
|
70 TSize Size() const; |
|
71 void BringVisualsToFront(); |
|
72 void EnableAnimationL(TBool aAnimate, TInt aIndex); |
|
73 /// @ref MGlxVisualList::SetDefaultIconBehaviourL |
|
74 void SetDefaultIconBehaviourL( TBool aEnable ); |
|
75 |
|
76 void AddIconL( TInt , const CHuiTexture& , |
|
77 NGlxIconMgrDefs::TGlxIconPosition , |
|
78 TBool , TBool , TInt, TReal32, TReal32 ) { } |
|
79 |
|
80 TBool RemoveIcon( TInt , const CHuiTexture& ) { return ETrue;} |
|
81 |
|
82 void SetIconVisibility( TInt , const CHuiTexture&, TBool ) { } |
|
83 |
|
84 public: // Data |
|
85 |
|
86 TInt iSize; |
|
87 TInt iFocus; |
|
88 |
|
89 private: // Data |
|
90 |
|
91 RArray<MGlxVisualListObserver*> iObservers; |
|
92 MGlxVisualList_Observer* iMGlxVisualList_Observer; |
|
93 MGlxVisualList* iMGlxVisualList; |
|
94 |
|
95 }; |
|
96 |
|
97 #endif // __TMGLXVISUALLIST_ADAPTER_H__ |
|
98 |
|
99 // End of file |
|