camtestappui.h

来自「symbian下摄像头拍照示例,symbian c 开发」· C头文件 代码 · 共 121 行

H
121
字号
/*
============================================================================
 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 + =
减小字号Ctrl + -
显示快捷键?