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

📄 taskmgrappui.cpp

📁 this is the task manging program in the symbian
💻 CPP
字号:
/* Copyright (c) 2003, Nokia. All rights reserved */

#include <avkon.hrh>

#include <aknlists.h>  

#include "taskmgr.pan"
#include "taskmgrAppUi.h"
#include "taskmgrAppView.h"
#include "taskmgr.hrh"

void CtaskmgrAppUi::ConstructL()
{
    BaseConstructL(/*JKJK EAknEnableSkin*/);

    iAppView = CtaskmgrAppView::NewL(ClientRect());
    AddToStackL(iAppView);
}

CtaskmgrAppUi::CtaskmgrAppUi()                              
{
	// No implementation required
}

CtaskmgrAppUi::~CtaskmgrAppUi()
{
    if (iAppView){
        iEikonEnv->RemoveFromStack(iAppView);
        delete iAppView;
        iAppView = NULL;
   	}
}

void CtaskmgrAppUi::HandleCommandL(TInt aCommand)
{

    switch(aCommand)
    {
        case EEikCmdExit:
        case EAknSoftkeyExit:
            Exit();
            break;
		case EtaskmgrRefreshListCmd:
			iAppView->RefreshList();
		break;
		case EtaskmgrKillTaskCmd:
			iAppView->KillApp();		
		break;
		case EtaskmgrRunTaskCmd:
			iAppView->NewApp();		
		break;
		case EtaskmgrTaskInfoCmd:
			iAppView->TaskInfo();		
		break;
		case EtaskmgrCompressMemCmd:
			iAppView->CompressHeaps();
		break;
		case EtaskmgrProcessListCmd:
			iAppView->FillProcessList();
		break;
		case EtaskmgrTaskListCmd:
			iAppView->FillTaskList();
		break;
		case EtaskmgrSwitchToCmd:
			iAppView->SwitchToApp();		
		break;
		case EtaskmgrSysInfoCmd:
			iAppView->ShowSystemInfo();
		break;
		case EtaskmgrRestartCmd:
			iAppView->RestartDevice();
		break;
		case EtaskmgrKillProcessCmd:
			iAppView->KillProcess();
		break;
		case EtaskmgrProcessInfoCmd:
//JKJK			iAppView->ShowProcessInfo();
		break;
		case EtaskmgrSwitchListCmd:
			iAppView->SwitchView();
		break;
		case EtaskmgrMainAboutCmd:
			iAppView->ShowAbout();
		break;
        default:
            Panic(EtaskmgrUi);
            break;
    }
}



⌨️ 快捷键说明

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