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

📄 readicoappview.h

📁 symbian 平台下
💻 H
字号:
/*
 ============================================================================
 Name		: ReadICOAppView.h
 Author	  : 
 Copyright   : Your copyright notice
 Description : Declares view class for application.
 ============================================================================
 */

#ifndef __READICOAPPVIEW_h__
#define __READICOAPPVIEW_h__

// INCLUDES
#include <coecntrl.h>
#include "Image_Reader.h"

// CLASS DECLARATION
class CReadICOAppView : public CCoeControl, public MImageReadyCallBack
	{
public:
	// New methods

	/**
	 * NewL.
	 * Two-phased constructor.
	 * Create a CReadICOAppView object, which will draw itself to aRect.
	 * @param aRect The rectangle this view will be drawn to.
	 * @return a pointer to the created instance of CReadICOAppView.
	 */
	static CReadICOAppView* NewL(const TRect& aRect);

	/**
	 * NewLC.
	 * Two-phased constructor.
	 * Create a CReadICOAppView object, which will draw itself
	 * to aRect.
	 * @param aRect Rectangle this view will be drawn to.
	 * @return A pointer to the created instance of CReadICOAppView.
	 */
	static CReadICOAppView* NewLC(const TRect& aRect);

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

public:
	// Functions from base classes

	/**
	 * From CCoeControl, Draw
	 * Draw this CReadICOAppView to the screen.
	 * @param aRect the rectangle of this view that needs updating
	 */
	void Draw(const TRect& aRect) const;

	/**
	 * From CoeControl, SizeChanged.
	 * Called by framework when the view size is changed.
	 */
	virtual void SizeChanged();
	
	void FindFiles();
	void StartScanL(RFs aFs, const TDesC& aPath, 
			const TDesC& aWild, CDesCArray* aArray);
	void ScanDirectoryL(RFs& aFs, const TDesC& aDir, 
			const TDesC& aWild, CDesCArray* aArray);
	
	void DisplayImageL( TInt aIndex );
	
	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);

private:
	// Constructors

	/**
	 * ConstructL
	 * 2nd phase constructor.
	 * Perform the second phase construction of a
	 * CReadICOAppView object.
	 * @param aRect The rectangle this view will be drawn to.
	 */
	CDesCArrayFlat* iFilesArray; 
	
	void ConstructL(const TRect& aRect);

	/**
	 * CReadICOAppView.
	 * C++ default constructor.
	 */
	CReadICOAppView();
	
	void ImageReadyL(const TInt& aError);
	
	CImage_Reader* iImage_Reader;
	/**
	 * point to the decoded ico image.
	 * Not owned.
	 */
	CFbsBitmap* iBitmap;
	
	TInt iCurentMap;

	};

#endif // __READICOAPPVIEW_h__
// End of File

⌨️ 快捷键说明

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