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

📄 camtestappui.h

📁 symbian下摄像头拍照示例,symbian c 开发
💻 H
字号:
/*
============================================================================
 Name        : CamTestAppUi.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Main application UI class (controller)
============================================================================
*/

#ifndef __CAMTESTAPPUI_H__
#define __CAMTESTAPPUI_H__

// INCLUDES
#include <eikapp.h>
#include <eikdoc.h>
#include <e32std.h>
#include <coeccntx.h>
#include <aknviewappui.h>
#include "CamTest.hrh"


// FORWARD DECLARATIONS
class CCamTestAppView;
class CCameraAppController;

const TInt KNumOfFrames = 5;

// CLASS DECLARATION
/**
* CCamTestAppUi application UI class.
* Interacts with the user through the UI and request message processing
* from the handler class
*/
class CCamTestAppUi : public CAknViewAppUi,
					  public MCoeForegroundObserver
    {
    public: // Constructors and destructor

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

        /**
        * CCamTestAppUi.
        * C++ default constructor. This needs to be public due to
        * the way the framework constructs the AppUi
        */
        CCamTestAppUi();

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



		 void ResetEngine();


		 TCameraMode CameraMode();

		 void DoNewImageL();
		 void DoSnapL();

    private:  // Functions from base classes

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

//1		void HandleResourceChangeL( TInt aType );
        /**
        *  HandleStatusPaneSizeChange.
        *  Called by the framework when the application status pane
 		*  size is changed.
        */
//		virtual TKeyResponse HandleKeyEventL(
//			const TKeyEvent& aKeyEvent,TEventCode aType);


	//	void HandleStatusPaneSizeChange();

	private:
		/**
		* Launches Media Gallery application for viewing the images.
		*/
	//	void GoToMediaGalleryL();
	//	TUint32 ResolveCameraOrientation();
	private: // From MCoeForegroundObserver
		void HandleGainingForeground();
		void HandleLosingForeground();
        
    private: // Data

        /**
        * The application view
        * Owned by CCamTestAppUi
        */
        CCamTestAppView* iView;
		TCameraMode iCameraMode;
		TInt iMediaGalleryUid3;

		TInt32 iCameraKeyHandle;

	public:  // Data
		CCameraAppController*           iController;
        
        
    };

#endif // __CAMTESTAPPUI_H__

// End of File

⌨️ 快捷键说明

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