logexampleview.h

来自「专业的用于查询手机通话记录的代码」· C头文件 代码 · 共 120 行

H
120
字号
/*
 * ============================================================================
 *  Name     : CLogExampleView from LogExampleView.h
 *  Part of  : LogExample
 *  Created  : 26.05.2005 by Forum Nokia
 *  Description:
 *     Declares view for application.
 *  Version  : 1.0
 *  Copyright: Nokia Corporation
 * ============================================================================
 */

#ifndef __LOGEXAMPLEVIEW_H__
#define __LOGEXAMPLEVIEW_H__

// INCLUDE FILES
#include <aknview.h>

// CONSTANTS
// UID of view
const TUid KViewId = {1};

// FORWARD DECLARATIONS
class CLogExampleContainer;
class CLogExEngine;
class CLogExampleAppUi;
class MEventsObserver;

// CLASS DECLARATION

/**
 *  CLogExampleView view class.
 * 
 */
class CLogExampleView : public CAknView
    {
public:
    // Constructors and destructor

    /**
     * Symbian default constructor.
     */
    void ConstructL();

    /**
     * Destructor.
     */
    ~CLogExampleView();

public:
    // New functions

    /**
     * Gets observer
     */
    MEventsObserver* GetObserver();

    /**
     * Refreshes the events.
     */
    void RefreshL();

public:
    // Functions from base classes

    /**
     * From CAknView returns Uid of view
     * @return TUid uid of the view
     */
    TUid Id() const;

    /**
     * From MEikMenuObserver delegate commands from the menu
     * @param aCommand a command emitted by the menu 
     */
    void HandleCommandL(TInt aCommand);

    /**
     * From CAknView reaction if size change
     */
    void HandleClientRectChange();

    /**
     * From MEikMenuObserver
     */
    void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);

private:

    /**
     * From CAknView activates the view
     * @param aPrevViewId 
     * @param aCustomMessageId 
     * @param aCustomMessage 
     */
    void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId,
            const TDesC8& aCustomMessage);

    /**
     * From CAknView deactivates the view (free resources)
     */
    void DoDeactivate();

    /**
     * Returns appUI:s model
     * @return appUI:s model
     */
    CLogExEngine* Model();

private:
    // Data members

    CLogExampleContainer* iContainer;
    TInt iCurrentEvents;
    };

#endif

// End of File

⌨️ 快捷键说明

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