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

📄 dynamicsettinglistappui.cpp

📁 Symbian 中动态生成SettingList
💻 CPP
字号:
/*
* ============================================================================
*  Name     : CDynamicSettingListAppUi from DynamicSettingListAppUi.cpp
*  Part of  : Dynamic Setting List
*  Created  : 09/21/2005 by Forum Nokia
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

// INCLUDE FILES
#include <avkon.hrh>
#include "DynamicSettingListAppUi.h"
#include "DynamicSettingListAppView.h"
#include "DynamicSettingList.hrh"

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

// ----------------------------------------------------------
// CDynamicSettingListAppUi::ConstructL()
// ConstructL is called by the application framework
// ----------------------------------------------------------
//
void CDynamicSettingListAppUi::ConstructL()
    {
    BaseConstructL(EAknEnableSkin);

    iAppView = new (ELeave) CDynamicSettingListAppView;
    iAppView->SetMopParent(this);
    iAppView->ConstructL(ClientRect());

    AddToStackL(iAppView);
    }

// Constructor
CDynamicSettingListAppUi::CDynamicSettingListAppUi()                              
    {
	// no implementation required
    }

// Destructor
CDynamicSettingListAppUi::~CDynamicSettingListAppUi()
    {
    if (iAppView)
        {
        RemoveFromStack(iAppView);
        delete iAppView;
        iAppView = NULL;
        }
    }

// ----------------------------------------------------
// CDynamicSettingListAppUi::HandleCommandL()
// takes care of command handling
// ----------------------------------------------------
//
void CDynamicSettingListAppUi::HandleCommandL(TInt aCommand)
    {
    switch(aCommand)
        {
        case EEikCmdExit:
        case EAknSoftkeyExit:
            Exit();
            break;
      default:
            break;
        }
    }

// End of file

⌨️ 快捷键说明

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