Update contrib.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
20 #ifndef T_CTELEPHONYAUDIOROUTINGDATA_H_
21 #define T_CTELEPHONYAUDIOROUTINGDATA_H_
24 #include "datawrapperbase.h"
27 #include <mtelephonyaudioroutingobserver.h>//MTelephonyAudioRoutingObserver
28 #include <telephonyaudiorouting.h>//CTelephonyAudioRouting
30 * This class tests the CTelephonyAudioRouting API's
33 class CT_CTelephonyAudioRoutingData : public CDataWrapperBase, public MTelephonyAudioRoutingObserver
36 ~CT_CTelephonyAudioRoutingData();
37 static CT_CTelephonyAudioRoutingData* NewL();
38 virtual TAny* GetObject();
39 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
42 CT_CTelephonyAudioRoutingData();
48 * From MAudioOutputObserver
50 void AvailableOutputsChanged( CTelephonyAudioRouting& /*aTelephonyAudioRouting*/);
51 void OutputChanged( CTelephonyAudioRouting& /*aTelephonyAudioRouting*/);
52 void SetOutputComplete( CTelephonyAudioRouting& /*aTelephonyAudioRouting*/, TInt aError);
56 void DoCmdDestructor();
57 void DoCmdAvailableOutputs();
59 void DoCmdPreviousOutput();
60 void DoCmdSetShowNote(const TTEFSectionName& aSection);
61 void DoCmdGetShowNote();
62 void DoCmdSetOutputL(const TTEFSectionName& aSection);
68 CTelephonyAudioRouting* iTelephonyAudioRouting;
70 * Current output configured
72 CTelephonyAudioRouting::TAudioOutput iOutput;
74 * Enum for output routing
76 static const TEnumEntryTable iEnumOutput[];
79 #endif /*T_CTELEPHONYAUDIOROUTING_H_*/