camappengine/Engine/Src/CaeVideoTimes.cpp
branchRCL_3
changeset 34 27fe719c32e6
parent 0 9b3e960ffc8a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/camappengine/Engine/Src/CaeVideoTimes.cpp	Wed Sep 01 12:23:23 2010 +0100
@@ -0,0 +1,89 @@
+/*
+* Copyright (c) 2002 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:  Camera Application Engine video times provider class 
+*
+*/
+
+
+
+// INCLUDE FILES
+
+#include "CaeVideoTimes.h"
+
+
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+
+// -----------------------------------------------------------------------------
+// CCaeVideoTimes::CCaeVideoTimes
+// Constructor.
+// -----------------------------------------------------------------------------
+//
+CCaeVideoTimes::CCaeVideoTimes() : 
+    CPeriodic( CActive::EPriorityStandard - 1 )
+    {
+    }
+
+
+// -----------------------------------------------------------------------------
+// CCaeVideoTimes::~CCaeVideoTimes
+// Destructor.
+// -----------------------------------------------------------------------------
+//
+CCaeVideoTimes::~CCaeVideoTimes()
+    {
+    Cancel();
+    }
+
+
+// -----------------------------------------------------------------------------
+// CCaeVideoTimes::ConstructL
+// Symbian 2nd phase constructor can leave.
+// -----------------------------------------------------------------------------
+//
+void CCaeVideoTimes::ConstructL()
+    {
+    CPeriodic::ConstructL();
+    CActiveScheduler::Add( this );
+    }
+
+
+// -----------------------------------------------------------------------------
+// CCaeVideoTimes::NewL
+// Two-phased constructor.
+// -----------------------------------------------------------------------------
+//
+CCaeVideoTimes* CCaeVideoTimes::NewL()
+    {
+    CCaeVideoTimes* self = new( ELeave ) CCaeVideoTimes;
+    CleanupStack::PushL( self );
+    self->ConstructL();
+    CleanupStack::Pop( self );
+    return self;
+    }
+
+
+// -----------------------------------------------------------------------------
+// CCaeVideoTimes::RunError
+// Called if CCaeVideoTimes function RunL() leaves.
+// -----------------------------------------------------------------------------
+//
+TInt CCaeVideoTimes::RunError( 
+    TInt /*aError*/ )
+    {
+    return KErrNone;
+    }
+
+//  End of File