S60 3rd Edition SDK for Symbian OS
Example Applications Guide

MessagingDocument.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : MessagingDocument.cpp
00004 *  Part of     : Messaging
00005 *  Interface   : 
00006 *  Description : 
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 "MessagingDocument.h"
00018 #include "MessagingAppui.h"
00019 
00020 // ================= MEMBER FUNCTIONS =========================================
00021 
00022 // ----------------------------------------------------------------------------
00023 // CMessagingDocument::CMessagingDocument()
00024 // constructor
00025 // ----------------------------------------------------------------------------
00026 //
00027 CMessagingDocument::CMessagingDocument( CEikApplication& aApp )
00028 : CAknDocument( aApp )
00029     {
00030     // no implementation required 
00031     }
00032 
00033 // ----------------------------------------------------------------------------
00034 // CMessagingDocument::~CMessagingDocument()
00035 // destructor
00036 // ----------------------------------------------------------------------------
00037 //
00038 CMessagingDocument::~CMessagingDocument()
00039     {
00040     // no implementation required 
00041     }
00042 
00043 // ----------------------------------------------------------------------------
00044 // CMessagingDocument::ConstructL()
00045 // Symbian two phased constructor
00046 // ----------------------------------------------------------------------------
00047 //
00048 void CMessagingDocument::ConstructL()
00049     {
00050     // no implementation required 
00051     }
00052 
00053 // ----------------------------------------------------------------------------
00054 // CMessagingDocument::NewL()
00055 // Two-phased constructor.
00056 // ----------------------------------------------------------------------------
00057 //
00058 CMessagingDocument* CMessagingDocument::NewL(
00059         CEikApplication& aApp )     // CMessagingApp reference
00060     {
00061     CMessagingDocument* self = new (ELeave) CMessagingDocument( aApp );
00062     CleanupStack::PushL( self );
00063     self->ConstructL();
00064     CleanupStack::Pop( self );
00065 
00066     return self;
00067     }
00068     
00069 // -----------------------------------------------------------------------------
00070 // CMessagingDocument::CreateAppUiL()
00071 // constructs CMessagingAppUi
00072 // -----------------------------------------------------------------------------
00073 //
00074 CEikAppUi* CMessagingDocument::CreateAppUiL()
00075     {
00076     return new ( ELeave ) CMessagingAppUi;
00077     }
00078 
00079 // End of File

© Nokia 2006

Back to top