os/mm/devsoundextensions/effects/EnvReverb/EnvironmentalReverbProxy/Src/EnvironmentalReverbEventObserver.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). 
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description:   Definition of the event observer class
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
sl@0
    19
sl@0
    20
sl@0
    21
#ifndef CENVIRONMENTALREVERBEVENTOBSERVER_H
sl@0
    22
#define CENVIRONMENTALREVERBEVENTOBSERVER_H
sl@0
    23
sl@0
    24
// INCLUDES
sl@0
    25
#include <e32base.h>
sl@0
    26
#include "EnvironmentalReverbProxy.h"
sl@0
    27
sl@0
    28
sl@0
    29
// CLASS DECLARATION
sl@0
    30
sl@0
    31
/**
sl@0
    32
*  EnvironmentalReverb event observer provides encapsulates a monitoring request towards the message handler.
sl@0
    33
*
sl@0
    34
*  @lib EnvironmentalReverbProxy.lib
sl@0
    35
*  @since 3.0
sl@0
    36
*/
sl@0
    37
class CEnvironmentalReverbEventObserver : public CActive
sl@0
    38
    {
sl@0
    39
    public: // Constructors and destructor
sl@0
    40
sl@0
    41
        /**
sl@0
    42
        * Two-phased constructor.
sl@0
    43
        */
sl@0
    44
        static CEnvironmentalReverbEventObserver* NewL(TMMFMessageDestinationPckg aMessageHandler, MCustomCommand& aCustomCommand,
sl@0
    45
        								  		  MEnvironmentalReverbCallback& aCallback);
sl@0
    46
sl@0
    47
        /**
sl@0
    48
        * Destructor.
sl@0
    49
        */
sl@0
    50
        virtual ~CEnvironmentalReverbEventObserver();
sl@0
    51
sl@0
    52
    public: // New functions
sl@0
    53
sl@0
    54
        /**
sl@0
    55
        * Start event monitoring
sl@0
    56
        * @since 3.0
sl@0
    57
        */
sl@0
    58
        void Start();
sl@0
    59
sl@0
    60
       	/**
sl@0
    61
        * Stop event monitoring
sl@0
    62
        * @since 3.0
sl@0
    63
        */
sl@0
    64
        void Stop();
sl@0
    65
sl@0
    66
sl@0
    67
    private:
sl@0
    68
sl@0
    69
        /**
sl@0
    70
        * C++ default constructor.
sl@0
    71
        */
sl@0
    72
        CEnvironmentalReverbEventObserver();
sl@0
    73
sl@0
    74
        /**
sl@0
    75
        * By default Symbian 2nd phase constructor is private.
sl@0
    76
        */
sl@0
    77
        void ConstructL(TMMFMessageDestinationPckg aMessageHandler, MCustomCommand& aCustomCommand,
sl@0
    78
        				MEnvironmentalReverbCallback& aCallback);
sl@0
    79
sl@0
    80
        void RunL();
sl@0
    81
sl@0
    82
        void DoCancel();
sl@0
    83
sl@0
    84
    private:
sl@0
    85
sl@0
    86
		// Pointer to custom command utility
sl@0
    87
		MCustomCommand* iCustomCommand;
sl@0
    88
		// Message handler handle
sl@0
    89
		TMMFMessageDestinationPckg iMessageHandler;
sl@0
    90
		// EnvironmentalReverb change event Callbacks
sl@0
    91
		MEnvironmentalReverbCallback* iCallback;
sl@0
    92
		// Data package received from server
sl@0
    93
		TEfEnvReverbDataPckg iDataPckgFrom;
sl@0
    94
		//
sl@0
    95
		TBool iStopped;
sl@0
    96
	};
sl@0
    97
sl@0
    98
#endif 		// CENVIRONMENTALREVERBEVENTOBSERVER_H
sl@0
    99