|
1 // Copyright (c) 2001-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 __CUNKNOWNCAPABILITY_H__ |
|
17 #define __CUNKNOWNCAPABILITY_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 |
|
21 /** The CUnknownCapability class represents the Unknown capability as defined |
|
22 by the WSP Specification, July 2001. |
|
23 */ |
|
24 //##ModelId=3C4C41B40112 |
|
25 class CUnknownCapability : public CBase |
|
26 { |
|
27 public: // Methods |
|
28 |
|
29 /** |
|
30 Static factory constructor. |
|
31 @since 7.0 |
|
32 @param aIdentifier A reference to a buffer containing the identifier |
|
33 for the capability. |
|
34 @param aValue A reference to a buffer containing the parameter |
|
35 value for the capability |
|
36 */ |
|
37 //##ModelId=3C4C41B40150 |
|
38 static CUnknownCapability* NewL(const TDesC8& aIdentifier, const TDesC8& aValue); |
|
39 |
|
40 /** |
|
41 Standard destructor |
|
42 @since 7.0 |
|
43 */ |
|
44 //##ModelId=3C4C41B4014F |
|
45 ~CUnknownCapability(); |
|
46 |
|
47 /** |
|
48 Returns the identifier for the capability. |
|
49 @since 7.0 |
|
50 @return A const reference to a buffer containing the identifier for |
|
51 the capability. |
|
52 */ |
|
53 //##ModelId=3C4C41B4014E |
|
54 inline const TDesC8& GetIdentifier() const; |
|
55 |
|
56 /** |
|
57 Returns the parameter value for the capability. |
|
58 @since 7.0 |
|
59 @return A const reference to a buffer containing the parameter value |
|
60 for the capability. |
|
61 */ |
|
62 //##ModelId=3C4C41B40147 |
|
63 inline const TDesC8& GetValue() const; |
|
64 |
|
65 private: // Methods |
|
66 |
|
67 /** |
|
68 First phase constructor |
|
69 @since 7.0 |
|
70 */ |
|
71 //##ModelId=3C4C41B40146 |
|
72 CUnknownCapability(); |
|
73 |
|
74 /** |
|
75 Second phase constructor. Does any necessary allocations |
|
76 @since 7.0 |
|
77 @param aIdentifier A reference to a buffer containing the identifier |
|
78 for the capability. |
|
79 @param aValue A reference to a buffer containing the parameter |
|
80 value for the capability |
|
81 */ |
|
82 //##ModelId=3C4C41B4013A |
|
83 void ConstructL(const TDesC8& aIdentifier, const TDesC8& aValue); |
|
84 |
|
85 private: // Attributes |
|
86 |
|
87 /** A buffer containing the pidentifier for the capability. |
|
88 */ |
|
89 //##ModelId=3C4C41B40132 |
|
90 HBufC8* iIdentifier; |
|
91 |
|
92 /** A buffer containing the parameter value for the capability. |
|
93 */ |
|
94 //##ModelId=3C4C41B40128 |
|
95 HBufC8* iValue; |
|
96 |
|
97 }; |
|
98 |
|
99 #include "CUnknownCapability.inl" |
|
100 |
|
101 #endif // __CUNKNOWNCAPABILITY_H__ |