www.pudn.com > Example_BluetoothChat.rar > BluetoothChatDialog.cpp


/** 
* 
* @brief Definition of CBluetoothChatDialog 
* 
* Copyright (c) EMCC Software Ltd 2003 
* @version 1.0 
*/ 
 
 
// INCLUDE FILES 
 
// Class include 
#include "BluetoothChatDialog.h" 
 
// System includes 
#include 	// iAvkonAppUi 
#include 	// EAknSoftkeyBack, EEikCmdExit 
 
// ================= MEMBER FUNCTIONS ======================= 
 
/** 
* Called by the framework when a button is pressed. 
* Translates aButtonId into a command for the AppUi to handle 
* 
* @param aButtonId The button which was pressed 
* @return false, always 
*/ 
 
TBool CBluetoothChatDialog::OkToExitL(TInt aButtonId) 
	{ 
	// Translate the button presses into commands for the appui & current 
	// view to handle 
	if (aButtonId == EAknSoftkeyOptions) 
		{ 
		iAvkonAppUi->ProcessCommandL(EAknSoftkeyOptions); 
		} 
	else if (aButtonId == EAknSoftkeyBack) 
		{ 
		iAvkonAppUi->ProcessCommandL(EEikCmdExit); 
		} 
 
	return EFalse; 
	} 
 
// End of File