⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 taskmanageriapdialog.cpp

📁 symbian s60 end to end socket程序源码 基于第二版何第三版的sdk
💻 CPP
字号:
/*
* ============================================================================
*  Name     : CTaskManagerIapDialog from TaskManagerIapDialog.cpp
*  Part of  : TaskManager
*  Created  : 08/31/2005 by Forum Nokia
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

// INCLUDE FILES
#include "TaskManagerIapDialog.h"
#include <eiktxlbx.h> // CEikTextListBox
#include <eiktxlbm.h> // CTextListBoxModel
#include "taskmanager.hrh"

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

// constructor
CTaskManagerIapDialog::CTaskManagerIapDialog(CDesCArray& aIaps, TInt& aSelectedIap)
	:	iIaps(aIaps),
		iSelectedIap(aSelectedIap)
	{
	
	}

// destructor	
CTaskManagerIapDialog::~CTaskManagerIapDialog()
	{	
	}
	
// ----------------------------------------------------
// CTaskManagerIapDialog::PreLayoutDynInitL()
// This function is called by the dialog framework 
// before the dialog is sized and laid out.
// ----------------------------------------------------
//		
void CTaskManagerIapDialog::PreLayoutDynInitL()
	{
    CEikTextListBox* listbox = static_cast<CEikTextListBox*>(ControlOrNull(ETaskManagerIapListbox));
    User::LeaveIfNull(listbox);
	listbox->Model()->SetItemTextArray(&iIaps);
	listbox->Model()->SetOwnershipType(ELbmDoesNotOwnItemArray);
	listbox->SetCurrentItemIndex(iSelectedIap);
	}

// ----------------------------------------------------
// CTaskManagerIapDialog::PreLayoutDynInitL()
// Handles a dialog button press for the specified button.
// ----------------------------------------------------
//	
TBool CTaskManagerIapDialog::OkToExitL(TInt aKey)
	{
	if (aKey == EEikBidOk)
		{
	    CEikTextListBox* listbox = static_cast<CEikTextListBox*>(ControlOrNull(ETaskManagerIapListbox));
    	User::LeaveIfNull(listbox);
		iSelectedIap = listbox->CurrentItemIndex();
		}

	return ETrue;
	}
	
// End of file

⌨️ 快捷键说明

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