classicui_pub/grids_api/tsrc/src/testsdkgridsview.cpp
changeset 0 2f259fa3e83a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/classicui_pub/grids_api/tsrc/src/testsdkgridsview.cpp	Tue Feb 02 01:00:49 2010 +0200
@@ -0,0 +1,117 @@
+/*
+* Copyright (c) 2002 - 2007 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:  Test grids_api
+*
+*/
+
+/*
+ * Include files
+ */
+#include <aknviewappui.h>
+
+#include "testsdkgridsview.h"
+#include "testsdkgridscontainer.h"
+
+
+// ======== MEMBER FUNCTIONS ========
+
+// ---------------------------------------------------------------------------
+// Symbian 2nd static Constructor
+// ---------------------------------------------------------------------------
+//
+CTestSDKGridsView* CTestSDKGridsView::NewL()
+    {
+    CTestSDKGridsView* self = new( ELeave ) CTestSDKGridsView();
+    CleanupStack::PushL( self );
+    self->ConstructL();
+    CleanupStack::Pop( self );
+    return self;
+    }
+
+// ---------------------------------------------------------------------------
+// C++ default Constructor
+// ---------------------------------------------------------------------------
+//
+CTestSDKGridsView::CTestSDKGridsView()
+    {
+    }
+
+// ---------------------------------------------------------------------------
+// Symbian 2nd Constructor
+// ---------------------------------------------------------------------------
+//
+void CTestSDKGridsView::ConstructL()
+    { 
+
+    iContainer = new( ELeave ) CTestSDKGridsContainer();
+    iContainer->SetMopParent( this );
+    iContainer->ConstructL( ClientRect() );
+    AppUi()->AddToStackL( *this, iContainer );
+    iContainer->MakeVisible( ETrue );
+    }
+
+// ---------------------------------------------------------------------------
+// Destructor
+// ---------------------------------------------------------------------------
+//
+CTestSDKGridsView::~CTestSDKGridsView()
+    {
+    if ( iContainer )
+        {
+        AppUi()->RemoveFromStack( iContainer );
+        }
+    delete iContainer;
+    }
+
+// ---------------------------------------------------------------------------
+// Ctestsdkgridsview::Id
+// ---------------------------------------------------------------------------
+//
+TUid CTestSDKGridsView::Id() const
+    {
+    return KBCTestGridsViewId;
+    }
+
+// ---------------------------------------------------------------------------
+// Ctestsdkgridsview::DoActivateL
+// ---------------------------------------------------------------------------
+//
+void CTestSDKGridsView::DoActivateL( const TVwsViewId&, TUid, const TDesC8& )
+    {
+    }
+
+// ---------------------------------------------------------------------------
+// Ctestsdkgridsview::DoDeactivate
+// ---------------------------------------------------------------------------
+//
+void CTestSDKGridsView::DoDeactivate()
+    {
+    }
+
+// ---------------------------------------------------------------------------
+// Ctestsdkgridsview::HandleCommandL
+// ---------------------------------------------------------------------------
+//
+void CTestSDKGridsView::HandleCommandL( TInt aCommand )
+    {
+    switch ( aCommand )
+        {
+        default:
+            break;
+        }
+    }
+
+/*
+ * End file
+ */