httpdocument.cpp

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

CPP
91
字号
/*
============================================================================
 Name        : HttpDocument.cpp
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Application document class (model)
============================================================================
*/

// INCLUDE FILES
#include "HttpAppUi.h"
#include "HttpDocument.h"

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

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

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

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

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

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

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

// ---------------------------------------------------------------------------
// CHttpDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
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 ) );
    }

// End of File

⌨️ 快捷键说明

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