srsf/nssvasapi/nssvasdb/nssvasdbeventnotifier/src/nssvascvasdbeventnotifier.cpp
branchRCL_3
changeset 23 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
22:cad71a31b7fc 23:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2002 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:  CNssVASDBEventNotifier is the implementation class for interface 
       
    15 *				 MNssVASDBEventNotifier.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include    "nssvascvasdbeventnotifier.h"
       
    22 
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 
       
    26 // C++ constructor can NOT contain any code that
       
    27 // might leave.
       
    28 //
       
    29 CNssVASDBEventNotifier::CNssVASDBEventNotifier(CNssVASDatabase* aDatabase): iDatabase(aDatabase)
       
    30     {
       
    31     }
       
    32 
       
    33 // Destructor
       
    34 CNssVASDBEventNotifier::~CNssVASDBEventNotifier()
       
    35     {
       
    36     
       
    37     }
       
    38 
       
    39 
       
    40 // ---------------------------------------------------------
       
    41 // CNssVASDBEventNotifier::AddObserverL
       
    42 // adds an observer
       
    43 // (other items were commented in a header).
       
    44 // ---------------------------------------------------------
       
    45 //
       
    46 void CNssVASDBEventNotifier::AddObserverL(MNssVASDatabaseObserver* aObserver)
       
    47    {
       
    48    iDatabase->AddObserverL(aObserver);
       
    49    }
       
    50 
       
    51 
       
    52 // ---------------------------------------------------------
       
    53 // CNssVASDBEventNotifier::RemoveObserverL
       
    54 // removes an observer
       
    55 // (other items were commented in a header).
       
    56 // ---------------------------------------------------------
       
    57 //
       
    58 void CNssVASDBEventNotifier::RemoveObserverL(MNssVASDatabaseObserver* aObserver)
       
    59    {
       
    60    User::LeaveIfError( iDatabase->RemoveObserver(aObserver) );
       
    61    }
       
    62 
       
    63 
       
    64 
       
    65 
       
    66 //  End of File