|
1 /* |
|
2 * Copyright (c) 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: CMmGridModel declaration |
|
15 * Version : %version: MM_14 % << Don't touch! Updated by Synergy at check-out. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef C_MMGRIDMODEL_H |
|
21 #define C_MMGRIDMODEL_H |
|
22 |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 #include <AknGridM.h> |
|
26 |
|
27 class CMmListBoxModel; |
|
28 class CHnSuiteModel; |
|
29 |
|
30 /** |
|
31 * Multimedia Menu grid model. |
|
32 * |
|
33 * @code |
|
34 * @endcode |
|
35 * @lib |
|
36 * @since S60 v3.0 |
|
37 * @ingroup group_mmwidgets |
|
38 */ |
|
39 NONSHARABLE_CLASS( CMmGridModel ) : public CAknGridM |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 */ |
|
45 static CMmGridModel* NewL(); |
|
46 |
|
47 /** |
|
48 * Two-phased constructor. |
|
49 */ |
|
50 static CMmGridModel* NewLC(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 * |
|
55 * @since S60 v3.0 |
|
56 */ |
|
57 ~CMmGridModel(); |
|
58 |
|
59 |
|
60 /** |
|
61 * Returns the number of grid items in model. |
|
62 * |
|
63 * @since S60 v3.0 |
|
64 * @return Number of items in model. |
|
65 */ |
|
66 TInt NumberOfItems() const; |
|
67 |
|
68 /** |
|
69 * Returns the Multimedia Menu listbox model. |
|
70 * |
|
71 * @since S60 v3.0 |
|
72 * @return Listbox model. |
|
73 */ |
|
74 CMmListBoxModel* MmListBoxModel(); |
|
75 |
|
76 private: |
|
77 /** |
|
78 * Default constructor. |
|
79 * |
|
80 * @since S60 v3.0 |
|
81 */ |
|
82 CMmGridModel(); |
|
83 |
|
84 /** |
|
85 * 2nd phase constructor. |
|
86 * |
|
87 * @since S60 v3.0 |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 /** |
|
92 * 2nd phase constructor. |
|
93 * Do not delete!!! This constructor does not do anything |
|
94 * and is overloaded to make sure AVKON sets up the grid only by calling |
|
95 * ConstructL() without any parameters. |
|
96 * |
|
97 * @since S60 v5.0 |
|
98 */ |
|
99 void ConstructL(MDesCArray* /*aItemTextArray*/, TListBoxModelItemArrayOwnership /*aOwnershipType*/); |
|
100 |
|
101 private: // Data |
|
102 |
|
103 /** |
|
104 * The Multimedia Menu Listbox model which is in fact the grid model used. |
|
105 */ |
|
106 CMmListBoxModel* iMmListBoxModel; |
|
107 |
|
108 }; |
|
109 |
|
110 #endif // C_MMGRIDMODEL_H |