1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/ecam/ecamdirectviewfinder.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,91 @@
1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +
1.20 +
1.21 +/**
1.22 + @file
1.23 + @publishedAll
1.24 + @released
1.25 +*/
1.26 +#ifndef ECAMDIRECTVIEWFINDER_H
1.27 +#define ECAMDIRECTVIEWFINDER_H
1.28 +
1.29 +#include <e32base.h>
1.30 +#include <ecam.h>
1.31 +#include <ecam/ecamdirectviewfinderuids.hrh>
1.32 +
1.33 +class MCameraDirectViewFinder;
1.34 +
1.35 +/**
1.36 +UID used to identify the CCameraDirectViewFinder API.
1.37 +
1.38 +@see CCamera::CCameraDirectViewFinder
1.39 +*/
1.40 +static const TUid KECamDirectViewFinderUid = {KECamDirectViewFinderUidValue};
1.41 +
1.42 +/**
1.43 +CCamera direct view finder class is used to provide support for Direct View Finder functionalities like pause/resume.
1.44 +
1.45 +@note This class is not intended for sub-classing and used to standardise existing
1.46 + varieties of implementations.
1.47 +
1.48 +@note This class features are supposed to be meant for the direct viewfinder started using CCamera methods.
1.49 +
1.50 +@note If the class methods leave, the output type parameter value is not guaranteed to be valid.
1.51 +
1.52 +@publishedAll
1.53 +@released
1.54 +*/
1.55 +class CCamera::CCameraDirectViewFinder : public CBase
1.56 + {
1.57 + /* so can use internal factory functions etc. */
1.58 + friend class CCamera;
1.59 +
1.60 +public:
1.61 +
1.62 + /** Specifies direct viewfinder state. */
1.63 + enum TViewFinderState
1.64 + {
1.65 + /** View Finder is activated */
1.66 + EViewFinderActive,
1.67 + /** View Finder has been paused */
1.68 + EViewFinderPause,
1.69 + /** View Finder has been stopped or hasn't yet started. Default state. */
1.70 + EViewFinderInActive
1.71 + };
1.72 +
1.73 +public:
1.74 +
1.75 + IMPORT_C static CCameraDirectViewFinder* NewL(CCamera& aOwner);
1.76 +
1.77 + IMPORT_C void PauseViewFinderDirectL();
1.78 + IMPORT_C void ResumeViewFinderDirectL();
1.79 + IMPORT_C TViewFinderState ViewFinderState() const;
1.80 +
1.81 + IMPORT_C ~CCameraDirectViewFinder();
1.82 +
1.83 +private:
1.84 + CCameraDirectViewFinder(CCamera& aOwner);
1.85 + void ConstructL();
1.86 +
1.87 + void SetImplHandle();
1.88 +
1.89 +private:
1.90 + CCamera& iOwner;
1.91 + MCameraDirectViewFinder* iImpl; // not owned
1.92 + };
1.93 +
1.94 +#endif // ECAMDIRECTVIEWFINDER_H