landmarks/locationlandmarks/dbmanclientlib/src/EPos_CPosLmDatabaseManager.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: class is used to manage landmark databases.
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <ecom/ecom.h>
       
    22 #include "EPos_CPosLmDatabaseManager.h"
       
    23 #include "EPos_LandmarksDbManagerUids.hrh"
       
    24 
       
    25 // ================= MEMBER FUNCTIONS =======================
       
    26 
       
    27 // C++ default constructor can NOT contain any code, that
       
    28 // might leave.
       
    29 //
       
    30 EXPORT_C CPosLmDatabaseManager::CPosLmDatabaseManager()
       
    31     {
       
    32     }
       
    33 
       
    34 // Two-phased constructor.
       
    35 EXPORT_C CPosLmDatabaseManager* CPosLmDatabaseManager::NewL()
       
    36     {
       
    37     TUid implementationUid;
       
    38     implementationUid.iUid = KPosLmDbManagerImplUid;
       
    39 
       
    40     TAny* ptr = REComSession::CreateImplementationL(
       
    41         implementationUid,
       
    42         _FOFF(CPosLmDatabaseManager, iDtorIdKey));
       
    43 
       
    44     return reinterpret_cast<CPosLmDatabaseManager*>(ptr);
       
    45     }
       
    46 
       
    47 // Destructor
       
    48 EXPORT_C CPosLmDatabaseManager::~CPosLmDatabaseManager()
       
    49     {
       
    50     // Destroy any instance variables and then inform the framework that this
       
    51     // specific instance of the interface has been destroyed.
       
    52     REComSession::DestroyedImplementation(iDtorIdKey);
       
    53     }
       
    54 
       
    55 //  End of File