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

📄 cameraappappui.h

📁 S60官方摄像头程序
💻 H
字号:
/*
* ============================================================================
*  Name     : CCameraAppAppUi from CameraAppAppUi.h
*  Part of  : CameraApp
*  Created  : 02/09/2004 by Forum Nokia
*  Description:
*     Declares UI class for application.
*  Version  :
*  Copyright: Nokia Corporation, 2004
* ============================================================================
*/

#ifndef __CAMERAAPP_APPUI_H__
#define __CAMERAAPP_APPUI_H__

#include <eikapp.h>
#include <eikdoc.h>
#include <e32std.h>
#include <coeccntx.h>
#include <aknviewappui.h>
#include <akntabgrp.h>
#include <aknnavide.h>

class CCameraAppContainer;
class CCameraAppController;


#define KMediaGalleryUID3           0x101f4d8f
#define KMediaGalleryListViewUID    0x00000001
#define KMediaGalleryCmdMoveFocusTo 0x00000001

enum TCameraMode
	{
	EIdle,
	EViewFinding,
	EImageSnapped
	};


/**
 * Application UI class.
 * Provides support for the following features:
 * - EIKON control architecture
 * - view architecture
 * - status pane
 * 
 */
class CCameraAppAppUi : public CAknViewAppUi
    {
    public: // // Constructors and destructor

        /**
        * Symbian OS default constructor.
        */      
        void ConstructL();

        /**
        * Destructor.
        */      
        ~CCameraAppAppUi();
        
    private:
        // From MEikMenuObserver
        void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);

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

        /**
        * From CEikAppUi, handles key events.
        * @param aKeyEvent Event to handled.
        * @param aType Type of the key event. 
        * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 
        */
        virtual TKeyResponse HandleKeyEventL(
            const TKeyEvent& aKeyEvent,TEventCode aType);

    private: //Data
	    void DoNewImageL();
	    void DoSnapL();
	    void GoToMediaGalleryL();
        CAknNavigationControlContainer* iNaviPane;
        CAknTabGroup*                   iTabGroup;
        CAknNavigationDecorator*        iDecoratedTabGroup;

	    CCameraAppController* iController;

		// Whether the camera is in viewfinding mode or in the 
		// image snapped mode
		TCameraMode iCameraMode;
    };

#endif // __CAMERAAPP_APPUI_H__

⌨️ 快捷键说明

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