|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-B5DE1C86-2B16-4B22-887F-7079E54A8ED6" xml:lang="en"><title>Traditional |
|
13 Symbian UI application architecture</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>The following image illustrates the components of the traditional architecture |
|
15 approach.</p> |
|
16 <fig id="GUID-F38DBC9C-31C0-4E4F-934C-38BA4A4B649F"><title>Traditional Symbian UI application architecture classes</title><image href="GUID-E477BB63-FE72-4460-AB42-D82FFFCE4CF0_d0e68214_href.png"/></fig> |
|
17 <p>Symbian platform applications that follow the traditional Symbian UI |
|
18 application architecture require:</p> |
|
19 <ul> |
|
20 <li><p>a <xref href="GUID-FD2CDEB8-0784-4BE5-A775-170F57D71BBC.dita">UI |
|
21 controller</xref> derived from <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknAppUi.html" format="application/java-archive"><parmname>CAknAppUi</parmname></xref></p> |
|
22 </li> |
|
23 <li><p>a <xref href="GUID-DAC32BB9-C0EB-42FF-A596-C2F1A90A4BD7.dita">view</xref> or |
|
24 views derived from <xref href="jar:GUID-35228542-8C95-4849-A73F-2B4F082F0C44.jar!/sdk/doc_source/reference/reference-cpp/Control_Environment/CCoeControlClass.html" format="application/java-archive"><parmname>CCoeControl</parmname></xref></p> |
|
25 </li> |
|
26 </ul> |
|
27 <p>The traditional Symbian UI application architecture provides the most |
|
28 flexible approach to application UI construction. Traditional architecture |
|
29 is easier to port across different platforms than <xref href="GUID-68B999C2-0993-4804-9624-42C3D88BE5C7.dita">view |
|
30 architecture</xref>. Traditional architecture is also the best choice for |
|
31 single-view applications, if launching the view from external applications |
|
32 is not required.</p> |
|
33 <p>Typical responsibilities in this architecture are:</p> |
|
34 <ul> |
|
35 <li><p><xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknAppUi.html" format="application/java-archive"><parmname>CAknAppUi</parmname></xref>-derived |
|
36 class acts as a UI controller:</p> |
|
37 <ul> |
|
38 <li><p>It <xref href="GUID-A29FB4CA-2161-4407-BA69-48FBF5D7543F.dita">creates</xref> one |
|
39 or more <xref href="jar:GUID-35228542-8C95-4849-A73F-2B4F082F0C44.jar!/sdk/doc_source/reference/reference-cpp/Control_Environment/CCoeControlClass.html" format="application/java-archive"><parmname>CCoeControl</parmname></xref>-derived views.</p></li> |
|
40 <li><p>It handles <xref href="GUID-EF7FF39E-929F-4767-B475-5D582D37BB32.dita">events</xref>, |
|
41 including enabling views to handle <xref href="GUID-E402616A-7ED8-45AC-B836-99C3A3760B33.dita">key |
|
42 events</xref>.</p></li> |
|
43 <li><p>To <xref href="GUID-FC63E2D1-697C-4890-9B70-0DC0AAE7597C.dita">switch |
|
44 between views</xref>, it creates and destroys or shows and hides views.</p> |
|
45 </li> |
|
46 <li><p>It handles menu <xref href="GUID-4941C035-C359-4968-9BD5-31F44EE5F810.dita">commands</xref>.</p> |
|
47 </li> |
|
48 <li><p>It receives events such as <xref href="GUID-DD15F24B-0786-4531-A6C5-A5E70EBE2732.dita">layout</xref> and <xref href="GUID-3B441CDC-AB7A-4D8D-A595-57C21E1D426C.dita">foreground</xref> notifications |
|
49 from the run-time environment.</p></li> |
|
50 </ul> |
|
51 </li> |
|
52 </ul> |
|
53 <ul> |
|
54 <li><p><xref href="jar:GUID-35228542-8C95-4849-A73F-2B4F082F0C44.jar!/sdk/doc_source/reference/reference-cpp/Control_Environment/CCoeControlClass.html" format="application/java-archive"><parmname>CCoeControl</parmname></xref>-derived |
|
55 view:</p> |
|
56 <ul> |
|
57 <li><p>Shows application data and state on the screen.</p></li> |
|
58 <li><p>Receives user input.</p></li> |
|
59 <li><p>Notifies the <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknAppUi.html" format="application/java-archive"><parmname>CAknAppUi</parmname></xref>-derived |
|
60 class of relevant events.</p></li> |
|
61 <li><p>Often observes model changes (directly or via the UI controller) |
|
62 and updates the screen accordingly.</p></li> |
|
63 </ul> |
|
64 </li> |
|
65 </ul> |
|
66 <p>For more information on the <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknApplication.html" format="application/java-archive"><parmname>CAknApplication</parmname></xref> and <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknDocument.html" format="application/java-archive"><parmname>CAknDocument</parmname></xref>-derived |
|
67 classes, see <xref href="GUID-BDDDF68F-F7C3-43AF-8B6C-C77C701FD2A9.dita">Framework |
|
68 requirements for GUI applications</xref>.</p> |
|
69 </conbody></concept> |