bencoolensettingsview.h

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

H
116
字号
/*
 * BencoolenSettingsView.h
 *
 * Copyright 2005 - 2008, Antony Pranata
 * http://www.antonypranata.com
 *
 * Project: Screenshot for Symbian OS
 *
 * 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 BENCOOLENSETTINGSVIEW_H
#define BENCOOLENSETTINGSVIEW_H

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

// FORWARD DECLARATIONS
class CBencoolenSettingsListBox;
class CScreenShotData;

// CLASS DECLARATION

/**
 * CBencoolenSettingsView view class.
 */
class CBencoolenSettingsView: public CAknView
	{

public: // Constructor and destructor
	/**
	 * Two-phase constructor.
	 */
	static CBencoolenSettingsView* NewL(CScreenShotData* aScreenShotData);

	/**
	 * Virtual destructor.
	 */
	virtual ~CBencoolenSettingsView();

public: // From CAknView
	/**
	 * Returns the ID of view.
	 * @return The ID of view.
	 */
	TUid Id() const;

	/**
	 * Handles the commands. if the command is command which is require to
	 * display outline-screen, the command is reported to container class.
	 * @param aCommand Command to be handled.
	 */
	void HandleCommandL(TInt aCommand);
	
#if (__S60__ >= 203)

public: // From CCoeControl

	void HandleResourceChange(TInt aType);
	
#endif

private: // Constructors
	/**
	 * C++ default constructor.
	 */
	CBencoolenSettingsView(CScreenShotData* aScreenShotData);

	/**
	 * Second phase constructor.
	 */
	void ConstructL();

private: // New methods
	/**
	 * Creates ListBox.
	 * @param aResourceId for ListBox initialization
	 */
	void CreateListBoxL(TInt aResourceId);

private: // from CAknView
	/**
	 * Creates the Container class object.
	 * @param aPrevViewId aPrevViewId is not used.
	 * @param aCustomMessageId aCustomMessageId is not used.
	 * @param aCustomMessage aCustomMessage is not used.
	 */
	void DoActivateL(const TVwsViewId& aPrevViewId, 
		TUid aCustomMessageId, const TDesC8& aCustomMessage);

	/**
	 * Deletes the Container class object.
	 */
	void DoDeactivate();

private: // Data
	CBencoolenSettingsListBox* iListBox;
	CScreenShotData*		   iScreenShotData; // not owned by this class
	};

#endif // BENCOOLENSETTINGSVIEW_H

// End of File

⌨️ 快捷键说明

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