📄 datagramtestdocument.cpp
字号:
/*
* ==============================================================================
* Name : DatagramTestdocument.cpp
* Part of : DatagramTest
* Interface :
* Description :
* Version :
*
* Copyright (c) 2007 Symbian Ltd. All rights reserved.
* ==============================================================================
*/
// INCLUDE FILES
#include "DatagramTestAppUi.h"
#include "DatagramTestDocument.h"
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CDatagramTestDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CDatagramTestDocument* CDatagramTestDocument::NewL( CEikApplication&
aApp )
{
CDatagramTestDocument* self = NewLC( aApp );
CleanupStack::Pop( self );
return self;
}
// -----------------------------------------------------------------------------
// CDatagramTestDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CDatagramTestDocument* CDatagramTestDocument::NewLC( CEikApplication&
aApp )
{
CDatagramTestDocument* self =
new ( ELeave ) CDatagramTestDocument( aApp );
CleanupStack::PushL( self );
self->ConstructL();
return self;
}
// -----------------------------------------------------------------------------
// CDatagramTestDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CDatagramTestDocument::ConstructL()
{
// No implementation required
}
// -----------------------------------------------------------------------------
// CDatagramTestDocument::CDatagramTestDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CDatagramTestDocument::CDatagramTestDocument( CEikApplication& aApp )
: CAknDocument( aApp )
{
// No implementation required
}
// ---------------------------------------------------------------------------
// CDatagramTestDocument::~CDatagramTestDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CDatagramTestDocument::~CDatagramTestDocument()
{
// No implementation required
}
// ---------------------------------------------------------------------------
// CDatagramTestDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CDatagramTestDocument::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 ) CDatagramTestAppUi ) );
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -