|
1 /* |
|
2 * Copyright (c) 2000 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: Resource definitions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include <ecom/registryinfo.rh> |
|
24 #include <mpxviewplugin.hrh> |
|
25 #include "glxgridviewplugin.hrh" |
|
26 |
|
27 // RESOURCE DEFINITIONS |
|
28 |
|
29 /** |
|
30 * The opaque_data syntax is made up of three parts: |
|
31 * a list of Uids for resolving the view plugin, feature flags, priority. |
|
32 * |
|
33 * <p>uid1;uid2;uid3</p> |
|
34 * uid*: uid of the supported Playback/Collection plugin. |
|
35 * E.g. if the view plugin supports Local Playback plugin, the list of |
|
36 * uids will be: 0x101FFC06 |
|
37 * Now the Opaque data can contain a Depth (Path Level) UID. |
|
38 * This is to differentiate between the Album Plugin requires a List View (Depth 2 - list of Albums) |
|
39 * and it requiring a Grid View (Depth 3 Contents of an album). |
|
40 * However the Plugin ID must score higher than the depth. So now we must add the plugin Id 4 Times |
|
41 * The value of the depths are KGlxDepthTwo - , KGlxDepthThree - 0x2000A776 and KGlxDepthFour - 0x200104DB |
|
42 * I could not seem to use a #define in between the <p> <\p> tags so the values had to be used |
|
43 * |
|
44 * <t>uid</t> |
|
45 * uid: plugin type uid. |
|
46 * E.g. if the view plugin supports playback type, uid will be: 0x101FFCA0 |
|
47 * |
|
48 * <f>flags</f> [optional] |
|
49 * flags: sum of the required feature flags that listed in mpxviewplugin.hrh. |
|
50 * E.g. if the view plugin needs to be pre-loaded and it's user-selectable, |
|
51 * then flags = KMPXVpFeaturePreLoaded + KMPXVpFeatureUserSelectable = 0x0003. |
|
52 * |
|
53 * <i>priority</i> [optional] |
|
54 * priority: a value of type TMPXViewPluginPriorities. This value determines |
|
55 * which view plugin will be resolved when several plugins can support the |
|
56 * same set of Uids. |
|
57 * Default value of this field is EMPXViewPluginPriorityNormal. |
|
58 * |
|
59 */ |
|
60 RESOURCE REGISTRY_INFO theInfo |
|
61 { |
|
62 dll_uid = 0x20000A03; |
|
63 |
|
64 interfaces = |
|
65 { |
|
66 INTERFACE_INFO |
|
67 { |
|
68 interface_uid = KMPXViewPluginInterfaceUid; |
|
69 implementations = |
|
70 { |
|
71 IMPLEMENTATION_INFO |
|
72 { |
|
73 implementation_uid = KGlxMainGridViewImplementationId; |
|
74 version_no = 1; |
|
75 display_name = "Main Grid view"; |
|
76 default_data = ""; |
|
77 opaque_data = "<p>0x200104DC;0x2000A775;0x2000A7C1;0x2000A7C1;0x2000A7C1;0x2000A7C1</p>" |
|
78 "<t>0x20000A04</t>" |
|
79 "<f>0x0002</f>" |
|
80 "<i>"EMPXViewPluginPriorityLowest"</i>"; |
|
81 } |
|
82 }; |
|
83 implementations = |
|
84 { |
|
85 IMPLEMENTATION_INFO |
|
86 { |
|
87 implementation_uid = KGlxAlbumGridViewImplementationId; |
|
88 version_no = 1; |
|
89 display_name = "Album Grid view"; |
|
90 default_data = ""; |
|
91 opaque_data = "<p>0x200104DC;0x2000A776;0x20007197;0x20007197;0x20007197;0x20007197;</p>" |
|
92 "<t>0x2000A772</t>" |
|
93 "<f>0x0002</f>" |
|
94 "<i>"EMPXViewPluginPriorityLowest"</i>"; |
|
95 } |
|
96 }; |
|
97 implementations = |
|
98 { |
|
99 IMPLEMENTATION_INFO |
|
100 { |
|
101 implementation_uid = KGlxDownloadsGridViewImplementationId; |
|
102 version_no = 1; |
|
103 display_name = "Downloads Grid view"; |
|
104 default_data = ""; |
|
105 opaque_data = "<p>0x200104DC;0x2000A775;0x2000a76b;0x2000a76b;0x2000a76b;0x2000a76b</p>" |
|
106 "<t>0x2000A774</t>" |
|
107 "<f>0x0002</f>" |
|
108 "<i>"EMPXViewPluginPriorityLowest"</i>"; |
|
109 } |
|
110 }; |
|
111 |
|
112 implementations = |
|
113 { |
|
114 IMPLEMENTATION_INFO |
|
115 { |
|
116 implementation_uid = KGlxCameraAlbumGridViewImplementationId; |
|
117 version_no = 1; |
|
118 display_name = "Camera Albums Grid view"; |
|
119 default_data = ""; |
|
120 opaque_data = "<p>0x200104DC;0x2000A775;2000A767;0x2000A767;0x2000A767;0x2000A767</p>" |
|
121 "<t>0x2000A773</t>" |
|
122 "<f>0x0002</f>" |
|
123 "<i>"EMPXViewPluginPriorityLowest"</i>"; |
|
124 } |
|
125 }; |
|
126 |
|
127 implementations = |
|
128 { |
|
129 IMPLEMENTATION_INFO |
|
130 { |
|
131 implementation_uid = KGlxMonthsGridViewImplementationId; |
|
132 version_no = 1; |
|
133 display_name = "Months Grid view"; |
|
134 default_data = ""; |
|
135 opaque_data = "<p>0x200104DC;0x2000A776;0x2000A769;0x2000A769;0x2000A769;0x2000A769</p>" |
|
136 "<t>0x2000718E</t>" |
|
137 "<f>0x0002</f>" |
|
138 "<i>"EMPXViewPluginPriorityLowest"</i>"; |
|
139 } |
|
140 }; |
|
141 implementations = |
|
142 { |
|
143 IMPLEMENTATION_INFO |
|
144 { |
|
145 implementation_uid = KGlxTagGridViewPluginImplementationUid; |
|
146 version_no = 1; |
|
147 display_name = "Tag Grid view"; |
|
148 default_data = ""; |
|
149 opaque_data = "<p>0x200104DC;0x2000A776;0x200071AE;0x200071AE;0x200071AE;0x200071AE</p>" |
|
150 "<t>0x2000A762</t>" |
|
151 "<f>0x0002</f>" |
|
152 "<i>"EMPXViewPluginPriorityLowest"</i>"; |
|
153 } |
|
154 }; |
|
155 |
|
156 } |
|
157 }; |
|
158 } |
|
159 |
|
160 // End of File |