S60 3rd Edition SDK for Symbian OS
Example Applications Guide

HWRMTestAppDocument.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : HWRMTestAppDocument.h
00004 *  Part of     : HWRMTestApp
00005 *  Interface   : 
00006 *  Description : HWRM Test application document implementation
00007 *  Version     : 
00008 *
00009 *  Copyright (c) 2002-2006 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation. 
00013 * ==============================================================================
00014 */
00015 
00016 // INCLUDE FILES
00017 #include "HWRMTestAppDocument.h"
00018 #include "HWRMTestAppAppUi.h"
00019 
00020 // ============================ MEMBER FUNCTIONS ===============================
00021 
00022 // -----------------------------------------------------------------------------
00023 // CHWRMTestAppDocument::CHWRMTestAppDocument
00024 // C++ default constructor can NOT contain any code, that
00025 // might leave.
00026 // -----------------------------------------------------------------------------
00027 //
00028 CHWRMTestAppDocument::CHWRMTestAppDocument(CEikApplication& aApp)
00029 : CAknDocument(aApp)    
00030     {
00031     }
00032 
00033 // -----------------------------------------------------------------------------
00034 // CHWRMTestAppDocument::~CHWRMTestAppDocument
00035 // Destructor
00036 // -----------------------------------------------------------------------------
00037 //
00038 CHWRMTestAppDocument::~CHWRMTestAppDocument()
00039     {
00040     }
00041 
00042 // EPOC default constructor can leave.
00043 void CHWRMTestAppDocument::ConstructL()
00044     {
00045     }
00046 
00047 // -----------------------------------------------------------------------------
00048 // CHWRMServer::ConstructL
00049 // Symbian 2nd phase constructor can leave.
00050 // -----------------------------------------------------------------------------
00051 //
00052 CHWRMTestAppDocument* CHWRMTestAppDocument::NewL(
00053         CEikApplication& aApp)     // CHWRMTestAppApp reference
00054     {
00055     CHWRMTestAppDocument* self = new (ELeave) CHWRMTestAppDocument( aApp );
00056     CleanupStack::PushL( self );
00057     self->ConstructL();
00058     CleanupStack::Pop();
00059 
00060     return self;
00061     }
00062     
00063 // -----------------------------------------------------------------------------
00064 // CHWRMTestAppDocument::CreateAppUiL
00065 // constructs CHWRMTestAppAppUi
00066 // -----------------------------------------------------------------------------
00067 //
00068 CEikAppUi* CHWRMTestAppDocument::CreateAppUiL()
00069     {
00070     return new (ELeave) CHWRMTestAppAppUi;
00071     }
00072 
00073 // End of File  
00074 

© Nokia 2006

Back to top