profilesservices/ProfileEngine/WrapperSrc/CProEngMasterSettingsEventDelegate.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:46:45 +0300
changeset 21 851e19007849
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Delegate notifications about master settings modifications
*               to the observer.
*
*/



#ifndef CPROENGMASTERSETTINGSEVENTDELEGATE_H
#define CPROENGMASTERSETTINGSEVENTDELEGATE_H

// INCLUDES
#include "CProEngCenRepObserverBase.h"

// FORWARD DECLARATIONS
class MProEngMasterSettingsObserver;

// CLASS DECLARATION

/**
* This class delegates notifications about master settings modifications to the observer
* implemented by the client of Profiles Engine Wrapper API. This is a helper
* class for CProEngNotifyHandlerImpl.
*
*  @lib ProfileEngine.lib
*  @since 10.1
*/
NONSHARABLE_CLASS( CProEngMasterSettingsEventDelegate )
    : public CProEngCenRepObserverBase
    {
    public:  // constructor and destructor

        static CProEngMasterSettingsEventDelegate* NewL(
                MProEngMasterSettingsObserver& aObserver );

        virtual ~CProEngMasterSettingsEventDelegate() {};

    public: // Functions from base classes

        /**
         * From CProEngObserverBase.
         */
        void NotifyObserverL();

        /**
         * From CProEngObserverBase.
         */
        void NotifyError( TInt aError );


    public: // New functions

    private:  // constructor

        CProEngMasterSettingsEventDelegate( TUint32 aPartialCenRepKey,
                                            TUint32 aKeyMask,
                                            MProEngMasterSettingsObserver& aObserver );

    private: // Data:

        // The client implemented observer for profile modification events:
        MProEngMasterSettingsObserver& iObserver;

    };

#endif      //  CPROENGMASTERSETTINGSEVENTDELEGATE_H

// End of File