myfilehandler.h
来自「UIQ3 P990 Camera使用实例」· C头文件 代码 · 共 55 行
H
55 行
/*****************************************************************************
COPYRIGHT All rights reserved Sony Ericsson Mobile Communications AB 2006.
The software is the copyrighted work of Sony Ericsson Mobile Communications AB.
The use of the software is subject to the terms of use or 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.
*****************************************************************************/
// MyFileHandler.h
#ifndef __MYFILEHANDLER_H__
#define __MYFILEHANDLER_H__
#include <MdaImageConverter.h>
class MMyFileObserver;
class MCameraBuffer;
class CMyFileHandler : public CBase
{
public:
static CMyFileHandler* NewLC();
virtual ~CMyFileHandler();
// can save to C or D
TBool SetSaveDriveL(TBool aIsSetC);
// saves camera image from descriptor to a file (as a jpg file)
TInt SaveDescToFileL(MCameraBuffer& aCameraBuffer);
private:
CMyFileHandler();
void ConstructL();
// gets a new vaild name for new file creation
void GetValidFileName(TFileName& aFileName, const TDesC& aExt);
private:
TBool iBusySaving;
TBool iSaveToC;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?