20
|
1 |
/*
|
|
2 |
* Copyright (c) 2006 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:
|
|
15 |
* This file contains all the resources for ExtensionManager.
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
|
|
20 |
// RESOURCE IDENTIFIER
|
|
21 |
NAME XMGR // 4 letter ID
|
|
22 |
|
|
23 |
|
|
24 |
// INCLUDES
|
|
25 |
#include <uikon.rh>
|
|
26 |
#include <eikon.rh>
|
|
27 |
#include <avkon.rh>
|
|
28 |
#include <avkon.hrh>
|
|
29 |
#include <avkon.rsg>
|
|
30 |
#include <avkon.loc>
|
|
31 |
|
|
32 |
#include "ExtensionManager.hrh"
|
|
33 |
|
|
34 |
// Phonebook 2
|
|
35 |
#include <Pbk2UIExtension.rh>
|
|
36 |
#include <Pbk2ViewId.hrh>
|
|
37 |
#include <Pbk2MenuFilteringFlags.hrh>
|
|
38 |
#include <Pbk2ViewInfo.hrh>
|
|
39 |
#include <Pbk2ViewGraph.rh>
|
|
40 |
#include <Pbk2IconInfo.rh>
|
|
41 |
#include <Pbk2IconId.rh>
|
|
42 |
#include <Pbk2UID.h>
|
|
43 |
|
|
44 |
#include "xSPCommandInfo.rh"
|
|
45 |
#include "xSPViewInfo.rh"
|
|
46 |
#include <extensionmanager.loc>
|
|
47 |
#include "ExtensionManagerUID.H"
|
|
48 |
|
|
49 |
// RESOURCE DEFINITIONS
|
|
50 |
|
|
51 |
// ---------------------------------------------------------
|
|
52 |
// Standard resource signature
|
|
53 |
// ---------------------------------------------------------
|
|
54 |
//
|
|
55 |
RESOURCE RSS_SIGNATURE { }
|
|
56 |
|
|
57 |
|
|
58 |
// --------------------------------------------------------------------------
|
|
59 |
// Extension information
|
|
60 |
// --------------------------------------------------------------------------
|
|
61 |
//
|
|
62 |
RESOURCE PHONEBOOK2_EXTENSION_INFORMATION
|
|
63 |
r_extension_manager_ui_extension_information
|
|
64 |
{
|
|
65 |
version = 0;
|
|
66 |
|
|
67 |
implementationUid = KEXTENSIONMANAGERIMPLEMENTATIONUID;
|
|
68 |
loadingPolicy = KPbk2LoadInStartup;
|
|
69 |
|
|
70 |
menuCommandRange = PHONEBOOK2_EXTENSION_RANGE
|
|
71 |
{
|
|
72 |
firstId = EExtensionManagerFirstCommand;
|
|
73 |
lastId = EExtensionManagerLastCommand;
|
|
74 |
};
|
|
75 |
overwrittenCommands = {};
|
|
76 |
extensionMenus = {};
|
|
77 |
|
|
78 |
viewIds =
|
|
79 |
{
|
|
80 |
PHONEBOOK2_EXTENSION_VIEW_ID
|
|
81 |
{
|
|
82 |
version = 0;
|
|
83 |
viewId = EExtensionManagerSortViewId;
|
|
84 |
viewResource = r_extension_manager_sort_view;
|
|
85 |
}
|
|
86 |
};
|
|
87 |
|
|
88 |
viewGraphModification = r_extension_manager_ui_extension_viewgraph;
|
|
89 |
}
|
|
90 |
|
|
91 |
RESOURCE PBK2_VIEW_GRAPH r_extension_manager_ui_extension_viewgraph
|
|
92 |
{
|
|
93 |
nodes =
|
|
94 |
{
|
|
95 |
/// Sort view
|
|
96 |
PBK2_VIEW_NODE
|
|
97 |
{
|
|
98 |
version = 0;
|
|
99 |
viewId = EExtensionManagerSortViewId;
|
|
100 |
defaultPrevViewId = EPbk2ExitViewId;
|
|
101 |
transitions =
|
|
102 |
{
|
|
103 |
PBK2_VIEW_TRANSITION
|
|
104 |
{
|
|
105 |
event = EPbk2ViewTransitionBack;
|
|
106 |
targetViewId = EPbk2NullViewId;
|
|
107 |
}
|
|
108 |
};
|
|
109 |
}
|
|
110 |
};
|
|
111 |
}
|
|
112 |
|
|
113 |
// Basic viewgraph that is used with all xSP views
|
|
114 |
RESOURCE ARRAY r_extension_manager_basic_viewgraph
|
|
115 |
{
|
|
116 |
items =
|
|
117 |
{
|
|
118 |
PBK2_VIEW_TRANSITION
|
|
119 |
{
|
|
120 |
version = 0;
|
|
121 |
event = EPbk2ViewTransitionBack;
|
|
122 |
targetViewId = EPbk2NullViewId;
|
|
123 |
}
|
|
124 |
};
|
|
125 |
}
|
|
126 |
|
|
127 |
|
|
128 |
RESOURCE AVKON_VIEW r_extension_manager_basicview
|
|
129 |
{
|
|
130 |
menubar = r_extension_manager_menubar;
|
|
131 |
cba = R_AVKON_SOFTKEYS_EXIT;
|
|
132 |
}
|
|
133 |
|
|
134 |
RESOURCE MENU_PANE r_extension_manager_menu
|
|
135 |
{
|
|
136 |
items={};
|
|
137 |
}
|
|
138 |
|
|
139 |
|
|
140 |
RESOURCE MENU_BAR r_extension_manager_menubar
|
|
141 |
{
|
|
142 |
titles =
|
|
143 |
{
|
|
144 |
MENU_TITLE
|
|
145 |
{
|
|
146 |
menu_pane = r_extension_manager_menu;
|
|
147 |
}
|
|
148 |
};
|
|
149 |
}
|
|
150 |
|
|
151 |
/**
|
|
152 |
* Names List View example options submenu
|
|
153 |
*/
|
|
154 |
RESOURCE MENU_PANE r_sort_names_list_view_menu
|
|
155 |
{
|
|
156 |
items =
|
|
157 |
{
|
|
158 |
MENU_ITEM
|
|
159 |
{
|
|
160 |
command = EExtensionManagerCmdSort;
|
|
161 |
txt = qtn_extension_manager_opt_sort;
|
|
162 |
}
|
|
163 |
};
|
|
164 |
}
|
|
165 |
|
|
166 |
|
|
167 |
RESOURCE CBA r_extension_manager_sort_view_softkeys
|
|
168 |
{
|
|
169 |
buttons =
|
|
170 |
{
|
|
171 |
CBA_BUTTON { id = EExtensionManagerCmdMove; txt = qtn_extension_manager_softkey_move; },
|
|
172 |
CBA_BUTTON { id = EAknSoftkeyBack; txt = text_softkey_back; }
|
|
173 |
};
|
|
174 |
}
|
|
175 |
RESOURCE AVKON_VIEW r_extension_manager_sort_view
|
|
176 |
{
|
|
177 |
cba = r_extension_manager_sort_view_softkeys;
|
|
178 |
}
|
|
179 |
|
|
180 |
RESOURCE XSP_COMMAND_INFO_ARRAY r_extension_manager_command_info
|
|
181 |
{
|
|
182 |
items =
|
|
183 |
{
|
|
184 |
XSP_COMMAND_INFO
|
|
185 |
{
|
|
186 |
oldId = EExtensionManagerCmdSort;
|
|
187 |
}
|
|
188 |
};
|
|
189 |
}
|
|
190 |
|
|
191 |
RESOURCE XSP_VIEW_INFO_ARRAY r_extension_manager_view_info
|
|
192 |
{
|
|
193 |
items =
|
|
194 |
{
|
|
195 |
XSP_VIEW_INFO
|
|
196 |
{
|
|
197 |
oldId = EExtensionManagerSortViewId;
|
|
198 |
}
|
|
199 |
};
|
|
200 |
}
|
|
201 |
|
|
202 |
RESOURCE TBUF r_qtn_extension_manager_shutdown_note { buf = qtn_extension_manager_shutdown_note; }
|
|
203 |
|
|
204 |
// End of File
|