Hello,

I'm new to Qt programming, and am working on app development for the Symbian platform. My program needs to obtain the list of processes currently taking place within the mobile device, and add them to a listWidget.

The following is a Symbian S60 code snippet I got for doing so, but I need help adapting it for a Qt app on a smartphone. Any insight on procedure and libraries to include would be greatly appreciated; thanks in advance!

Code:

void CDriver_GuiAppView::GetProcessListL(void)

{
	process = 1;
	TFullName res;
	TFullName temp;
	TFindProcess find;

	RDebug::Print(_L("\n \n List of processes running in the system:"));
	CTextListBoxModel* model = iListBox->Model();
	User::LeaveIfNull(model);

	model->SetOwnershipType(ELbmOwnsItemArray);
	CDesCArray* itemArray = static_cast<CDesCArray*>(model->ItemTextArray());

	User::LeaveIfNull(itemArray);
       itemArray->Reset();

	while (find.Next(res) == KErrNone)
	{
		RProcess ph;
		ph.Open(find);
		RDebug::Print(_L("%S \n"),&res);
		temp.Format(KListFormatString, KFolderIconSlot);
		temp.Append(res);
		itemArray->AppendL(temp);
		iListBox->HandleItemAdditionL();
		temp.Zero();

		ph.Close();
	}

	iRoot = EFalse;
	iListBox->SetCurrentItemIndex(0);
	iListBox->DrawNow();
}