socketsdocument.cpp
来自「Symbian 下的socket连接源码」· C++ 代码 · 共 79 行
CPP
79 行
/* Copyright (c) 2004, Nokia. All rights reserved */
// INCLUDE FILES
#include "SocketsAppUi.h"
#include "SocketsDocument.h"
// ========================= MEMBER FUNCTIONS ==================================
// -----------------------------------------------------------------------------
// CSocketsDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSocketsDocument* CSocketsDocument::NewL( CEikApplication& aApp )
{
CSocketsDocument* self = NewLC( aApp );
CleanupStack::Pop( self );
return self;
}
// -----------------------------------------------------------------------------
// CSocketsDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSocketsDocument* CSocketsDocument::NewLC( CEikApplication& aApp )
{
CSocketsDocument* self = new ( ELeave ) CSocketsDocument( aApp );
CleanupStack::PushL( self );
self->ConstructL();
return self;
}
// -----------------------------------------------------------------------------
// CSocketsDocument::CSocketsDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CSocketsDocument::CSocketsDocument( CEikApplication& aApp )
: CEikDocument( aApp )
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CSocketsDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CSocketsDocument::ConstructL()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CSocketsDocument::~CSocketsDocument()
// Destructor.
// -----------------------------------------------------------------------------
//
CSocketsDocument::~CSocketsDocument()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CSocketsDocument::CreateAppUiL()
// Creates a CSocketsAppUi object and return a pointer to it.
// -----------------------------------------------------------------------------
//
CEikAppUi* CSocketsDocument::CreateAppUiL()
{
CEikAppUi* appUi = new ( ELeave ) CSocketsAppUi;
return appUi;
}
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?