diff -r 33a5d2bbf6fc -r 73a1feb507fb mmsharing/livecommsui/lcui/tsrc/mustester/Stubs/mceclientstub/inc/mcespeakersink.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmsharing/livecommsui/lcui/tsrc/mustester/Stubs/mceclientstub/inc/mcespeakersink.h Tue Aug 31 15:12:07 2010 +0300 @@ -0,0 +1,130 @@ +/* +* Copyright (c) 2005 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: +* +*/ + + +#ifndef CMCESPEAKERSINK_H +#define CMCESPEAKERSINK_H + +// INCLUDES +#include +#include + +// DATA TYPES +const TMceSinkType KMceSpeakerSink = 2; + +// CLASS DECLARATION + +const TInt KMceAudioRoutePrivate = 3; +const TInt KMceAudioRoutePublic = 4; + +/** +* Class representing speaker in MCE. +* +* CMceSpeakerSink can be used to play out audio. +* +* Enable (un-mute) and Disable (mute) operations to it are considered +* to be local, so they are not signalled to remote terminal. +* +* @lib mceclient.lib +*/ +class CMceSpeakerSink: public CMceMediaSink + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + IMPORT_C static CMceSpeakerSink* NewL(); + + /** + * Two-phased constructor. + */ + IMPORT_C static CMceSpeakerSink* NewLC(); + + /** + * Destructor. + */ + IMPORT_C ~CMceSpeakerSink(); + + public: // Functions + + /** + * Enables streaming explicitly. + */ + IMPORT_C void EnableL(); + + /** + * Disables streaming explicitly. + */ + IMPORT_C void DisableL(); + + /** + * Sets volume + * @param aVolume, + */ + IMPORT_C void SetVolumeL( TInt aVolume ); + + /** + * Gets current volume + * @return value of current volume, + */ + IMPORT_C TInt VolumeL() const; + + /** + * Gets maximum volume + * @return value of mamimum volume, + */ + IMPORT_C TInt MaxVolumeL() const; + + /** + * Sets audio routing + * @param aRoute Required audio route, like KMceAudioRoutePublic. + */ + IMPORT_C void SetRoutingL( TInt aRoute ); + + /** + * Gets current audio routing. + * @return TInt Current audio routing. + */ + IMPORT_C TInt RoutingL() const; + + private: + + /** + * C++ default constructor. + */ + CMceSpeakerSink(); + + /** + * second-phase constructor + */ + void ConstructL(); + + + + + public: // stub data + + TInt iVolume; + + TInt iMaxVolume; + + TInt iAudioRouting; + + }; + +#endif