memspyui/ui/hb/src/enginewrapper.cpp
changeset 26 41ebde60981f
parent 17 4f2773374eff
child 31 e7a04a6385be
equal deleted inserted replaced
25:31fc1277642e 26:41ebde60981f
    52 			result.append(new MemSpyThread(proc[i]));
    52 			result.append(new MemSpyThread(proc[i]));
    53 	
    53 	
    54 	return result;
    54 	return result;
    55 }
    55 }
    56 
    56 
       
    57 QList<MemSpyThreadInfoItem*> EngineWrapper::getThreadInfo(ThreadId threadId, ThreadInfoType type)
       
    58 {
       
    59 	QList<MemSpyThreadInfoItem*> result;
       
    60 	RArray<CMemSpyApiThreadInfoItem*> threadInfo;
       
    61 	TRAPD(error, mSession.GetThreadInfoItems(threadInfo, threadId, 
       
    62 			static_cast<TMemSpyThreadInfoItemType>(type)));
       
    63 	if (error == KErrNone)
       
    64 		for (TInt i=0; i<threadInfo.Count(); i++)
       
    65 			result.append(new MemSpyThreadInfoItem(threadInfo[i]));
       
    66 	
       
    67 	return result;
       
    68 }
       
    69 
    57 void EngineWrapper::setThreadPriority(ThreadId threadId, ThreadPriority priority)
    70 void EngineWrapper::setThreadPriority(ThreadId threadId, ThreadPriority priority)
    58 {
    71 {
    59 	TRAPD(error, mSession.SetThreadPriorityL(threadId, priority));
    72 	TRAP_IGNORE(mSession.SetThreadPriorityL(threadId, priority));
    60 }
    73 }
    61 
    74 
    62 QList<MemSpyKernelObjectType*> EngineWrapper::getKernelObjectTypes()
    75 QList<MemSpyKernelObjectType*> EngineWrapper::getKernelObjectTypes()
    63 {
    76 {
    64 	QList<MemSpyKernelObjectType*> result;
    77 	QList<MemSpyKernelObjectType*> result;