os/mm/devsoundextensions/effects/EnvReverb/EnvironmentalReverbProxy/Src/EnvironmentalReverbEventObserver.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/devsoundextensions/effects/EnvReverb/EnvironmentalReverbProxy/Src/EnvironmentalReverbEventObserver.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,99 @@
     1.4 +/*
     1.5 +* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). 
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:   Definition of the event observer class
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +
    1.23 +
    1.24 +#ifndef CENVIRONMENTALREVERBEVENTOBSERVER_H
    1.25 +#define CENVIRONMENTALREVERBEVENTOBSERVER_H
    1.26 +
    1.27 +// INCLUDES
    1.28 +#include <e32base.h>
    1.29 +#include "EnvironmentalReverbProxy.h"
    1.30 +
    1.31 +
    1.32 +// CLASS DECLARATION
    1.33 +
    1.34 +/**
    1.35 +*  EnvironmentalReverb event observer provides encapsulates a monitoring request towards the message handler.
    1.36 +*
    1.37 +*  @lib EnvironmentalReverbProxy.lib
    1.38 +*  @since 3.0
    1.39 +*/
    1.40 +class CEnvironmentalReverbEventObserver : public CActive
    1.41 +    {
    1.42 +    public: // Constructors and destructor
    1.43 +
    1.44 +        /**
    1.45 +        * Two-phased constructor.
    1.46 +        */
    1.47 +        static CEnvironmentalReverbEventObserver* NewL(TMMFMessageDestinationPckg aMessageHandler, MCustomCommand& aCustomCommand,
    1.48 +        								  		  MEnvironmentalReverbCallback& aCallback);
    1.49 +
    1.50 +        /**
    1.51 +        * Destructor.
    1.52 +        */
    1.53 +        virtual ~CEnvironmentalReverbEventObserver();
    1.54 +
    1.55 +    public: // New functions
    1.56 +
    1.57 +        /**
    1.58 +        * Start event monitoring
    1.59 +        * @since 3.0
    1.60 +        */
    1.61 +        void Start();
    1.62 +
    1.63 +       	/**
    1.64 +        * Stop event monitoring
    1.65 +        * @since 3.0
    1.66 +        */
    1.67 +        void Stop();
    1.68 +
    1.69 +
    1.70 +    private:
    1.71 +
    1.72 +        /**
    1.73 +        * C++ default constructor.
    1.74 +        */
    1.75 +        CEnvironmentalReverbEventObserver();
    1.76 +
    1.77 +        /**
    1.78 +        * By default Symbian 2nd phase constructor is private.
    1.79 +        */
    1.80 +        void ConstructL(TMMFMessageDestinationPckg aMessageHandler, MCustomCommand& aCustomCommand,
    1.81 +        				MEnvironmentalReverbCallback& aCallback);
    1.82 +
    1.83 +        void RunL();
    1.84 +
    1.85 +        void DoCancel();
    1.86 +
    1.87 +    private:
    1.88 +
    1.89 +		// Pointer to custom command utility
    1.90 +		MCustomCommand* iCustomCommand;
    1.91 +		// Message handler handle
    1.92 +		TMMFMessageDestinationPckg iMessageHandler;
    1.93 +		// EnvironmentalReverb change event Callbacks
    1.94 +		MEnvironmentalReverbCallback* iCallback;
    1.95 +		// Data package received from server
    1.96 +		TEfEnvReverbDataPckg iDataPckgFrom;
    1.97 +		//
    1.98 +		TBool iStopped;
    1.99 +	};
   1.100 +
   1.101 +#endif 		// CENVIRONMENTALREVERBEVENTOBSERVER_H
   1.102 +