persistentstorage/dbms/sdbms/SD_OBSVR.CPP
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // DBMS server proxy observer object
       
    15 // 
       
    16 //
       
    17 
       
    18 #include "SD_STD.H"
       
    19 
       
    20 // Class CDbsNotifier
       
    21 
       
    22 CDbsNotifier* CDbsNotifier::NewL(const RDbsObject& aDatabase)
       
    23 	{
       
    24 	CDbsNotifier* self=new(ELeave) CDbsNotifier;
       
    25 	CleanupStack::PushL(self);
       
    26 	self->iObject.OpenL(aDatabase,EDbsDatabaseOpenObserver);
       
    27 	CleanupStack::Pop();
       
    28 	return self;
       
    29 	}
       
    30 
       
    31 CDbsNotifier::~CDbsNotifier()
       
    32 	{
       
    33 	iObject.Close();
       
    34 	}
       
    35 
       
    36 void CDbsNotifier::Notify(CDbNotifier::TType aType,TRequestStatus& aStatus)
       
    37 	{
       
    38 	iObject.SendReceive(EDbsObserverNotify,TIpcArgs(aType),aStatus);
       
    39 	}
       
    40 
       
    41 void CDbsNotifier::Cancel()
       
    42 	{
       
    43 	iObject.SendReceive(EDbsObserverCancel);
       
    44 	}
       
    45