S60UIExampledocument.cpp
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:3k
- // Copyright (c) 2006 Nokia Corporation.
- #include "S60UIExampleAppUi.h"
- #include "S60UIExampleDocument.h"
- // -----------------------------------------------------------------------------
- // CS60UIExampleDocument::CS60UIExampleDocument()
- // C++ default constructor can NOT contain any code, that might leave.
- // -----------------------------------------------------------------------------
- //
- CS60UIExampleDocument::CS60UIExampleDocument(CEikApplication& aApp)
- : CAknDocument(aApp)
- {
- // No implementation required
- }
- // -----------------------------------------------------------------------------
- // CS60UIExampleDocument::NewL()
- // Two-phased constructor.
- // -----------------------------------------------------------------------------
- //
- CS60UIExampleDocument* CS60UIExampleDocument::NewL(CEikApplication& aApp)
- {
- CS60UIExampleDocument* self = NewLC(aApp);
- CleanupStack::Pop(self);
- return self;
- }
- // -----------------------------------------------------------------------------
- // CS60UIExampleDocument::NewLC()
- // Two-phased constructor.
- // -----------------------------------------------------------------------------
- //
- CS60UIExampleDocument* CS60UIExampleDocument::NewLC(CEikApplication& aApp)
- {
- CS60UIExampleDocument* self = new (ELeave) CS60UIExampleDocument(aApp);
- CleanupStack::PushL(self);
- self->ConstructL();
- return self;
- }
- // -----------------------------------------------------------------------------
- // CS60UIExampleDocument::ConstructL()
- // Symbian 2nd phase constructor can leave.
- // -----------------------------------------------------------------------------
- //
- void CS60UIExampleDocument::ConstructL()
- {
- // No implementation required
- }
- // -----------------------------------------------------------------------------
- // CS60UIExampleDocument::~CS60UIExampleDocument()
- // Destructor.
- // -----------------------------------------------------------------------------
- //
- CS60UIExampleDocument::~CS60UIExampleDocument()
- {
- // No implementation required
- }
- // -----------------------------------------------------------------------------
- // CS60UIExampleDocument::CreateAppUiL()
- // Create the application user interface, and return a pointer to it
- // -----------------------------------------------------------------------------
- //
- CEikAppUi* CS60UIExampleDocument::CreateAppUiL()
- {
- return(static_cast<CEikAppUi*>(new (ELeave) CS60UIExampleAppUi));
- }
- // End of File