# examples/ForumNokia/CalendarExample/src/CalendarAPIexampleDocument.cpp

    00001 /*
    00002  * Copyright © 2008 Nokia Corporation.
    00003  */
    00004
    00005 // INCLUDE FILES
    00006
    00007 #include "CalendarAPIexampleDocument.h"
    00008 #include "CalendarAPIexampleAppUi.h"
    00009 #include <calentry.h>
    00010
    00011 // ================= MEMBER FUNCTIONS =======================
    00012
    00013 // constructor
    00014 CCalendarAPIexampleDocument::CCalendarAPIexampleDocument(CEikApplication& aApp)
    00015 : CAknDocument(aApp)
    00016     {
    00017     }
    00018
    00019 // destructor
    00020 CCalendarAPIexampleDocument::~CCalendarAPIexampleDocument()
    00021     {
    00022     }
    00023
    00024 // Symbian OS default constructor can leave.
    00025 void CCalendarAPIexampleDocument::ConstructL()
    00026     {
    00027     }
    00028
    00029 // Two-phased constructor.
    00030 CCalendarAPIexampleDocument* CCalendarAPIexampleDocument::NewL(
    00031         CEikApplication& aApp)
    00032     {
    00033     CCalendarAPIexampleDocument* self = new (ELeave) CCalendarAPIexampleDocument( aApp );
    00034     CleanupStack::PushL(self);
    00035     self->ConstructL();
    00036     CleanupStack::Pop(self);
    00037
    00038     return self;
    00039     }
    00040
    00041 // ----------------------------------------------------
    00042 // CCalendarAPIexampleDocument::CreateAppUiL()
    00043 // constructs CCalendarAPIexampleAppUi
    00044 // ----------------------------------------------------
    00045 //
    00046 CEikAppUi* CCalendarAPIexampleDocument::CreateAppUiL()
    00047     {
    00048     return new (ELeave) CCalendarAPIexampleAppUi;
    00049     }
    00050
    00051 // End of File