|
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 #if (!defined __T_AVDTP_MEDIACODEC_CAPABILITIES_DATA_H__) |
|
20 #define __T_AVDTP_MEDIACODEC_CAPABILITIES_DATA_H__ |
|
21 |
|
22 |
|
23 class CT_AvdtpMediaCodecCapabilitiesData : public CT_AvdtpServiceCapabilityData |
|
24 { |
|
25 public: |
|
26 /** |
|
27 * Process a command read from the ini file |
|
28 * |
|
29 * @param aCommand The command to process |
|
30 * @param aSection The section in the ini containing data for the command |
|
31 * @param aAsyncErrorIndex Command index for async calls to return errors to |
|
32 * |
|
33 * @return ETrue if the command is processed |
|
34 * |
|
35 * @leave System wide error |
|
36 */ |
|
37 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
38 |
|
39 |
|
40 protected: |
|
41 /** |
|
42 * Protected constructor. First phase construction |
|
43 */ |
|
44 CT_AvdtpMediaCodecCapabilitiesData(); |
|
45 |
|
46 virtual TAvdtpServiceCapability* GetAvdtpServiceCapability() const = 0; |
|
47 |
|
48 inline void DoCmdMediaType(const TDesC& aSection); |
|
49 inline void DoCmdMediaCodecType(const TDesC& aSection); |
|
50 inline void DoCmdMinWindowSize(const TDesC& aSection); |
|
51 inline void DoCmdSetMinWindowSize(const TDesC& aSection); |
|
52 inline void AllocCodecFromPDUL(const TDesC& aSection); |
|
53 |
|
54 }; |
|
55 |
|
56 #endif /* __T_AVDTP_MEDIACODEC_CAPABILITIES_DATA_H__ */ |