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

📄 filebrowserappui.cpp

📁 《基于Symbian OS的手机开发与应用实践》这本书的配套源码。
💻 CPP
字号:
/*
* ============================================================================
*  Name     : CFileBrowserAppUi from FileBrowserAppui.cpp
*  Part of  : FileBrowser
*  Created  : 03.05.2005 by ToBeReplacedByAuthorXinyu
*  Implementation notes:
*     Initial content was generated by Series 60 Application Wizard.
*  Version  :
*  Copyright: ToBeReplacedByCopyrightNone
* ============================================================================
*/

// INCLUDE FILES
#include "FileBrowserAppui.h"
#include "FileBrowserView.h"
#include <FileBrowser.rsg>
#include "FileBrowser.hrh"

#include <avkon.hrh>

// ================= MEMBER FUNCTIONS =======================
//
// ----------------------------------------------------------
// CFileBrowserAppUi::ConstructL()
// 
// ----------------------------------------------------------
//
void CFileBrowserAppUi::ConstructL()
    {
    BaseConstructL();

    CFileBrowserView* view1 = new (ELeave) CFileBrowserView;
    CleanupStack::PushL( view1 );
    view1->ConstructL();
    AddViewL( view1 );      // transfer ownership to CAknViewAppUi
    CleanupStack::Pop();    // view1
    SetDefaultViewL(*view1);

    }

// ----------------------------------------------------
// CFileBrowserAppUi::~CFileBrowserAppUi()
// Destructor
// Frees reserved resources
// ----------------------------------------------------
//
CFileBrowserAppUi::~CFileBrowserAppUi()
    {
   }

// ------------------------------------------------------------------------------
// CFileBrowserAppUi::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)
//  This function is called by the EIKON framework just before it displays
//  a menu pane. Its default implementation is empty, and by overriding it,
//  the application can set the state of menu items dynamically according
//  to the state of application data.
// ------------------------------------------------------------------------------
//
void CFileBrowserAppUi::DynInitMenuPaneL(
    TInt /*aResourceId*/,CEikMenuPane* /*aMenuPane*/)
    {
    }

// ----------------------------------------------------
// CFileBrowserAppUi::HandleKeyEventL(
//     const TKeyEvent& aKeyEvent,TEventCode /*aType*/)
// takes care of key event handling
// ----------------------------------------------------
//
TKeyResponse CFileBrowserAppUi::HandleKeyEventL(
    const TKeyEvent& aKeyEvent,TEventCode aType)
    {
    return EKeyWasNotConsumed;
    }

// ----------------------------------------------------
// CFileBrowserAppUi::HandleCommandL(TInt aCommand)
// takes care of command handling
// ----------------------------------------------------
//
void CFileBrowserAppUi::HandleCommandL(TInt aCommand)
    {
    switch ( aCommand )
        {
        case EEikCmdExit:
            {
            Exit();
            break;
            }
        case EFileBrowserCmdAppTest:
            {
            iEikonEnv->InfoMsg(_L("test"));
            break;
            }
        // TODO: Add Your command handling code here

        default:
            break;      
        }
    }

// End of File  

⌨️ 快捷键说明

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