Symbian3/SDK/Source/GUID-6F120C75-4D58-405C-8713-0626EE22E5DF.dita
changeset 8 ae94777fff8f
parent 0 89d6a7a84779
--- a/Symbian3/SDK/Source/GUID-6F120C75-4D58-405C-8713-0626EE22E5DF.dita	Wed Mar 31 11:11:55 2010 +0100
+++ b/Symbian3/SDK/Source/GUID-6F120C75-4D58-405C-8713-0626EE22E5DF.dita	Fri Jun 11 12:39:03 2010 +0100
@@ -1,39 +1,49 @@
-<?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-6F120C75-4D58-405C-8713-0626EE22E5DF" xml:lang="en"><title>Setting
-the title pane touch observer</title><prolog><metadata><keywords/></metadata></prolog><conbody>
-<p>To set the title pane touch observer:</p>
-<ol>
-<li id="GUID-D0B16DD2-3848-4988-843E-17A3E21FE916"><p>Provide an observer
-class that implements the <codeph>MaknTitlePaneObserver</codeph> interface. </p><codeblock xml:space="preserve">class MyTitlePaneObserver : public MAknTitlePaneObserver
-    {
-public:
-    void HandleTitlePaneEventL( TInt aEventID );
-    };
-</codeblock></li>
-<li id="GUID-0C78F9B0-EA40-497F-BF91-783C77873128"><p>Get a pointer to the
-title pane via the status pane pointer.</p><codeblock xml:space="preserve">iStatusPane = static_cast&lt;CAknAppUi*&gt;( CEikonEnv::Static()-&gt; EikAppUi() )-&gt;StatusPane();
-if( !iStatusPane )
-    {
-    User::Leave( KErrNotFound );
-    }
- 
-iTitlePane = ( CAknTitlePane* )iStatusPane-&gt;ControlL( TUid::Uid( EEikStatusPaneUidTitle ) );
-if( !iTitlePane )
-    {
-    User::Leave( KErrNotFound );
-    }
-</codeblock></li>
-<li id="GUID-E486893E-7AFD-42DF-B459-EBAD38EE8BDC"><p>Set the observer using
-the <codeph>SetTitlePaneObserver</codeph> method.</p><codeblock xml:space="preserve">iTitlePane-&gt;SetTitlePaneObserver( this );</codeblock></li>
-</ol>
+<?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-6F120C75-4D58-405C-8713-0626EE22E5DF" xml:lang="en"><title>Setting
+the title pane touch observer</title><prolog><metadata><keywords/></metadata></prolog><conbody>
+<p>To set the title pane touch observer:</p>
+<ol>
+<li id="GUID-D0B16DD2-3848-4988-843E-17A3E21FE916"><p>Provide an observer
+class that implements the <codeph>MaknTitlePaneObserver</codeph> interface. </p><codeblock xml:space="preserve">class MyTitlePaneObserver : public MAknTitlePaneObserver
+    {
+public:
+    void HandleTitlePaneEventL( TInt aEventID );
+    };
+
+{
+    switch( TAknTitlePaneEvents )
+        {
+         case EAknTitlePaneTapped:
+              ...
+              break;
+
+         default
+              break;
+}</codeblock></li>
+<li id="GUID-0C78F9B0-EA40-497F-BF91-783C77873128"><p>Get a pointer to the
+title pane via the status pane pointer.</p><codeblock xml:space="preserve">iStatusPane = static_cast&lt;CAknAppUi*&gt;( CEikonEnv::Static()-&gt; EikAppUi() )-&gt;StatusPane();
+if( !iStatusPane )
+    {
+    User::Leave( KErrNotFound );
+    }
+ 
+iTitlePane = ( CAknTitlePane* )iStatusPane-&gt;ControlL( TUid::Uid( EEikStatusPaneUidTitle ) );
+if( !iTitlePane )
+    {
+    User::Leave( KErrNotFound );
+    }
+</codeblock></li>
+<li id="GUID-E486893E-7AFD-42DF-B459-EBAD38EE8BDC"><p>Set the observer using
+the <codeph>SetTitlePaneObserver</codeph> method.</p><codeblock xml:space="preserve">iTitlePane-&gt;SetTitlePaneObserver( this );</codeblock></li>
+</ol>
 </conbody></concept>
\ No newline at end of file