cellular/telephonysettings/inc/PSetRefreshHandlerImpl.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:15:03 +0100
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2004 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:  The Refresh handler to inform refresses.
*
*/



#ifndef CPSETREFRESHHANDLERIMPL_H
#define CPSETREFRESHHANDLERIMPL_H


//  INCLUDES
#include <PSetRefreshHandler.h>
#include <msatrefreshobserver.h>


// FORWARD DECLARATIONS
class CPsetCustomerServiceProfile;
class CSSSettingsRefreshContainer;
class MSSSettingsRefreshHandler;


// CLASS DECLARATION

/**
*  The Refresh handler to inform refresses.
*
*  @lib PhoneSettings.lib
*  @since 2.8
*/
class CPSetRefreshHandlerImpl :
    public CPSetRefreshHandler,
    public MSSSettingsRefreshObserver
    {
    public:  // Constructors and destructor
        
        /**
        * Two-phased constructor.
        */
        static CPSetRefreshHandlerImpl* NewL();
        
        /**
        * Destructor.
        */
        virtual ~CPSetRefreshHandlerImpl();


    public: // Functions from base classes

        /**
        * @see CPSetRefreshHandler::NotifyFileChangeL.
		*/
		void NotifyFileChangeL(
            MSSSettingsRefreshObserver& aObserver,
            TSatElementaryFiles aObservedFiles,
            TSatRefreshType aObservedRefreshType );

		/**
        * @see CPSetRefreshHandler::CancelNotify.
		*/
		void CancelNotify();

        /**
        * @see CPSetRefreshHandler::ChangedCspSettings.
        */
        TInt ChangedCspSettings( 
            TPSetChangedCspSetting& aChangedCspSettings,
            TPSetChangedCspSetting& aNewValues );


    public: // Functions from base classes

		/**
        * @see MSSSettingsRefreshObserver::AllowRefresh
        */
        TBool AllowRefresh(
            const TSatRefreshType aType,
            const TSatElementaryFiles aFiles );

		/**
        * @see MSSSettingsRefreshObserver::Refresh
        */
		void Refresh(
            const TSatRefreshType aType,
            const TSatElementaryFiles aFiles );


    private:

        /**
        * C++ default constructor.
        */
        CPSetRefreshHandlerImpl();

        /**
        * By default Symbian 2nd phase constructor is private.
        */
        void ConstructL();


    private:    // Data
         
        // The Csp handler.
        CPsetCustomerServiceProfile*    iCsp;

        // The SSSettings refresh handler container.
        CSSSettingsRefreshContainer*    iSSSetRefContainer;

        // The SSSettings refresh handler.
        MSSSettingsRefreshHandler*      iSSSetRefHandler;

        // The observer for refresses
        MSSSettingsRefreshObserver*     iObserver;

    };

#endif      // CPSETREFRESHHANDLERIMPL_H 
            
// End of File