audiostubs/devsoundextensions_stubs/inc/AudioOutputCI.h
changeset 46 e1758cbb96ac
parent 0 0ce1b5ce9557
child 9 f935d51494d1
equal deleted inserted replaced
43:e71858845f73 46:e1758cbb96ac
       
     1 /*
       
     2 * Copyright (c) 2005-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Audio Stubs -  AudioOutput CI
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef _AUDIOOUTPUTCI_H__
       
    19 #define _AUDIOOUTPUTCI_H__
       
    20 
       
    21 #include <mmfcontrollerframework.h>
       
    22 #include "AudioOutput.h"
       
    23 
       
    24 class CMMFDevSound;
       
    25 class CAudioOutputCustomInterfaceHandler;
       
    26 class CAudioOutputTimer;
       
    27 
       
    28 class CAudioOutputCI : public CAudioOutput
       
    29 	{
       
    30 	public:
       
    31 		IMPORT_C static CAudioOutputCI* NewL(CMMFDevSound& aDevSound);
       
    32 		virtual ~CAudioOutputCI();
       
    33 
       
    34 
       
    35 		virtual TAudioOutputPreference AudioOutput();
       
    36 		virtual TAudioOutputPreference DefaultAudioOutput();
       
    37 		virtual void RegisterObserverL( MAudioOutputObserver& aObserver );
       
    38 		virtual TBool SecureOutput();
       
    39 		virtual void SetAudioOutputL( TAudioOutputPreference aAudioOutput = ENoPreference );
       
    40 		virtual void SetSecureOutputL( TBool aSecure = EFalse );
       
    41 		virtual void UnregisterObserver( MAudioOutputObserver& aObserver );
       
    42 		void DefaultChanged();
       
    43 
       
    44         IMPORT_C static CAudioOutputCI* NewL();
       
    45 
       
    46 	private:
       
    47 		CAudioOutputCI(CMMFDevSound& aDevSound);
       
    48         CAudioOutputCI();
       
    49 
       
    50 	private:
       
    51 		//CMMFDevSound&							iDevSound;
       
    52         CMMFDevSound*							iDevSound;
       
    53 		TAudioOutputPreference					iOutput;
       
    54 		TBool									iSecureOutput;
       
    55 		TAudioOutputPreference					iDefault;
       
    56 		MAudioOutputObserver*					iObserver;
       
    57 		CAudioOutputTimer*						iAudioOutputTimer;
       
    58 		TInt									iCount;
       
    59 
       
    60 	};
       
    61 
       
    62 
       
    63 class CAudioOutputTimer : public CTimer
       
    64 	{
       
    65 	public:
       
    66 	CAudioOutputTimer(CAudioOutputCI* aCustomInterface);
       
    67 	~CAudioOutputTimer();
       
    68 	void RunL();
       
    69 	void DoCancel();
       
    70 
       
    71 	private:
       
    72 		CAudioOutputCI*				iCustomInterface;
       
    73 	};
       
    74 
       
    75 #endif