|
1 /** @file |
|
2 * Copyright (c) 2005-2006 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: Declares the CUpnpDevice class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CUPNPDESCRIPTIONPROPERTY_H |
|
20 #define C_CUPNPDESCRIPTIONPROPERTY_H |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include <badesca.h> |
|
26 #include <f32file.h> |
|
27 #include <s32file.h> |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class TUpnpDevice; |
|
32 class TUpnpService; |
|
33 class CUpnpIcon; |
|
34 |
|
35 |
|
36 // CLASS DECLARATION |
|
37 /** |
|
38 * This class stores properties of a device, like: manufacturer, UDN and so on. |
|
39 * @lib serviceframework.lib |
|
40 * @since Series60 3.2 |
|
41 */ |
|
42 |
|
43 class CUpnpDescriptionProperty: public CBase |
|
44 { |
|
45 public: |
|
46 |
|
47 /** |
|
48 * Two-phased constructor. |
|
49 * @since Series60 3.2 |
|
50 * @param aName new property name |
|
51 * @param aValue new property value |
|
52 */ |
|
53 static CUpnpDescriptionProperty* NewL( const TDesC8& aName, const TDesC8& aValue ); |
|
54 |
|
55 /** |
|
56 * Two-phased constructor. |
|
57 * @since Series60 3.2 |
|
58 */ |
|
59 static CUpnpDescriptionProperty* NewL(); |
|
60 |
|
61 /** |
|
62 * Default C++ constructor |
|
63 * @since Series60 3.2 |
|
64 */ |
|
65 CUpnpDescriptionProperty(); |
|
66 |
|
67 /** |
|
68 * Destructor of the class. |
|
69 * @since Series60 3.2 |
|
70 */ |
|
71 ~CUpnpDescriptionProperty(); |
|
72 |
|
73 /** |
|
74 * 2nd phase constructor |
|
75 * @since Series60 3.2 |
|
76 * @param aName new property name |
|
77 * @param aValue new property value |
|
78 */ |
|
79 void ConstructL( const TDesC8& aName, const TDesC8& aValue ); |
|
80 |
|
81 /** |
|
82 * Setter for property name |
|
83 * @since Series60 3.2 |
|
84 * @param aName new property name |
|
85 */ |
|
86 void SetNameL( const TDesC8& aName); |
|
87 |
|
88 /** |
|
89 * Setter for property value |
|
90 * @since Series60 3.2 |
|
91 * @param aValue new property value |
|
92 */ |
|
93 void SetValueL( const TDesC8& aValue ); |
|
94 |
|
95 /** |
|
96 * Getter for property name |
|
97 * @since Series60 3.2 |
|
98 * @return property name |
|
99 */ |
|
100 const TDesC8& Name(); |
|
101 |
|
102 /** |
|
103 * Getter for property value |
|
104 * @since Series60 3.2 |
|
105 * @return property value |
|
106 */ |
|
107 const TDesC8& Value(); |
|
108 |
|
109 private: |
|
110 HBufC8* iName; |
|
111 HBufC8* iValue; |
|
112 }; |
|
113 |
|
114 #endif // C_CUPNPDESCRIPTIONPROPERTY_H |
|
115 |
|
116 // End of File |