parkingdocument.cpp

来自「一个简单的手机读写文件的例子。可以让你轻松学会在SYMBIAN中如何读写文件。」· C++ 代码 · 共 44 行

CPP
44
字号
/* Copyright (c) 2008, Nokia. All rights reserved */

#include "ParkingAppUi.h"
#include "ParkingDocument.h"


CParkingDocument* CParkingDocument::NewL(CEikApplication& aApp)
    {
    CParkingDocument* self = NewLC(aApp);
    CleanupStack::Pop(self);
    return self;
    }

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

void CParkingDocument::ConstructL()
    {
    // Add any construction that can leave here
    }    

CParkingDocument::CParkingDocument(CEikApplication& aApp) : CAknDocument(aApp) 
    {
    // Add any construction that can not leave here
    }   

CParkingDocument::~CParkingDocument()
    {
    // Any destruction code here
    }

CEikAppUi* CParkingDocument::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) CParkingAppUi));
    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?