bencoolenappview.h

来自「Symbian_OS_code 初学Symbian_OS学习代码, 屏幕截图软」· C头文件 代码 · 共 123 行

H
123
字号
/*
 * BencoolenAppView.h
 *
 * Copyright 2005 - 2008, Antony Pranata
 * http://www.antonypranata.com
 *
 * Project: Screenshot for Symbian OS
 * Header file to define constants used in the user interface.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef BENCOOLENAPPVIEW_H
#define BENCOOLENAPPVIEW_H

// INCLUDES
#include <symbianvariant.h>
#include <aknview.h>

// FORWARD DECLARATIONS
class CBencoolenAppContainer;

// CLASS DECLARATION

/**
 * CBencoolenAppView view class.
 */
class CBencoolenAppView: public CAknView
	{
public: // Constructors and destructor
	/**
	 * Two-phased constructor.
	 * Construct a CBencoolenAppView for the AVKON application aApp.
	 * Using two phase construction,and return a pointer to the created object
	 * @return a pointer to the created instance of CBencoolenAppView
	 */
	static CBencoolenAppView* NewL();

	/**
	 * Virtual Destructor.
	 */
	virtual ~CBencoolenAppView();

	CBencoolenAppContainer* AppContainer()
	{ return iAppContainer; }

public: // From CAknView
	/**
	 * @return Id Uid value
	 */
	TUid Id() const;

	void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);

	/**
	 * From CAknView, takes care of command handling.
	 * @param aCommand Command to be handled
	 */
	void HandleCommandL( TInt aCommand );

	/**
	 * From CAknExView, activate an AknView.
	 * @param aPrevViewId The id of the previous view
	 * @param aCustomMessageId message identifier
	 * @param aCustomMessage custom message provided when the view is changed
	 */
	void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId,
		const TDesC8& aCustomMessage );

	/**
	 * From AknView, deactivate an AknView
	 * Remove the container class instance from the App UI's stack and
	 * deletes the instance
	 */
	void DoDeactivate();
		
#if (__S60__ >= 203)

	/**
	 * Called by framework when the layout or screen size is changed.
	 */
	void HandleResourceChange(TInt aType);
	
#endif

private: // Constructors
	/**
	 * C++ default constructor.
	 */
	CBencoolenAppView();

	/**
	 * 2nd phase constructor.
	 */
	void ConstructL();

private: // Data
	/**
	 * iContainer,container for this view
	 * owned by CBencoolenAppView object.
	 */
	CBencoolenAppContainer* iAppContainer;

	/** View Identifier **/
	TUid iIdentifier;
	};


#endif // BENCOOLENAPPVIEW_H

// End of File

⌨️ 快捷键说明

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