|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
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 the License "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 <componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" |
|
10 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
|
11 |
|
12 <component baseComponent="com.nokia.sdt.series60.NonLayoutBase" |
|
13 friendlyName="%friendlyName" |
|
14 qualifiedName="com.nokia.sdt.series60.ConfirmationQuery" |
|
15 category="NotesDialogs" |
|
16 instanceNameRoot="confQuery" |
|
17 version="1.0"> |
|
18 <documentation> |
|
19 <information>%information</information> |
|
20 </documentation> |
|
21 <symbian sdkName="com.nokia.series60" minSDKVersion="2.0" |
|
22 className="CAknQueryDialog" classHelpTopic="" |
|
23 resourceType="AVKON_CONFIRMATION_QUERY" resourceHelpTopic="" /> |
|
24 <designerImages smallIconFile="ConfirmationQuery_sm.png" |
|
25 largeIconFile="ConfirmationQuery.png"/> |
|
26 <attributes> |
|
27 <attribute key="is-transient-object">true</attribute> |
|
28 <attribute key="is-non-resizable-or-moveable-layout-object">true</attribute> |
|
29 </attributes> |
|
30 <properties> |
|
31 <compoundProperty category="Hidden" name="location" type="com.nokia.sdt.series60.locationProperty" |
|
32 editorClass="com.nokia.sdt.symbian.ui.editors.ReadOnlySummaryEditorFactory"/> |
|
33 <compoundProperty category="Hidden" name="size" type="com.nokia.sdt.series60.sizeProperty" |
|
34 editorClass="com.nokia.sdt.symbian.ui.editors.ReadOnlySummaryEditorFactory"/> |
|
35 <property category="Data" name="text" type="localizedString" |
|
36 default="Question" |
|
37 descriptionKey="textDescription" |
|
38 editorClass="com.nokia.sdt.symbian.ui.editors.ScalableTextEditorFactory" /> |
|
39 <enumProperty category="Data" name="tone" |
|
40 type="com.nokia.sdt.series60.Query.tone" |
|
41 descriptionKey="toneDescription" /> |
|
42 </properties> |
|
43 <implementations> |
|
44 <implementation> |
|
45 <interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/> |
|
46 <interface id="com.nokia.sdt.datamodel.adapter.IDirectLabelEdit"/> |
|
47 <interface id="com.nokia.sdt.datamodel.adapter.ILayout"/> |
|
48 <interface id="com.nokia.sdt.datamodel.adapter.IComponentInstancePropertyListener"/> |
|
49 <script file="ConfirmationQuery_visual.js" prototype="ConfirmationQueryVisual"/> |
|
50 </implementation> |
|
51 </implementations> |
|
52 |
|
53 <sourceMapping> |
|
54 <mapResource struct="DIALOG" headers="avkon.rsg avkon.rh eikon.rh"> |
|
55 <mapBitmaskMember property="." member="flags" includedProperties="" > |
|
56 <!-- initial blank entry forces bits on --> |
|
57 <mapBitmaskValue properties="" value="EAknGeneralQueryFlags" /> |
|
58 </mapBitmaskMember> |
|
59 <mapFixedMember member="buttons" value="R_AVKON_SOFTKEYS_YES_NO" /> |
|
60 <mapResourceMember property="." member="items[0]" struct="DLG_LINE" headers="avkon.rh"> |
|
61 <mapFixedMember member="type" value="EAknCtQuery" /> |
|
62 <mapEnumMember property="." member="id" uniqueValue="*" |
|
63 nameAlgorithm="com.nokia.sdt.component.symbian.NAME_ALG_DIALOG_LINE_ID" /> |
|
64 <mapResourceMember property="." member="control" struct="AVKON_CONFIRMATION_QUERY" headers="avkon.rh"> |
|
65 <mapFixedMember member="layout" value="EConfirmationQueryLayout" /> |
|
66 <mapSimpleMember property="text" member="label" /> |
|
67 </mapResourceMember> |
|
68 </mapResourceMember> |
|
69 </mapResource> |
|
70 </sourceMapping> |
|
71 |
|
72 <sourceGen> |
|
73 <template phase="ClassMethods"> |
|
74 static TInt Run${instanceName$title}L( const TDesC* aOverrideText = NULL ); |
|
75 </template> |
|
76 <defineLocation id="MethodLocation" baseLocation="MAIN_FILE" |
|
77 owned="true" |
|
78 location="function(${className}::Run${instanceName$title}L(const TDesC*))"> |
|
79 <template> |
|
80 /** |
|
81 * Show the popup dialog for ${instanceName} |
|
82 * @param aOverrideText optional override text |
|
83 * @return EAknSoftkeyYes (left soft key id) or 0 |
|
84 */ |
|
85 TInt ${className}::Run${instanceName$title}L( const TDesC* aOverrideText ) |
|
86 { |
|
87 } |
|
88 </template> |
|
89 </defineLocation> |
|
90 <template location="MethodLocation"><![CDATA[ |
|
91 <% if (properties.tone != "ENoTone") { %> |
|
92 CAknQueryDialog* queryDialog = CAknQueryDialog::NewL( CAknQueryDialog::${properties.tone} ); |
|
93 <% } else { %> |
|
94 CAknQueryDialog* queryDialog = CAknQueryDialog::NewL(); |
|
95 <% } %> |
|
96 if ( aOverrideText != NULL ) |
|
97 { |
|
98 queryDialog->SetPromptL( *aOverrideText ); |
|
99 } |
|
100 return queryDialog->ExecuteLD( ${resourceName$upper} ); |
|
101 ]]> </template> |
|
102 |
|
103 <template phase="MainSystemIncludes"><![CDATA[ |
|
104 #include <aknquerydialog.h> |
|
105 ]]> </template> |
|
106 </sourceGen> |
|
107 </component> |
|
108 |
|
109 </componentDefinition> |