uifw/AvKon/tsrc/bc/S60_SDK3.0/bctestlist/src/bctestListAppUi.cpp
changeset 0 2f259fa3e83a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/uifw/AvKon/tsrc/bc/S60_SDK3.0/bctestlist/src/bctestListAppUi.cpp	Tue Feb 02 01:00:49 2010 +0200
@@ -0,0 +1,82 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "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:
+*
+* Description:  Avkon list test application
+*
+*/
+
+
+#include <avkon.hrh>
+
+#include <aknsutils.h>
+
+#include "bctestlist.hrh"
+#include "bctestlistAppUi.h"                                        
+#include "bctestlistview.h"
+
+// ================= MEMBER FUNCTIONS =========================================
+//
+// ----------------------------------------------------------------------------
+// CBCTestListAppUi::CBCTestListAppUi()
+// Default constructor.
+// ----------------------------------------------------------------------------
+//
+CBCTestListAppUi::CBCTestListAppUi()
+    {
+    }
+
+// ----------------------------------------------------------------------------
+// void CBCTestListAppUi::ConstructL()
+// Symbian 2nd phase constructor can leave.
+// Creates view class object.
+// ----------------------------------------------------------------------------
+void CBCTestListAppUi::ConstructL()
+    {
+    BaseConstructL();
+    AknsUtils::SetAvkonSkinEnabledL( ETrue );
+    
+    CBCTestListView* view = CBCTestListView::NewL();
+    CleanupStack::PushL( view );
+    AddViewL( view );
+    CleanupStack::Pop( view );    
+    
+    ActivateLocalViewL( view->Id() );   
+    }
+
+// ----------------------------------------------------------------------------
+// CBCTestListAppUi::~CBCTestListAppUi()
+// Destructor
+// ----------------------------------------------------------------------------
+CBCTestListAppUi::~CBCTestListAppUi()
+    {
+    }
+
+// ----------------------------------------------------------------------------
+// void CBCTestListAppUi::HandleCommandL( TInt )
+// Handles the commands.
+// ----------------------------------------------------------------------------
+void CBCTestListAppUi::HandleCommandL( TInt aCommand )
+    {
+    switch ( aCommand )
+        {
+        case EAknSoftkeyBack:
+        case EEikCmdExit:
+            Exit();
+            break;
+        
+        default:
+            break;
+        }
+    }
+
+// End of File