📄 mymotiondetectcamappui.h
字号:
/*
============================================================================
Name : CMyMotionDetectCamAppUi from MyMotionDetectCamAppUi.h
Author :
Version :
Copyright :
COPYRIGHT All rights reserved Sony Ericsson Mobile Communications AB 2008.
The software is the copyrighted work of Sony Ericsson Mobile Communications AB.
The use of the software is subject to the terms of the end-user license
agreement which accompanies or is included with the software. The software is
provided "as is" and Sony Ericsson specifically disclaim any warranty or
condition whatsoever regarding merchantability or fitness for a specific
purpose, title or non-infringement. No warranty of any kind is made in
relation to the condition, suitability, availability, accuracy, reliability,
merchantability and/or non-infringement of the software provided herein.
Description : Declares main application UI class.
============================================================================
*/
#ifndef MYMOTIONDETECTCAMAPPUI_H
#define MYMOTIONDETECTCAMAPPUI_H
#include <QikAppUi.h>
#include <ECam.h>
#include "MyMotionDetectCamView.h"
/**
This class represents the application UI in MyMotionDetectCam application,
It has responsibility to create the view.
*/
class CMyMotionDetectCamAppUi : public CQikAppUi, public MCameraObserver
{
public:
void ConstructL();
~CMyMotionDetectCamAppUi();
void HandleCommandL(CQikCommand& aCommand);
void HandleForegroundEventL(TBool aForeground);
void ReserveComplete(TInt aError);
void PowerOnComplete(TInt aError);
void ViewFinderFrameReady(CFbsBitmap &aFrame);
void ImageReady(CFbsBitmap *aBitmap, HBufC8 *aData, TInt aError);
void FrameBufferReady(MFrameBuffer *aFrameBuffer, TInt aError);
private:
enum TMyState
{
EIdle, // Application is inactive
EOnHold, // Application is inactive, but will be activated when it is being foregrounded
EActive // Application is active
};
void Reset();
CMyMotionDetectCamView* iBaseView; // The application view
CCamera* iCam; // Pointer to the object representing the camera
TMyState iState; // The current state of the application
};
#endif // MYMOTIONDETECTCAMAPPUI_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -