usbengines/usblocodplugin/src/usblcdplugin.cpp
changeset 34 7858bc6ead78
parent 31 dfdd8240f7c8
child 35 9d8b04ca6939
equal deleted inserted replaced
31:dfdd8240f7c8 34:7858bc6ead78
     1 /*
       
     2 * Copyright (c) 2006 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:  This class handles the definition of ECom plugin interface 
       
    15 *                implementation. 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include "usblcdplugin.h"
       
    21 
       
    22 #ifdef __FLOG_ACTIVE
       
    23 _LIT8(KLogComponent, "USBLcdPlugin");
       
    24 #endif
       
    25 
       
    26 CUsbLcdPlugin* CUsbLcdPlugin::NewL(TLocodBearerPluginParams& aParams)
       
    27     {
       
    28     LOG_STATIC_FUNC_ENTRY
       
    29     CUsbLcdPlugin* self = new (ELeave) CUsbLcdPlugin(aParams);
       
    30     CleanupStack::PushL(self);
       
    31     self->ConstructL();
       
    32     CleanupStack::Pop(self);
       
    33     return self;
       
    34     }
       
    35 
       
    36 // ---------------------------------------------------------------------------
       
    37 // Destructor
       
    38 // ---------------------------------------------------------------------------
       
    39 //
       
    40 CUsbLcdPlugin::~CUsbLcdPlugin()
       
    41     {
       
    42     LOG_FUNC
       
    43     delete iUsbLcdActive;
       
    44     }
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // Constructor
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 CUsbLcdPlugin::CUsbLcdPlugin(TLocodBearerPluginParams& aParams)
       
    51     : CLocodBearerPlugin(aParams)
       
    52     {
       
    53     LOG_FUNC
       
    54     }
       
    55 
       
    56 // ---------------------------------------------------------------------------
       
    57 // Symbian 2nd phase constructor can leave.
       
    58 // ---------------------------------------------------------------------------
       
    59 //
       
    60 void CUsbLcdPlugin::ConstructL()
       
    61     {
       
    62     LOG_FUNC
       
    63     iUsbLcdActive = CUsbLcdActive::NewL(Observer()); 
       
    64     }
       
    65 // End of file