examples/SDKExamples/helloworldbasic/src/helloworldbasicdocument.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : helloworldbasicdocument.cpp
00004 *  Part of     : Helloworldbasic
00005 *  Interface   : 
00006 *  Description : 
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2005 - 2006 Nokia Corporation and/or its subsidiary(-ies).
00010 *  All rights reserved.
00011 *  This component and the accompanying materials are made available
00012 *  under the terms of "Eclipse Public License v1.0"
00013 *  which accompanies this distribution, and is available
00014 *  at the URL "http://www.eclipse.org/legal/epl-v10.html".
00015 * ==============================================================================
00016 */
00017 
00018 // INCLUDE FILES
00019 #include "HelloWorldBasicAppUi.h"
00020 #include "HelloWorldBasicDocument.h"
00021 
00022 // ============================ MEMBER FUNCTIONS ===============================
00023 
00024 // -----------------------------------------------------------------------------
00025 // CHelloWorldBasicDocument::NewL()
00026 // Two-phased constructor.
00027 // -----------------------------------------------------------------------------
00028 //
00029 CHelloWorldBasicDocument* CHelloWorldBasicDocument::NewL( CEikApplication&
00030                                                           aApp )
00031     {
00032     CHelloWorldBasicDocument* self = NewLC( aApp );
00033     CleanupStack::Pop( self );
00034     return self;
00035     }
00036 
00037 // -----------------------------------------------------------------------------
00038 // CHelloWorldBasicDocument::NewLC()
00039 // Two-phased constructor.
00040 // -----------------------------------------------------------------------------
00041 //
00042 CHelloWorldBasicDocument* CHelloWorldBasicDocument::NewLC( CEikApplication&
00043                                                            aApp )
00044     {
00045     CHelloWorldBasicDocument* self =
00046         new ( ELeave ) CHelloWorldBasicDocument( aApp );
00047 
00048     CleanupStack::PushL( self );
00049     self->ConstructL();
00050     return self;
00051     }
00052 
00053 // -----------------------------------------------------------------------------
00054 // CHelloWorldBasicDocument::ConstructL()
00055 // Symbian 2nd phase constructor can leave.
00056 // -----------------------------------------------------------------------------
00057 //
00058 void CHelloWorldBasicDocument::ConstructL()
00059     {
00060     // No implementation required
00061     }
00062 
00063 // -----------------------------------------------------------------------------
00064 // CHelloWorldBasicDocument::CHelloWorldBasicDocument()
00065 // C++ default constructor can NOT contain any code, that might leave.
00066 // -----------------------------------------------------------------------------
00067 //
00068 CHelloWorldBasicDocument::CHelloWorldBasicDocument( CEikApplication& aApp )
00069     : CAknDocument( aApp )
00070     {
00071     // No implementation required
00072     }
00073 
00074 // ---------------------------------------------------------------------------
00075 // CHelloWorldBasicDocument::~CHelloWorldBasicDocument()
00076 // Destructor.
00077 // ---------------------------------------------------------------------------
00078 //
00079 CHelloWorldBasicDocument::~CHelloWorldBasicDocument()
00080     {
00081     // No implementation required
00082     }
00083 
00084 // ---------------------------------------------------------------------------
00085 // CHelloWorldBasicDocument::CreateAppUiL()
00086 // Constructs CreateAppUi.
00087 // ---------------------------------------------------------------------------
00088 //
00089 CEikAppUi* CHelloWorldBasicDocument::CreateAppUiL()
00090     {
00091     // Create the application user interface, and return a pointer to it;
00092     // the framework takes ownership of this object
00093     return ( static_cast <CEikAppUi*> ( new ( ELeave )
00094                                         CHelloWorldBasicAppUi ) );
00095     }
00096 
00097 // End of File
00098 

Generated by  doxygen 1.6.2