bencoolensettingslistbox.h

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

H
92
字号
/*
 * BencoolenSettingsListBox.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 BENCOOLENSETTINGSLISTBOX_H
#define BENCOOLENSETTINGSLISTBOX_H

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

#include "Bencoolen.hrh"

// FORWARD DECLARATIONS
class CScreenShotData;

// CLASS DECLARATION

/**
 * CBencoolenSettingsListBox container control class to create
 * setting item list.
 */
class CBencoolenSettingsListBox: public CAknSettingItemList 
	{
public: // From CAknSettingItemList
	/**
	 * Creates SettingItem.
	 * @param identifier
	 * @return pointer to CAknSettingItem object
	 */
	CAknSettingItem* CreateSettingItemL(TInt identifier);

	/**
	 * Sets List's item data.
	 * @param aData data to set
	 */
	void SetData(CScreenShotData* aScreenShotData);

	/**
	 * Update iData with the value entered by the users.
	 * This function has to be called when the users have
	 * modified the file name or directory name.
	 * This is needed because we cannot use the reference to
	 * the file name and directory name of CScreenShotData
	 * directly.
	 */
	void UpdateData();
	
#if (__S60__ >= 203)

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

private: // From CCoeControl
	/**
	 * Called by framework when the size is changed.
	 */
	void SizeChanged();

private: // Data
	CScreenShotData*		iScreenShotData; // not owned by this class
	TBuf<KTextMaxLength>	iDirectory;
	TBuf<KTextMaxLength>	iFileName;
	};

#endif // BENCOOLENSETTINGSLISTBOX_H

// End of File

⌨️ 快捷键说明

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