landmarks/locationlandmarks/dbmanclientlib/src/EPos_CPosLmDatabaseManager.cpp
author Peter Fordham <peter.fordham@gmail.com>
Fri, 19 Mar 2010 17:31:34 -0700
branchCompilerCompatibility
changeset 10 936cdb3b3ca7
parent 0 667063e416a2
permissions -rw-r--r--
Bug 1776 - Move variable parts of size calculation out of _FOFF macro.

/*
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: class is used to manage landmark databases.
*
*
*/


// INCLUDE FILES
#include <ecom/ecom.h>
#include "EPos_CPosLmDatabaseManager.h"
#include "EPos_LandmarksDbManagerUids.hrh"

// ================= MEMBER FUNCTIONS =======================

// C++ default constructor can NOT contain any code, that
// might leave.
//
EXPORT_C CPosLmDatabaseManager::CPosLmDatabaseManager()
    {
    }

// Two-phased constructor.
EXPORT_C CPosLmDatabaseManager* CPosLmDatabaseManager::NewL()
    {
    TUid implementationUid;
    implementationUid.iUid = KPosLmDbManagerImplUid;

    TAny* ptr = REComSession::CreateImplementationL(
        implementationUid,
        _FOFF(CPosLmDatabaseManager, iDtorIdKey));

    return reinterpret_cast<CPosLmDatabaseManager*>(ptr);
    }

// Destructor
EXPORT_C CPosLmDatabaseManager::~CPosLmDatabaseManager()
    {
    // Destroy any instance variables and then inform the framework that this
    // specific instance of the interface has been destroyed.
    REComSession::DestroyedImplementation(iDtorIdKey);
    }

//  End of File