dynamicsettinglistappui.cpp

来自「symbian平台上一个比较好的动态设置列表」· C++ 代码 · 共 70 行

CPP
70
字号
/*
* ============================================================================
*  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 + =
减小字号Ctrl + -
显示快捷键?