24
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-2009 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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef T_CRESTRICTEDAUDIOOUTPUTDATA_H_
|
|
20 |
#define T_CRESTRICTEDAUDIOOUTPUTDATA_H_
|
|
21 |
|
|
22 |
//User Includes
|
|
23 |
#include "DataWrapperBase.h"
|
|
24 |
|
|
25 |
//Epoc Includes
|
|
26 |
#include <restrictedaudiooutput.h>//CRestrictedAudioOutput
|
|
27 |
#include <restrictedaudiooutputmessagetypes.h>
|
|
28 |
#include <sounddevice.h>//CMMFDevSound
|
|
29 |
|
|
30 |
/**
|
|
31 |
* This class tests the CRestrictedAudioOutput API's
|
|
32 |
*/
|
|
33 |
|
|
34 |
class CT_CRestrictedAudioOutputData : public CDataWrapperBase
|
|
35 |
{
|
|
36 |
public:
|
|
37 |
~CT_CRestrictedAudioOutputData();
|
|
38 |
static CT_CRestrictedAudioOutputData* NewL();
|
|
39 |
virtual TAny* GetObject();
|
|
40 |
virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/);
|
|
41 |
|
|
42 |
private:
|
|
43 |
void DestroyData();
|
|
44 |
protected:
|
|
45 |
void DoCmdNewL(const TTEFSectionName& aSection);
|
|
46 |
void DoCmdDestructor();
|
|
47 |
void DoCmdAppendAllowedOutput(const TTEFSectionName& aSection);
|
|
48 |
void DoCmdRemoveAllowedOutput(const TTEFSectionName& aSection);
|
|
49 |
void DoCmdGetAllowedOutput(const TTEFSectionName& aSection);
|
|
50 |
void DoCmdGetAllowedOutputCount();
|
|
51 |
void DoCmdReset();
|
|
52 |
void DoCmdCommit();
|
|
53 |
|
|
54 |
private:
|
|
55 |
/**
|
|
56 |
* Wrapped object
|
|
57 |
*/
|
|
58 |
CRestrictedAudioOutput* iRestrictedAudioOutput;
|
|
59 |
/**
|
|
60 |
* Enum that contain allowed output preference
|
|
61 |
*/
|
|
62 |
static const TEnumEntryTable iEnumAllowedOutputPreference[];
|
|
63 |
};
|
|
64 |
|
|
65 |
#endif /*T_CRESTRICTEDAUDIOOUTPUTDATA_H_*/
|