profilesservices/ProfileEngine/WrapperSrc/CProEngActiveProfileDelegate.h
changeset 0 8c5d936e5675
equal deleted inserted replaced
-1:000000000000 0:8c5d936e5675
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Listen the changes in the Publish & Subscribe key
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CPROENGACTIVEPROFILEDELEGATE_H
       
    21 #define CPROENGACTIVEPROFILEDELEGATE_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "CProEngPubSubObserverBase.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MProEngActiveProfileObserver;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 * This class listens to the changes in the Publish & Subscribe key that is used
       
    33 * by Profiles Engine to notify that the active profile has been modified.
       
    34 *
       
    35 *  @lib ProfileEngine.lib
       
    36 *  @since 3.1
       
    37 */
       
    38 NONSHARABLE_CLASS( CProEngActiveProfileDelegate )
       
    39     : public CProEngPubSubObserverBase
       
    40     {
       
    41     public:  // constructor and destructor
       
    42         CProEngActiveProfileDelegate(
       
    43                 MProEngActiveProfileObserver& aObserver );
       
    44 
       
    45         ~CProEngActiveProfileDelegate() {};
       
    46 
       
    47     private: // Functions from base classes
       
    48 
       
    49         /**
       
    50          * From CProEngActiveProfileDelegateBase.
       
    51          */
       
    52         void NotifyObserverL();
       
    53 
       
    54         void NotifyError( TInt aError );
       
    55 
       
    56     public: // Data:
       
    57 
       
    58         // Profile Activation Observer reference
       
    59         MProEngActiveProfileObserver& iObserver;
       
    60 
       
    61     };
       
    62 
       
    63 #endif      //  CPROENGACTIVEPROFILEDELEGATE_H
       
    64 
       
    65 // End of File
       
    66