S60 3rd Edition SDK for Symbian OS
Example Applications Guide

BrCtlSampleAppDocument.cpp

00001 /*
00002 * ============================================================================
00003 *  Name         : BrCtlSampleAppDocument.h
00004 *  Part of      : BrCtlSampleApp
00005 *  Interface    : Browser Control API 
00006 *  Description  : Implements the document for application.
00007 *  Version      : 
00008 *
00009 *  Copyright (c) 2005-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 "BrCtlSampleAppDocument.h"
00018 #include "BrCtlSampleAppUi.h"
00019 
00020 // ================= MEMBER FUNCTIONS =======================
00021 
00022 // constructor
00023 CBrCtlSampleAppDocument::CBrCtlSampleAppDocument(CEikApplication& aApp)
00024 : CAknDocument(aApp)    
00025     {
00026     }
00027 
00028 // destructor
00029 CBrCtlSampleAppDocument::~CBrCtlSampleAppDocument()
00030     {
00031     }
00032 
00033 // EPOC default constructor can leave.
00034 void CBrCtlSampleAppDocument::ConstructL()
00035     {
00036     }
00037 
00038 // Two-phased constructor.
00039 CBrCtlSampleAppDocument* CBrCtlSampleAppDocument::NewL(
00040         CEikApplication& aApp)     // CBrCtlSampleApp reference
00041     {
00042     CBrCtlSampleAppDocument* self = new (ELeave) CBrCtlSampleAppDocument( aApp );
00043     CleanupStack::PushL( self );
00044     self->ConstructL();
00045     CleanupStack::Pop();
00046 
00047     return self;
00048     }
00049     
00050 // ----------------------------------------------------
00051 // CBrCtlSampleAppDocument::CreateAppUiL()
00052 // constructs CBrCtlSampleAppUi
00053 // ----------------------------------------------------
00054 //
00055 CEikAppUi* CBrCtlSampleAppDocument::CreateAppUiL()
00056     {
00057     return new (ELeave) CBrCtlSampleAppUi;
00058     }
00059 
00060 // End of File  
00061 

© Nokia 2006

Back to top