vtuis/lcvtplugin/src/base/clcvtengine.cpp
branchRCL_3
changeset 24 f15ac8e65a02
equal deleted inserted replaced
23:890b5dd735f8 24:f15ac8e65a02
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  LiveComm Videotelephony Plugin Class
       
    15 *
       
    16 */
       
    17 
       
    18 #include <lcsession.h>
       
    19 #include <lcuiprovider.h>
       
    20 #include <lcsessionobserver.h>
       
    21 #include "clcvtengine.h"
       
    22 #include "clcvtsession.h"
       
    23 // -----------------------------------------------------------------------------
       
    24 //
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 CLcVtEngine* CLcVtEngine::NewL( TAny* aParams )
       
    28     {
       
    29     CLcVtEngine* self = new ( ELeave ) CLcVtEngine;
       
    30     CleanupStack::PushL( self );
       
    31     self->ConstructL(); 
       
    32     CleanupStack::Pop( self );
       
    33     return self;
       
    34     }
       
    35     
       
    36 CLcVtEngine::~CLcVtEngine()
       
    37     {
       
    38     delete iSession;
       
    39     }
       
    40     
       
    41 MLcSession& CLcVtEngine::Session()
       
    42     {
       
    43     return *iSession;
       
    44     }
       
    45  
       
    46 void CLcVtEngine::ConstructL() 
       
    47     {
       
    48     iSession = CLcVtSession::NewL();
       
    49     }
       
    50  
       
    51 CLcVtEngine::CLcVtEngine() : CLcEngine()
       
    52     {
       
    53     
       
    54     }
       
    55 
       
    56 TBool CLcVtEngine::IsFeatureSupported( TLcFeature aLcFeature )
       
    57     {
       
    58     return iSession->IsFeatureSupported( aLcFeature );
       
    59     }