httpdocument.cpp

来自「简单的socket请求」· C++ 代码 · 共 45 行

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

#include "HttpAppUi.h"
#include "HttpDocument.h"


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

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

    return self;
    }

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

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

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

CEikAppUi* CHttpDocument::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) CHttpAppUi));
    }

⌨️ 快捷键说明

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