Week 12 contribution of API Specs and fix SDK submission
<?xml version="1.0" encoding="utf-8"?><!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --><!-- This component and the accompanying materials are made available under the terms of the License "Eclipse Public License v1.0" which accompanies this distribution, and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --><!-- Initial Contributors: Nokia Corporation - initial contribution.Contributors: --><!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"><concept id="GUID-BBC374AD-88E6-5C58-88BB-B939C2948DDA-GENID-1-10-1-6-1-1-4-1-6-1-8-1" xml:lang="en"><title>Applicationuser interface (AppUi)</title><prolog><metadata><keywords/></metadata></prolog><conbody><p>Cone provides the <xref href="GUID-3AC2CDAC-0291-309F-A020-049BC9F2CF90.dita"><apiname>CCoeAppUi</apiname></xref> class as a generic basefor application user interface development. Uikon provides a specialization, <xref href="GUID-1185F595-0488-3E93-8D60-6B3A1A3AC32E.dita"><apiname>CEikAppUi</apiname></xref>,from which concrete application UIs can be derived. UI variant libraries typicallyderive their own AppUi base class from <xref href="GUID-1185F595-0488-3E93-8D60-6B3A1A3AC32E.dita"><apiname>CEikAppUi</apiname></xref> to standardizecommon UI paradigms. <xref href="GUID-3AC2CDAC-0291-309F-A020-049BC9F2CF90.dita"><apiname>CCoeAppUi</apiname></xref> is, therefore, normallya 'long way' from the surface of the finished application and knows littleof the concrete controls or functionality that it contains. </p><p> <xref href="GUID-3AC2CDAC-0291-309F-A020-049BC9F2CF90.dita"><apiname>CCoeAppUi</apiname></xref> provides the following key functionality: </p><ul><li id="GUID-96F849A2-4022-5564-8A28-A8D3615304CF-GENID-1-10-1-6-1-1-4-1-6-1-8-1-2-3-1"><p>An event-handling framework </p> <p> <xref href="GUID-3AC2CDAC-0291-309F-A020-049BC9F2CF90.dita"><apiname>CCoeAppUi</apiname></xref> isthe at the top of the run-time control hierarchy. It is the point at whichkey-press events are received from the Window Server. Many of the event-handlingfunctions are virtual and implemented in the derived AppUi classes. </p> </li></ul><fig id="GUID-9FC56BFC-6DF5-5BF8-BDCD-65579655C558-GENID-1-10-1-6-1-1-4-1-6-1-8-1-2-4"><image href="GUID-59A9871D-B0F3-54E2-A5BA-38790C109797_d0e80325_href.png" placement="inline"/></fig><ul><li id="GUID-380D267D-F442-5AE3-A361-CACEA4E97A88-GENID-1-10-1-6-1-1-4-1-6-1-8-1-2-5-1"><p>View Management </p> <p>TheView Manager (<xref href="GUID-1444A0B4-8828-3EEB-8DC7-C331648A5201.dita"><apiname>CCoeViewManager</apiname></xref>) is encapsulated by <xref href="GUID-3AC2CDAC-0291-309F-A020-049BC9F2CF90.dita"><apiname>CCoeAppUi</apiname></xref> whichprovides a view management API. </p> <p>Views are concrete classes that implementthe <xref href="GUID-2C5E3F6C-6679-3914-9736-62296E7715A7.dita"><apiname>MCoeView</apiname></xref> interface. Typically they are top-level window-owningcontrols. </p> <p>The significance of views is that they are known of outsidethe application to which they belong. This allows one application to switch,or link, directly to a view in another. If the target application is runningit will be brought to the foreground with the linked view activated. If itisn't running it will be started up first. </p> <p>All of the API requiredfor implementing, registering, activating, deactivating, linking and observingis provided by <xref href="GUID-2C5E3F6C-6679-3914-9736-62296E7715A7.dita"><apiname>MCoeView</apiname></xref> and <xref href="GUID-3AC2CDAC-0291-309F-A020-049BC9F2CF90.dita"><apiname>CCoeAppUi</apiname></xref>. </p> <p>Toparticipate fully in the view architecture an application must register atleast one view. An application with no views may still be linked to usingthe view architecture. It registers itself with a <codeph>TVwsViewId</codeph> containingits application UID. Obviously it will not receive activation and deactivationevents but will trigger view switch events in other applications' views. </p> <p>Anapplication may opt out of the view architecture (see <xref href="GUID-42003A58-F3FE-3FEB-8019-A819B860C64B.dita#GUID-42003A58-F3FE-3FEB-8019-A819B860C64B/GUID-DC2562EE-67C1-3FD3-8A43-FA9F1B02DE07"><apiname>TApaCommand::EApaCommandRunWithoutViews</apiname></xref> and <xref href="GUID-42003A58-F3FE-3FEB-8019-A819B860C64B.dita#GUID-42003A58-F3FE-3FEB-8019-A819B860C64B/GUID-84C2A808-B397-3656-A422-E1E10FE04330"><apiname>TApaCommand::EApaCommandBackgroundAndWithoutViews</apiname></xref>) </p> </li></ul></conbody></concept>