examples/SFExamples/Wikipedia/src/SqlSrvDemoAppView.cpp

00001 // 
00002 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
00003 // All rights reserved.
00004 // This component and the accompanying materials are made available
00005 // under the terms of the License "Eclipse Public License v1.0"
00006 // which accompanies this distribution, and is available
00007 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00008 // 
00009 // Initial Contributors:
00010 // Nokia Corporation - initial contribution.
00011 // 
00012 // Contributors:
00013 // 
00014 // Description:
00015 // 
00016 
00017 
00018 
00019 // INCLUDE FILES
00020 #include "SqlSrvDemoAppView.h"
00021 
00022 
00023 // ========================= MEMBER FUNCTIONS ==================================
00024 
00025 // -----------------------------------------------------------------------------
00026 // CSqlSrvDemoAppView::CSqlSrvDemoAppView()
00027 // C++ default constructor can NOT contain any code, that might leave.
00028 // -----------------------------------------------------------------------------
00029 //
00030 CSqlSrvDemoAppView::CSqlSrvDemoAppView()
00031     {
00032     // No implementation required
00033     }
00034 
00035 // -----------------------------------------------------------------------------
00036 // CSqlSrvDemoAppView::NewL()
00037 // Two-phased constructor.
00038 // -----------------------------------------------------------------------------
00039 //
00040 CSqlSrvDemoAppView* CSqlSrvDemoAppView::NewL( const TRect& aRect )
00041     {
00042     CSqlSrvDemoAppView* self = CSqlSrvDemoAppView::NewLC( aRect );
00043     CleanupStack::Pop( self );
00044     return self;
00045     }
00046 
00047 // -----------------------------------------------------------------------------
00048 // CSqlSrvDemoAppView::NewLC()
00049 // Two-phased constructor.
00050 // -----------------------------------------------------------------------------
00051 //
00052 CSqlSrvDemoAppView* CSqlSrvDemoAppView::NewLC( const TRect& aRect )
00053     {
00054     CSqlSrvDemoAppView* self = new ( ELeave ) CSqlSrvDemoAppView;
00055     CleanupStack::PushL( self );
00056     self->ConstructL( aRect );
00057     return self;
00058     }
00059 
00060 // -----------------------------------------------------------------------------
00061 // CSqlSrvDemoAppUi::ConstructL()
00062 // Symbian 2nd phase constructor can leave.
00063 // -----------------------------------------------------------------------------
00064 //
00065 void CSqlSrvDemoAppView::ConstructL( const TRect& aRect )
00066     {
00067     // Create a window for this application view
00068     CreateWindowL();
00069 
00070     // Set the windows size
00071     SetRect( aRect );
00072 
00073     // Activate the window, which makes it ready to be drawn
00074     ActivateL();
00075     }
00076 
00077 // -----------------------------------------------------------------------------
00078 // CSqlSrvDemoAppView::~CSqlSrvDemoAppView()
00079 // Destructor.
00080 // -----------------------------------------------------------------------------
00081 //
00082 CSqlSrvDemoAppView::~CSqlSrvDemoAppView()
00083     {
00084     // No implementation required
00085     }
00086 
00087 // -----------------------------------------------------------------------------
00088 // CSqlSrvDemoAppView::Draw() const
00089 // Draws the display
00090 // -----------------------------------------------------------------------------
00091 //
00092 void CSqlSrvDemoAppView::Draw( const TRect& /*aRect*/ ) const
00093     {
00094     // Clear the screen
00095     CWindowGc& gc = SystemGc();
00096     gc.Clear( Rect() );
00097     }
00098 
00099 // End of File

Generated by  doxygen 1.6.2