    #include "MyAppAppUi.h"
    #include "MyAppDocument.h"

    // Standard Symbian OS construction sequence
    CMyAppDocument *CMyAppDocument::NewL(CEikApplication &aApp)
    {
        CMyAppDocument *self = NewLC(aApp);
        CleanupStack::Pop(self);
        return self;
    }

    CMyAppDocument* CMyAppDocument::NewLC(CEikApplication &aApp)
    {
        CMyAppDocument *self = new(ELeave) CMyAppDocument(aApp);
        CleanupStack::PushL(self);
        self->ConstructL();
        return self;
    }

    void CMyAppDocument::ConstructL()
    {
    	// no implementation required
    }

    CMyAppDocument::CMyAppDocument(CEikApplication& aApp) : CAknDocument(aApp)
    {
    	// no implementation required
    }

    CMyAppDocument::~CMyAppDocument()
    {
    	// no implementation required
    }

    // The framework will call this function to obtain an AppUi. This object will
    // be responsible for User Interface of the application
    CEikAppUi *CMyAppDocument::CreateAppUiL()
    {
        // Create the application user interface, and return a pointer to it,
        // the framework takes ownership of this object
        CEikAppUi *appUi = new(ELeave) CMyAppAppUi;
        return appUi;
    }