view DemoCube/src/DemoCubeDocument.cpp @ 5:f546bb5370c7 default tip

Added a readme and a TODO in the source code.
author Atul Varma <varmaa@toolness.com>
date Tue, 12 Feb 2008 19:09:21 -0600
parents 43361e733c66
children
line wrap: on
line source

/*=====================================================================

    Copyright © 2007 Nokia Corporation. All rights reserved.

======================================================================*/

/*
============================================================================
 Name        : DemoCubeDocument.cpp
 Author      : Nokia Computer Vision Team in NRC Palo Alto
 Copyright   : Your copyright notice
 Description : CDemoCubeDocument implementation
============================================================================
*/


// INCLUDE FILES
#include "DemoCubeAppUi.h"
#include "DemoCubeDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CDemoCubeDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CDemoCubeDocument* CDemoCubeDocument::NewL( CEikApplication&
                                                          aApp )
    {
    CDemoCubeDocument* self = NewLC( aApp );
    CleanupStack::Pop( self );
    return self;
    }

// -----------------------------------------------------------------------------
// CDemoCubeDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CDemoCubeDocument* CDemoCubeDocument::NewLC( CEikApplication&
                                                           aApp )
    {
    CDemoCubeDocument* self =
        new ( ELeave ) CDemoCubeDocument( aApp );

    CleanupStack::PushL( self );
    self->ConstructL();
    return self;
    }

// -----------------------------------------------------------------------------
// CDemoCubeDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CDemoCubeDocument::ConstructL()
    {
    // No implementation required
    }

// -----------------------------------------------------------------------------
// CDemoCubeDocument::CDemoCubeDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CDemoCubeDocument::CDemoCubeDocument( CEikApplication& aApp )
    : CAknDocument( aApp )
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CDemoCubeDocument::~CDemoCubeDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CDemoCubeDocument::~CDemoCubeDocument()
    {
    // No implementation required
    }

// ---------------------------------------------------------------------------
// CDemoCubeDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CDemoCubeDocument::CreateAppUiL()
    {
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return ( static_cast <CEikAppUi*> ( new ( ELeave )
                                        CDemoCubeAppUi ) );
    }

// End of File