landmarks/locationlandmarks/dbmanclientlib/src/EPos_CPosLmDatabaseManagerPluginBase.cpp
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2005 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: Implementation of CPosLmDatabaseManagerPluginBase class
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <ecom/ecom.h>
       
    22 #include "EPos_CPosLmDatabaseManagerPluginBase.h"
       
    23 #include "EPos_CPosLmDbManPluginBaseExtension.h"
       
    24 
       
    25 // ================= MEMBER FUNCTIONS =======================
       
    26 
       
    27 // C++ default constructor can NOT contain any code, that
       
    28 // might leave.
       
    29 //
       
    30 
       
    31 EXPORT_C CPosLmDatabaseManagerPluginBase::CPosLmDatabaseManagerPluginBase()
       
    32    {
       
    33    }
       
    34 
       
    35 // Destructor
       
    36 EXPORT_C CPosLmDatabaseManagerPluginBase::~CPosLmDatabaseManagerPluginBase()
       
    37     {
       
    38     delete iExtension;
       
    39     }
       
    40 
       
    41 // ---------------------------------------------------------
       
    42 // CPosLmDatabaseManagerPluginBase::BaseConstructL
       
    43 //
       
    44 // (other items were commented in a header).
       
    45 // ---------------------------------------------------------
       
    46 //
       
    47 EXPORT_C void CPosLmDatabaseManagerPluginBase::BaseConstructL(
       
    48     TAny* aConstructionParameters)
       
    49     {
       
    50     iExtension = new(ELeave) CPosLmDbManPluginBaseExtension(
       
    51     reinterpret_cast<RPosLandmarkServer*>(aConstructionParameters));
       
    52     }
       
    53 
       
    54 // ---------------------------------------------------------
       
    55 // CPosLmDatabaseManagerPluginBase::Session
       
    56 //
       
    57 // (other items were commented in a header).
       
    58 // ---------------------------------------------------------
       
    59 //
       
    60 EXPORT_C RPosLandmarkServer& CPosLmDatabaseManagerPluginBase::Session() const
       
    61     {
       
    62     return *(iExtension->iSession);
       
    63     }
       
    64 
       
    65 //  End of File
       
    66