|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef TAVSRCUTILS_H |
|
17 #define TAVSRCUTILS_H |
|
18 |
|
19 #include <e32def.h> |
|
20 #include <btsdp.h> |
|
21 #include <f32file.h> |
|
22 |
|
23 class TTavsrcUtils |
|
24 { |
|
25 public: |
|
26 // SDP helper functions |
|
27 static void RegisterSinkSDPRecordL(RSdpDatabase& aDB, TSdpServRecordHandle& aRecHandle, |
|
28 TBool aHeadphone, TBool aSpeaker,TBool aRecorder,TBool aAmp); |
|
29 static void RegisterSourceSDPRecordL(RSdpDatabase& aDB, TSdpServRecordHandle& aRecHandle, |
|
30 TBool aPlayer, TBool aMic, TBool aTuner, TBool aMixer); |
|
31 |
|
32 // User input helper functions |
|
33 static TInt GetIntFromUser(CConsoleBase& aConsole); |
|
34 static TBool GetYNFromUser(CConsoleBase& aConsole, const TDesC& aDes); |
|
35 |
|
36 static void GetDeviceAddressL(TBTDevAddr& aAddr); |
|
37 |
|
38 static TInt GetCodecSettingsFromSBCFile(RFile& aFile, TInt aPos, TInt& aChannelMode, |
|
39 TInt& aNumChannels, TInt& aNumSubbands, TInt& aBlkLen, |
|
40 TInt& aBitPool, TInt& aFreq, TInt& aAllocMethod); |
|
41 |
|
42 static TInt GetCodecSettingsFromSBCFile(const TDesC& aFileName, TInt& aChannelMode, |
|
43 TInt& aNumChannels, TInt& aNumSubbands, TInt& aBlkLen, |
|
44 TInt& aBitPool, TInt& aFreq, TInt& aAllocMethod); |
|
45 |
|
46 static TInt CEIL(TReal aX); |
|
47 }; |
|
48 |
|
49 #endif // TAVSRCUTILS_H |
|
50 |