PECengine/JanitorPlugin2/Src/CPEngJanitorPlugin.cpp
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  CPEngJanitorPlugin
       
    15 *
       
    16 */
       
    17 
       
    18 //  Include Files
       
    19 #include <E32Base.h>
       
    20 #include "CPEngJanitorPlugin.h"
       
    21 #include "CPEngContactMapper.h"
       
    22 
       
    23 
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // CPEngJanitorPlugin::CPEngJanitorPlugin()
       
    29 // C++ default constructor can NOT contain any code, that
       
    30 // might leave.
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 CPEngJanitorPlugin::CPEngJanitorPlugin()
       
    34     {
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // CPEngJanitorPlugin::NewL()
       
    39 // Two-phased constructor.
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 CPEngJanitorPlugin* CPEngJanitorPlugin::NewL()
       
    43     {
       
    44     CPEngJanitorPlugin* self = new( ELeave ) CPEngJanitorPlugin();
       
    45     CleanupStack::PushL( self );
       
    46     self->ConstructL();
       
    47     CleanupStack::Pop( self );
       
    48 
       
    49     return self;
       
    50     }
       
    51 
       
    52 
       
    53 // Destructor
       
    54 CPEngJanitorPlugin::~CPEngJanitorPlugin()
       
    55     {
       
    56     delete iContactMapper;
       
    57     }
       
    58 
       
    59 
       
    60 // -----------------------------------------------------------------------------
       
    61 // CPEngJanitorPlugin::ConstructL()
       
    62 // Second phase construct
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 void CPEngJanitorPlugin::ConstructL()
       
    66     {
       
    67     iContactMapper = CPEngContactMapper::NewL();
       
    68     }
       
    69 
       
    70 
       
    71 
       
    72 // End of file
       
    73 
       
    74