landmarks/locationlandmarks/localdbmanprov/src/EPos_RPosLmDbManClientSession.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 20:51:33 +0300
changeset 46 df1a0df61209
parent 0 667063e416a2
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* 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: Implementation of RPosLmDbManClientSession
*
*
*/


// INCLUDE FILES
#include    "EPos_RPosLmDbManClientSession.h"

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

// -----------------------------------------------------------------------------
// RPosLmDbManClientSession::NotifyDatabaseEvent
//
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
void RPosLmDbManClientSession::NotifyDatabaseEvent(
    CPosLmDatabaseManager::TDbEvent& aEvent,
    TRequestStatus& aStatus)
    {
    iEventPtr.Set(reinterpret_cast<TUint8*>(&aEvent),
        sizeof(CPosLmDatabaseManager::TDbEvent),
        sizeof(CPosLmDatabaseManager::TDbEvent));

    SendReceive(EPosLmServerListenForEvent, TIpcArgs(&iEventPtr), aStatus);
    }

// -----------------------------------------------------------------------------
// RPosLmDbManClientSession::CancelNotifyDatabaseEvent
//
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
TInt RPosLmDbManClientSession::CancelNotifyDatabaseEvent()
    {
    return SendReceive(EPosLmServerCancelListenForEvent,
                        TIpcArgs(TIpcArgs::ENothing));
    }

//  End of File