profilesservices/ProfileEngine/WrapperSrc/CProEngProfileActivationDelegate.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:  This class listens to the changes in the Publish & Subscribe key that is used
       
    15 *               by Profiles Engine to notify that the active profile has been changed.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CPROENGPROFILEACTIVATIONDELEGATE_H
       
    22 #define CPROENGPROFILEACTIVATIONDELEGATE_H
       
    23 
       
    24 // INCLUDES
       
    25 #include "CProEngPubSubObserverBase.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CRepository;
       
    29 class MProEngProfileActivationObserver;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 * This class listens to the changes in the Publish & Subscribe key that is used
       
    35 * by Profiles Engine to notify that the active profile has been changed.
       
    36 *
       
    37 *  @lib ProfileEngine.lib
       
    38 *  @since 3.1
       
    39 */
       
    40 NONSHARABLE_CLASS( CProEngProfileActivationDelegate )
       
    41     : public CProEngPubSubObserverBase
       
    42     {
       
    43     public:  // Constructors and destructor
       
    44 
       
    45         /**
       
    46          * Two-phased constructor.
       
    47          */
       
    48         static CProEngProfileActivationDelegate* NewL(
       
    49                 MProEngProfileActivationObserver& aObserver );
       
    50         
       
    51         /**
       
    52          * Destructor.
       
    53          */
       
    54         ~CProEngProfileActivationDelegate();
       
    55 
       
    56     private: // Functions from base classes
       
    57 
       
    58         /**
       
    59          * From CProEngProfileActivationDelegateBase.
       
    60          */
       
    61         void NotifyObserverL();
       
    62 
       
    63         /**
       
    64          * From CProEngProfileActivationDelegateBase.
       
    65          */
       
    66         void NotifyError( TInt aError );
       
    67 
       
    68     private:
       
    69 
       
    70         /**
       
    71          * C++ constructor.
       
    72          */
       
    73         CProEngProfileActivationDelegate(
       
    74                 MProEngProfileActivationObserver& aObserver );
       
    75 
       
    76         /**
       
    77         * By default Symbian 2nd phase constructor is private.
       
    78         */
       
    79         void ConstructL();
       
    80 
       
    81     public: // Data:
       
    82 
       
    83         // Reference to the client implemented Profile Activation Observer
       
    84         MProEngProfileActivationObserver& iObserver;
       
    85 
       
    86         // Own: Profiles Engine Central Repository
       
    87         CRepository* iRepository;
       
    88 
       
    89     };
       
    90 
       
    91 #endif      //  CPROENGPROFILEACTIVATIONDELEGATE_H
       
    92 
       
    93 // End of File
       
    94