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

📄 camdecode_3rdappview.h

📁 PartiTekSDK.chm is for windows, Unix/Linux and WinCE/WinMobile platform. SDK_Manul_Symbian.pdf i
💻 H
字号:
/*
============================================================================
 Name        : CamDecode_3rdView.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Application view
============================================================================
*/

#ifndef __CAMDECODE_3RDAPPVIEW_H__
#define __CAMDECODE_3RDAPPVIEW_H__

// INCLUDES
#include <coecntrl.h>
#include <eiklbo.h>
#include <fbs.h>
#include <eikclb.h>
#include "CamEngine.h"

// CLASS DECLARATION
class CEikColumnListBox;
class CFbsBitmap;
class CCamEngine;

class CCamDecode_3rdAppView : public CCoeControl,MEikListBoxObserver,MCoeControlObserver
	{
	public: // New methods

		/**
		* NewL.
		* Two-phased constructor.
		* Create a CCamDecode_3rdAppView 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 CCamDecode_3rdAppView.
		*/
		static CCamDecode_3rdAppView* NewL( const TRect& aRect );

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

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

	public:  // Functions from base classes

		/**
		* From CCoeControl, Draw
		* Draw this CCamDecode_3rdAppView 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 ConstructL(const TRect& aRect);

		void ClearScr();

		void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);

		TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
		void  HandleListBoxEventL( CEikListBox* /*aListBox*/, TListBoxEvent aListBoxEvent);

		TInt CountComponentControls() const;
		CCoeControl* ComponentControl(TInt aIndex) const;

		void CloseCam();
		void DrawImageNow(CFbsBitmap* aBitmap);
		void SetZoomL(TBool aEnable);
		void LoadBmp();
		void StartFromMenu();
	private: // Constructors

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

		/**
		* CCamDecode_3rdAppView.
		* C++ default constructor.
		*/
	public:
		CCamDecode_3rdAppView();
	private:
		 CFbsBitmap* iLogo;
		 TBool iClear;
	public:
		TBool                iCamStart;
		TBool			     iDecodeType;
		CEikColumnListBox*   iColListBox;
		CFbsBitmap*          iBitmap;
		CCamEngine*          iEngine;

	};

#endif // __CAMDECODE_3RDAPPVIEW_H__

// End of File

⌨️ 快捷键说明

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