vibraapp.cpp

来自「symbian 2rd下手机振动的控制和应用」· C++ 代码 · 共 64 行

CPP
64
字号
/*
============================================================================
 Name        : CVibraApp from VibraApp.cpp
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Main application class
============================================================================
*/

// INCLUDE FILES
#include    "VibraApp.h"
#include    "VibraDocument.h"

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

// ---------------------------------------------------------
// CVibraApp::AppDllUid()
// Returns application UID
// ---------------------------------------------------------
//
TUid CVibraApp::AppDllUid() const
	{
	return KUidVibra;
	}

// ---------------------------------------------------------
// CVibraApp::CreateDocumentL()
// Creates CVibraDocument object
// ---------------------------------------------------------
//
CApaDocument* CVibraApp::CreateDocumentL()
	{
	return CVibraDocument::NewL( *this );
	}

// ================= OTHER EXPORTED FUNCTIONS ==============
//
// ---------------------------------------------------------
// NewApplication() 
// Constructs CVibraApp
// Returns: created application object
// ---------------------------------------------------------
//
EXPORT_C CApaApplication* NewApplication()
	{
	return new CVibraApp;
	}

// ---------------------------------------------------------
// E32Dll(TDllReason) 
// Entry point function for EPOC Apps
// Returns: KErrNone: No error
// ---------------------------------------------------------
//

//#ifndef TDllReason
//#define TDllReason	TInt
//#endif
GLDEF_C TInt E32Dll( TDllReason )
	{
	return KErrNone;
	}

⌨️ 快捷键说明

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