|
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_HEADER_COMPRESSION_CAPABILITIES_DATA_H__) |
|
20 #define __T_AVDTP_HEADER_COMPRESSION_CAPABILITIES_DATA_H__ |
|
21 |
|
22 class TAvdtpServiceCapability; |
|
23 class TAvdtpHeaderCompressionCapabilities; |
|
24 |
|
25 class CT_AvdtpHeaderCompressionCapabilitiesData : public CT_AvdtpServiceCapabilityData |
|
26 { |
|
27 public: |
|
28 /** |
|
29 * Two phase constructor |
|
30 */ |
|
31 static CT_AvdtpHeaderCompressionCapabilitiesData* NewL(); |
|
32 |
|
33 /** |
|
34 * Public destructor |
|
35 */ |
|
36 ~CT_AvdtpHeaderCompressionCapabilitiesData(); |
|
37 |
|
38 /** |
|
39 * Process a command read from the ini file |
|
40 * |
|
41 * @param aCommand The command to process |
|
42 * @param aSection The section in the ini containing data for the command |
|
43 * @param aAsyncErrorIndex Command index for async calls to return errors to |
|
44 * |
|
45 * @return ETrue if the command is processed |
|
46 * |
|
47 * @leave System wide error |
|
48 */ |
|
49 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
50 |
|
51 /** |
|
52 * Return a pointer to the object that the data wraps |
|
53 * |
|
54 * @return pointer to the object that the data wraps |
|
55 */ |
|
56 virtual TAny* GetObject() { return iAvdtpHeaderCompressionCapabilities; } |
|
57 |
|
58 /** |
|
59 * Set the object that the data wraps |
|
60 * |
|
61 * @param aObject object that the wrapper is testing |
|
62 * |
|
63 */ |
|
64 virtual void SetObjectL(TAny* aAny); |
|
65 |
|
66 /** |
|
67 * The object will no longer be owned by this |
|
68 * |
|
69 * @leave KErrNotSupported if the the function is not supported |
|
70 */ |
|
71 virtual void DisownObjectL(); |
|
72 |
|
73 protected: |
|
74 /** |
|
75 * Protected constructor. First phase construction |
|
76 */ |
|
77 CT_AvdtpHeaderCompressionCapabilitiesData(); |
|
78 |
|
79 virtual TAvdtpServiceCapability* GetAvdtpServiceCapability() const; |
|
80 |
|
81 /** |
|
82 * Second phase construction |
|
83 */ |
|
84 void ConstructL(); |
|
85 |
|
86 private: |
|
87 /** |
|
88 * Helper methods |
|
89 */ |
|
90 void DestroyData(); |
|
91 |
|
92 inline void DoCmdnewL(); |
|
93 inline void DoCmdMedia(const TDesC& aSection); |
|
94 inline void DoCmdRecovery(const TDesC& aSection); |
|
95 inline void DoCmdBackChannel(const TDesC& aSection); |
|
96 inline void DoCmdSetCapabilities(const TDesC& aSection); |
|
97 |
|
98 private: |
|
99 TAvdtpHeaderCompressionCapabilities* iAvdtpHeaderCompressionCapabilities; |
|
100 }; |
|
101 |
|
102 #endif /* __T_AVDTP_HEADER_COMPRESSION_CAPABILITIES_DATA_H__*/ |