camerauis/cameraapp/generic/inc/cameracontroller/camsnapshotprovider.inl
changeset 19 d9aefe59d544
parent 3 8b2d6d0384b0
child 21 fa6d9f75d6a6
child 28 3075d9b614e6
--- a/camerauis/cameraapp/generic/inc/cameracontroller/camsnapshotprovider.inl	Tue Feb 02 00:01:39 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,151 +0,0 @@
-/*
-* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:  Inline implementations of CCamSnapshotProvider class
-*
-*/
-
-
-#include "camsnapshot.h"
-
-// ===========================================================================
-// Methods
-
-// ===========================================================================
-// From MCameraSnapshot
-
-// ---------------------------------------------------------------------------
-//
-// ---------------------------------------------------------------------------
-//
-TUint32
-CCamSnapshotProvider::SupportedFormats()
-  {
-  return ( iSs1
-         ? iSs1->SupportedFormats()
-         : iSs2->SupportedFormats() );
-  }
-
-// ---------------------------------------------------------------------------
-//
-// ---------------------------------------------------------------------------
-//
-void
-CCamSnapshotProvider::PrepareSnapshotL(       CCamera::TFormat aFormat, 
-                                        const TPoint&          aPosition, 
-                                        const TSize&           aSize, 
-                                        const TRgb&            aBgColor, 
-                                              TBool            aMaintainAspectRatio )
-  {
-  ( iSs1 ? iSs1->PrepareSnapshotL( aFormat, aPosition, aSize, aBgColor, aMaintainAspectRatio )
-         : iSs2->PrepareSnapshotL( aFormat, aPosition, aSize, aBgColor, aMaintainAspectRatio ) );
-  }
-                                        
-
-// ---------------------------------------------------------------------------
-//
-// ---------------------------------------------------------------------------
-//
-void
-CCamSnapshotProvider::PrepareSnapshotL(       CCamera::TFormat aFormat, 
-                                        const TSize&           aSize, 
-                                              TBool            aMaintainAspectRatio )
-  {
-  ( iSs1 ? iSs1->PrepareSnapshotL( aFormat, aSize, aMaintainAspectRatio )
-         : iSs2->PrepareSnapshotL( aFormat, aSize, aMaintainAspectRatio ) );
-  }
-
-
-// ---------------------------------------------------------------------------
-//
-// ---------------------------------------------------------------------------
-//
-void
-CCamSnapshotProvider::SetBgColorL( const TRgb& aBgColor )
-  {
-  ( iSs1 ? iSs1->SetBgColorL( aBgColor )
-         : iSs2->SetBgColorL( aBgColor ) );
-  }
-
-// ---------------------------------------------------------------------------
-//
-// ---------------------------------------------------------------------------
-//
-void
-CCamSnapshotProvider::SetPositionL( const TPoint& aPosition )
-  {
-  ( iSs1 ? iSs1->SetPositionL( aPosition )
-         : iSs2->SetPositionL( aPosition ) );
-  }
-
-// ---------------------------------------------------------------------------
-//
-// ---------------------------------------------------------------------------
-//
-TBool
-CCamSnapshotProvider::IsSnapshotActive() const
-  {
-  return ( iSs1
-         ? iSs1->IsSnapshotActive()
-         : iSs2->IsSnapshotActive() );  
-  }
-
-// ---------------------------------------------------------------------------
-//
-// ---------------------------------------------------------------------------
-//
-void
-CCamSnapshotProvider::StartSnapshot()
-  {
-  ( iSs1 ? iSs1->StartSnapshot()
-         : iSs2->StartSnapshot() );
-  }
-
-
-// ---------------------------------------------------------------------------
-//
-// ---------------------------------------------------------------------------
-//
-void
-CCamSnapshotProvider::StopSnapshot()
-  {
-  ( iSs1 ? iSs1->StopSnapshot()
-         : iSs2->StopSnapshot() );
-  }
-
-
-// ---------------------------------------------------------------------------
-//
-// ---------------------------------------------------------------------------
-//
-MCameraBuffer& 
-CCamSnapshotProvider::SnapshotDataL( RArray<TInt>& aFrameIndexOrder )
-  {
-  return ( iSs1
-         ? iSs1->SnapshotDataL( aFrameIndexOrder )
-         : iSs2->SnapshotDataL( aFrameIndexOrder ) );  
-  }
-
-
-// ---------------------------------------------------------------------------
-//
-// ---------------------------------------------------------------------------
-//
-void
-CCamSnapshotProvider::Release()
-  {
-  // empty
-  }
-
-// ===========================================================================
-// end of file .inl
\ No newline at end of file