profilesservices/ProfileEngine/WrapperSrc/CProEngActiveProfileDelegate.cpp
changeset 0 8c5d936e5675
child 8 f62c3a3d66b8
equal deleted inserted replaced
-1:000000000000 0:8c5d936e5675
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  Implementation of CProEngActiveProfileDelegate
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include    "CProEngActiveProfileDelegate.h"
       
    22 #include    "ProfileEnginePrivatePSKeys.h" // KProEngActiveProfileModified 
       
    23 #include    <MProEngActiveProfileObserver.h>
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // CProEngActiveProfileDelegate::CProEngActiveProfileDelegate
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 CProEngActiveProfileDelegate::CProEngActiveProfileDelegate(
       
    32         MProEngActiveProfileObserver& aObserver )
       
    33     : CProEngPubSubObserverBase( KProEngActiveProfileModified ),
       
    34       iObserver( aObserver )
       
    35     {
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // CProEngActiveProfileDelegate::NotifyObserverL
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 void CProEngActiveProfileDelegate::NotifyObserverL()
       
    43     {
       
    44     iObserver.HandleActiveProfileModifiedL();
       
    45     }
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // CProEngActiveProfileDelegate::NotifyError
       
    49 // -----------------------------------------------------------------------------
       
    50 //
       
    51 void CProEngActiveProfileDelegate::NotifyError( TInt aError )
       
    52     {
       
    53     iObserver.HandleActiveProfileNotificationError( aError );
       
    54     }
       
    55 
       
    56 //  End of File
       
    57