--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/vtengines/videoteleng/CallCtrl/Src/CVtCtlFactory.cpp Mon Nov 23 14:47:47 2009 +0200
@@ -0,0 +1,70 @@
+/*
+* 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: CVtCtlFactory class implementation.
+*
+*/
+
+
+#pragma CTC SKIP
+// INCLUDE FILES
+#include "CVtCtlFactory.h"
+#include "CVtCtlCallControl.h"
+#include <cvtlogger.h>
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// MVtCtlCallControl::CreateCallControlL
+// Creates call control.
+// -----------------------------------------------------------------------------
+//
+MVtCtlCallControl* CVtCtlFactory::CreateCallControlL(
+ MVtCtlEventObserver& aEventObserver )
+ {
+ __VTPRINTENTER( "CVtCtlCallStatusMonitor.IsLegalNewState" )
+ MVtCtlCallControl* control = CVtCtlCallControl::NewL(
+ aEventObserver );
+ __VTPRINTEXIT( "CVtCtlCallStatusMonitor.IsLegalNewState" )
+ return control;
+ }
+
+// -----------------------------------------------------------------------------
+// MVtCtlCallControl::Delete
+// Destructs call control object.
+// -----------------------------------------------------------------------------
+//
+void CVtCtlFactory::Delete( MVtCtlCallControl* aCallControl )
+ {
+ __VTPRINTENTER( "CVtCtlFactory.Delete" )
+ CVtCtlCallControl* callControl =
+ static_cast<CVtCtlCallControl*>( aCallControl );
+ delete callControl;
+ __VTPRINTEXIT( "CVtCtlFactory.Delete" )
+ }
+
+// ========================== OTHER EXPORTED FUNCTIONS =========================
+
+// -----------------------------------------------------------------------------
+// CreateFactory
+// Returns: Factory for creating and destructing call control.
+// -----------------------------------------------------------------------------
+//
+EXPORT_C CVtCtlFactory* CreateFactory()
+ {
+ CVtCtlFactory* factory = new CVtCtlFactory;
+ return factory;
+ }
+#pragma CTC ENDSKIP
+// End of File
+