开发学院手机开发Symbian 开发 Symbian一个活动对象的测试例子 阅读

Symbian一个活动对象的测试例子

 2010-10-20 08:00:45 来源:WEB开发网   
核心提示:// takes care of command handling// //void CActiveTest2AppUi::HandleCommandL(TInt aCommand){switch ( aCommand ){case EAknSoftkeyBack:case EEikCmdExit:{Exit();br

// takes care of command handling

// ----------------------------------------------------

//

void CActiveTest2AppUi::HandleCommandL(TInt aCommand)

{

switch ( aCommand )

{

case EAknSoftkeyBack:

case EEikCmdExit:

{

Exit();

break;

}

case EActiveTest2CmdAppTest:

{

// Info message shown only in the emulator

//iEikonEnv->InfoMsg(_L("test"));

//Load localized message from the resource file

//HBufC* message = CEikonEnv::Static()->AllocReadResourceLC(R_MESSAGE_TEXT);

// Show information note dialog

//CAknInformationNote* note = new (ELeave) CAknInformationNote;

//note->ExecuteLD(message->Des());

//CleanupStack::PopAndDestroy(message);

iTest2NewClass->StartL(3000000);

break;

}

// TODO: Add Your command handling code here

default:

break;

}

}

ActiveTest2NewClass.h

/*

============================================================================

Name : ActiveTest2NewClass.h

Author :

Version :

Copyright : Your copyright notice

Description : CActiveTest2NewClass declaration

============================================================================

*/

#ifndef ACTIVETEST2NEWCLASS_H

#define ACTIVETEST2NEWCLASS_H

#include // For CActive, link against: euser.lib

#include // For RTimer, link against: euser.lib

class CActiveTest2NewClass : public CActive

{

public:

// C++ constructor

CActiveTest2NewClass();

// Second-phase constructor

void ConstructL();

// Cancel and destroy

上一页  1 2 3 4 5 6  下一页

Tags:Symbian 一个 活动

编辑录入:爽爽 [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接