sl@0: /* sl@0: * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: Definition of the Audio Visualization Observer class. sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #ifndef MVISUALIZATIONOBSERVER_H sl@0: #define MVISUALIZATIONOBSERVER_H sl@0: sl@0: class CVisualization; sl@0: // CLASS DECLARATION sl@0: sl@0: sl@0: class TVisualizationData sl@0: { sl@0: public: sl@0: sl@0: /** sl@0: * Constructor. sl@0: */ sl@0: TVisualizationData() { iFrequencyData = NULL, iWaveFormData = NULL; } sl@0: sl@0: TUint64 iTimeStamp; sl@0: const TArray* iFrequencyData; sl@0: const TArray* iWaveFormData; sl@0: sl@0: }; sl@0: sl@0: sl@0: /** sl@0: * Interface class to be implemented by objects that are interested in receiving notifications sl@0: * from Audio Visualization object. sl@0: * sl@0: * @since 3.0 sl@0: */ sl@0: class MVisualizationObserver sl@0: { sl@0: public: sl@0: sl@0: /** sl@0: * Invoked when the state of the visualization object has changed. sl@0: * @since 3.0 sl@0: * @param aVisualization The visualization object that changed sl@0: * @param aData The visualization data. sl@0: */ sl@0: virtual void DataChanged( const CVisualization* aVisualization, TVisualizationData aData ) = 0; sl@0: sl@0: /** sl@0: * Invoked when the visualization data rate changed. sl@0: * @since 3.0 sl@0: * @param aVisualization The visualization object that changed sl@0: * @param aData The visualization data. sl@0: */ sl@0: virtual void DataRateChanged( const CVisualization* aVisualization ) = 0; sl@0: sl@0: /** sl@0: * Invoked when the visualization frequency band count changed. sl@0: * @since 3.0 sl@0: * @param aVisualization The visualization object that changed sl@0: * @param aData The visualization data. sl@0: */ sl@0: virtual void FrequencyBandCountChanged( const CVisualization* aVisualization ) = 0; sl@0: sl@0: /** sl@0: * Invoked when the visualization is preempted. sl@0: * @since 3.0 sl@0: */ sl@0: virtual void VisualizationPreempted( ) = 0; sl@0: sl@0: /** sl@0: * Invoked when the visualization is resumed. sl@0: * @since 3.0 sl@0: */ sl@0: virtual void VisualizationResumed( ) = 0; sl@0: sl@0: /** sl@0: * Invoked when the visualization is started. sl@0: * @since 3.0 sl@0: */ sl@0: virtual void VisualizationStarted( ) = 0; sl@0: sl@0: /** sl@0: * Invoked when the visualization is stopped. sl@0: * @since 3.0 sl@0: */ sl@0: virtual void VisualizationStopped( ) = 0; sl@0: sl@0: /** sl@0: * Invoked when the visualization the waveform data length changed. sl@0: * @since 3.0 sl@0: * @param aVisualization The visualization object that changed sl@0: * @param aData The visualization data. sl@0: */ sl@0: virtual void WaveformDataLengthChanged( const CVisualization* aVisualization ) = 0; sl@0: sl@0: }; sl@0: sl@0: #endif // MVISUALIZATIONOBSERVER_H sl@0: sl@0: // End of File