sl@0
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
/**
|
sl@0
|
17 |
@file
|
sl@0
|
18 |
@internalTechnology
|
sl@0
|
19 |
*/
|
sl@0
|
20 |
|
sl@0
|
21 |
#ifndef MMDIRECTVIEWFINDER_H
|
sl@0
|
22 |
#define MMDIRECTVIEWFINDER_H
|
sl@0
|
23 |
|
sl@0
|
24 |
#include "mmcameraclientsession.h"
|
sl@0
|
25 |
|
sl@0
|
26 |
#include <ecam/ecamviewfinderintf.h>
|
sl@0
|
27 |
|
sl@0
|
28 |
class CMMDirectViewFinder : public CBase, public MCameraV2DirectViewFinder, public MCameraViewFinder
|
sl@0
|
29 |
{
|
sl@0
|
30 |
friend class CMMCameraClientSession;
|
sl@0
|
31 |
|
sl@0
|
32 |
public:
|
sl@0
|
33 |
static CMMDirectViewFinder* NewL(CMMCameraClientSession& aOwner);
|
sl@0
|
34 |
~CMMDirectViewFinder();
|
sl@0
|
35 |
|
sl@0
|
36 |
// From MCameraV2DirectViewFinder
|
sl@0
|
37 |
void Release(CCamera::CCameraV2DirectViewFinder* aDirectViewFinderHandle);
|
sl@0
|
38 |
|
sl@0
|
39 |
void CreateHistogramImplFactoryL(MImplementationFactory*& aImplFactoryPtr) const;
|
sl@0
|
40 |
void GetImageProcessingImplFactoryL(MImplementationFactory*& aImplFactoryPtr) const;
|
sl@0
|
41 |
TAny* GetDirectSnapshotImpl(TUid aInterface) const;
|
sl@0
|
42 |
|
sl@0
|
43 |
void SetDirectViewFinderObserver(MDirectViewFinderObserver& aDirectViewFinderObserver);
|
sl@0
|
44 |
void SetDirectViewFinderHandle(CCamera::CCameraV2DirectViewFinder* aDirectViewFinderHandle);
|
sl@0
|
45 |
|
sl@0
|
46 |
void StartViewFinderDirectL(RWsSession& aWs, CWsScreenDevice& aScreenDevice, RWindowBase& aWindow, TRect& aScreenRect);
|
sl@0
|
47 |
void StartViewFinderDirectL(RWsSession& aWs, CWsScreenDevice& aScreenDevice,
|
sl@0
|
48 |
RWindowBase& aWindow, TRect& aScreenRect, TRect& aClipRect);
|
sl@0
|
49 |
|
sl@0
|
50 |
void GetDirectViewFinderPropertiesL(TInt& aScreenNumber, TRect& aScreenRect, TRect& aClipRect) const;
|
sl@0
|
51 |
void PauseViewFinderDirect();
|
sl@0
|
52 |
void ResumeViewFinderDirect();
|
sl@0
|
53 |
void GetViewFinderStateL(CCamera::CCameraV2DirectViewFinder::TViewFinderState& aViewFinderState) const;
|
sl@0
|
54 |
void StopDirectViewFinder();
|
sl@0
|
55 |
|
sl@0
|
56 |
// From MCameraViewFinder
|
sl@0
|
57 |
void Release();
|
sl@0
|
58 |
|
sl@0
|
59 |
void GetViewFinderFadingCapabilitiesL(CCameraViewFinder::TViewFinderFadingCapabilities& aVFFadingCapabilities) const;
|
sl@0
|
60 |
void GetViewFinderFadingEffectL(CCameraViewFinder::TViewFinderFadingEffect& aCurrentVFFadingEffect) const;
|
sl@0
|
61 |
void SetViewFinderFadingEffect(const CCameraViewFinder::TViewFinderFadingEffect& aVFFadingEffect);
|
sl@0
|
62 |
void GetViewFinderHandleL(TInt& aVFHandle) const;
|
sl@0
|
63 |
|
sl@0
|
64 |
private:
|
sl@0
|
65 |
CMMDirectViewFinder(CMMCameraClientSession& aOwner);
|
sl@0
|
66 |
void ConstructL();
|
sl@0
|
67 |
|
sl@0
|
68 |
private:
|
sl@0
|
69 |
CMMCameraClientSession& iOwner;
|
sl@0
|
70 |
CCamera::CCameraV2DirectViewFinder* iDirectViewFinderHandle;
|
sl@0
|
71 |
|
sl@0
|
72 |
MDirectViewFinderObserver* iDirectViewFinderObserver;
|
sl@0
|
73 |
|
sl@0
|
74 |
TBool iPrepareCompleted;
|
sl@0
|
75 |
TInt iReferenceCount;
|
sl@0
|
76 |
};
|
sl@0
|
77 |
|
sl@0
|
78 |
#endif // MMDIRECTVIEWFINDER_H
|
sl@0
|
79 |
|