|
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 // INCLUDES |
|
22 |
|
23 #include <ecom/registryinfo.rh> |
|
24 #include <mpxviewplugin.hrh> |
|
25 #include "glxlistviewplugin.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 Tile 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 = KGlxListPluginDllUid; |
|
63 |
|
64 interfaces = |
|
65 { |
|
66 INTERFACE_INFO |
|
67 { |
|
68 interface_uid = KMPXViewPluginInterfaceUid; |
|
69 implementations = |
|
70 { |
|
71 IMPLEMENTATION_INFO |
|
72 { |
|
73 implementation_uid = KGlxMainListViewImplementationUid; |
|
74 version_no = 1; |
|
75 display_name = "Main view"; |
|
76 default_data = ""; |
|
77 opaque_data = "<p>0x200071CC</p>" |
|
78 "<t>0x20000A0C</t>" |
|
79 "<f>0x0002</f>" |
|
80 "<i>"EMPXViewPluginPriorityLowest"</i>"; |
|
81 }, |
|
82 IMPLEMENTATION_INFO |
|
83 { |
|
84 implementation_uid = KGlxAlbumListViewImplementationUid; |
|
85 version_no = 1; |
|
86 display_name = "Album view"; |
|
87 default_data = ""; |
|
88 opaque_data = "<p>0x200104DC;0x2000A775;0x20007197;0x20007197;0x20007197;0x20007197</p>" |
|
89 "<t>0x20000A0E</t>" |
|
90 "<f>0x0002</f>" |
|
91 "<i>"EMPXViewPluginPriorityLowest"</i>"; |
|
92 }, |
|
93 IMPLEMENTATION_INFO |
|
94 { |
|
95 implementation_uid = KGlxMonthListViewImplementationUid; |
|
96 version_no = 1; |
|
97 display_name = "Month view"; |
|
98 default_data = ""; |
|
99 opaque_data = "<p>0x200104DC;0x2000A775;0x2000A769;0x2000A769;0x2000A769;0x2000A769</p>" |
|
100 "<t>0x2000718C</t>" |
|
101 "<f>0x0002</f>" |
|
102 "<i>"EMPXViewPluginPriorityLowest"</i>"; |
|
103 } |
|
104 }; |
|
105 } |
|
106 }; |
|
107 } |
|
108 |
|
109 // End of File |