longtapdetectordocument.cpp

来自「该程序用于检测手机中的LongTap事件并对该事件进行处理」· C++ 代码 · 共 87 行

CPP
87
字号
/*
 ============================================================================
 Name		: LongTapDetectorDocument.cpp
 Author	  : Kiran
 Copyright   : Your copyright notice
 Description : CLongTapDetectorDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "LongTapDetectorAppUi.h"
#include "LongTapDetectorDocument.h"

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

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

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

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

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

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

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

// ---------------------------------------------------------------------------
// CLongTapDetectorDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CLongTapDetectorDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CLongTapDetectorAppUi;
	}

// End of File

⌨️ 快捷键说明

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