<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Problem in Multi view - Comments</title>
 <link>http://www.newlc.com/en/topic-16489</link>
 <description>Comments for &quot;Problem in Multi view&quot;</description>
 <language>en</language>
<item>
 <title>Re: Problem in Multi view</title>
 <link>http://www.newlc.com/en/topic-16489#comment-35453</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;problem solved .. after clearing up the destructor of AppUi&lt;br /&gt;&lt;br /&gt;but i dont understand why we arent supposed to delete the View object&lt;/div&gt;</description>
 <pubDate>Fri, 17 Nov 2006 07:30:16 +0100</pubDate>
 <dc:creator>saurabh</dc:creator>
 <guid isPermaLink="false">comment 35453 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in Multi view</title>
 <link>http://www.newlc.com/en/topic-16489#comment-35452</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;I am using the multi-views architecture but have defined only one view.&lt;br /&gt;The view has no containers as of now.&lt;br /&gt;&lt;br /&gt;I am getting a Program closed error after the Exit command&lt;br /&gt;&lt;br /&gt;the view doesnt get deleted in the destructor.&lt;br /&gt;&lt;br /&gt;//the VIEW code is as follows&lt;br /&gt;&lt;br /&gt;#include &amp;lt;aknviewappui.h&amp;gt;&lt;br /&gt;#include &amp;lt;Editor.rsg&amp;gt;&lt;br /&gt;&lt;br /&gt;#include &amp;quot;Editor.hrh&amp;quot;&lt;br /&gt;#include &amp;quot;EditorAppView.h&amp;quot;&lt;br /&gt;&lt;br /&gt;// Standard construction sequence&lt;br /&gt;CEditorAppView* CEditorAppView::NewL()&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; CEditorAppView* self = CEditorAppView::NewLC();&lt;br /&gt;&amp;nbsp; &amp;nbsp; CleanupStack::Pop(self);&lt;br /&gt;&amp;nbsp; &amp;nbsp; return self;&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;CEditorAppView* CEditorAppView::NewLC()&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; CEditorAppView* self = new (ELeave) CEditorAppView();&lt;br /&gt;&amp;nbsp; &amp;nbsp; CleanupStack::PushL(self);&lt;br /&gt;&amp;nbsp; &amp;nbsp; self-&amp;gt;ConstructL();&lt;br /&gt;&amp;nbsp; &amp;nbsp; return self;&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;CEditorAppView::CEditorAppView()&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; // No implementation required&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;CEditorAppView::~CEditorAppView()&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;void CEditorAppView::ConstructL()&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; BaseConstructL(R_EDITOR_MAINVIEW);&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;TUid CEditorAppView::Id() const&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; return TUid::Uid(EViewId);&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;void CEditorAppView::DoActivateL(const TVwsViewId&amp;amp; /*aPrevViewId*/,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TUid /*aCustomMessageId*/,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; const TDesC8&amp;amp; /*aCustomMessage*/)&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;void CEditorAppView::DoDeactivate()&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;void CEditorAppView::HandleCommandL(TInt aCommand)&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AppUi()-&amp;gt;HandleCommandL(aCommand);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;///////////////////////////////////////////////////////////&lt;br /&gt;&lt;br /&gt;The AppUi code is as follows&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#include &amp;lt;avkon.hrh&amp;gt;&lt;br /&gt;#include &amp;lt;aknnotewrappers.h&amp;gt; &lt;br /&gt;&lt;br /&gt;#include &amp;quot;Editor.pan&amp;quot;&lt;br /&gt;#include &amp;quot;EditorAppUi.h&amp;quot;&lt;br /&gt;#include &amp;quot;EditorAppView.h&amp;quot;&lt;br /&gt;#include &amp;quot;Editor.hrh&amp;quot;&lt;br /&gt;&lt;br /&gt;// ConstructL is called by the application framework&lt;br /&gt;void CEditorAppUi::ConstructL()&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; BaseConstructL();&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; iAppView = CEditorAppView::NewL();&lt;br /&gt;&amp;nbsp; &amp;nbsp; AddViewL(iAppView);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; SetDefaultViewL(*iAppView);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;CEditorAppUi::CEditorAppUi()&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// no implementation required&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;CEditorAppUi::~CEditorAppUi()&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; if (iAppView)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RemoveView(iAppView-&amp;gt;Id());&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; delete iAppView;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iAppView = NULL;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;// handle any menu commands&lt;br /&gt;void CEditorAppUi::HandleCommandL(TInt aCommand)&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; switch(aCommand)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case EEikCmdExit:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case EAknSoftkeyExit:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Exit();&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case EEditorCmdSave:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _LIT(message,&amp;quot;Hello!&amp;quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; informationNote-&amp;gt;ExecuteLD(message);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Panic(EEditorBasicUi);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 17 Nov 2006 07:01:55 +0100</pubDate>
 <dc:creator>saurabh</dc:creator>
 <guid isPermaLink="false">comment 35452 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Problem in Multi view</title>
 <link>http://www.newlc.com/en/topic-16489#comment-35451</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Ok thanks all. The proble has been solved. Ijust add&amp;nbsp; AppUi()-&amp;gt;AddToStackL(*this, iContainer); for my appview&lt;/div&gt;</description>
 <pubDate>Fri, 03 Nov 2006 03:04:36 +0100</pubDate>
 <dc:creator>wawan_redhat</dc:creator>
 <guid isPermaLink="false">comment 35451 at http://www.newlc.com</guid>
</item>
<item>
 <title>Problem in Multi view</title>
 <link>http://www.newlc.com/en/topic-16489</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/topic-16489&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-16489#comments</comments>
 <category domain="http://www.newlc.com/en/forums/nokia-series-60">Nokia S60</category>
 <pubDate>Thu, 26 Oct 2006 02:51:31 +0200</pubDate>
 <dc:creator>wawan_redhat</dc:creator>
 <guid isPermaLink="false">16134 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
