|
1 // Copyright (c) 2008-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 __CUPNPPROPERTY_H_ |
|
17 #define __CUPNPPROPERTY_H_ |
|
18 #include <e32base.h> |
|
19 #include <stringpool.h> |
|
20 |
|
21 /** Provides a mapping for the tags of an xml element and the corresponding content |
|
22 @publishedPartner |
|
23 @prototype |
|
24 */ |
|
25 class CAttribute; |
|
26 class CUPnPProperty: public CBase |
|
27 { |
|
28 protected: |
|
29 inline CUPnPProperty(); |
|
30 inline void ConstructL(); |
|
31 |
|
32 public: |
|
33 IMPORT_C void SetPropertyL(const RString aAttributeName, const TDesC8& aAttributeVal); |
|
34 IMPORT_C void SetPropertyL(const RString aAttributeName, TInt aAttributeVal); |
|
35 void SetPropertyStatus(const RString aAttributeName, TBool aStatus); |
|
36 IMPORT_C const TDesC8& Property(const RString aAttributeName) const; |
|
37 IMPORT_C virtual ~CUPnPProperty(); |
|
38 private: |
|
39 RPointerArray<CAttribute> iAttributeArray; |
|
40 friend class TAttributeIter; |
|
41 }; |
|
42 |
|
43 |
|
44 void CUPnPProperty::ConstructL() |
|
45 { |
|
46 } |
|
47 |
|
48 CUPnPProperty::CUPnPProperty() |
|
49 { |
|
50 } |
|
51 |
|
52 #endif /*CUPNPPROPERTY_H_*/ |