equal
deleted
inserted
replaced
|
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 __CATTRIBUTE_H_ |
|
17 #define __CATTRIBUTE_H_ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <stringpool.h> |
|
21 |
|
22 class CAttribute: public CBase |
|
23 { |
|
24 public: |
|
25 static CAttribute* NewL(const RString aAttributeName, const TDesC8& aAttributeVal); |
|
26 ~CAttribute(); |
|
27 |
|
28 const RString& AttributeName() const; |
|
29 const TDesC8& AttributeValue() const; |
|
30 void SetValueL(const TDesC8& aAttributeVal); |
|
31 void SetStatus(TBool aStatus); |
|
32 |
|
33 private: |
|
34 CAttribute(RString aAttributeName, const TDesC8& aAttributeVal); |
|
35 |
|
36 private: |
|
37 RString iAttributeName; |
|
38 RBuf8 iAttributeValue; |
|
39 TBool iParsedStatus; |
|
40 }; |
|
41 |
|
42 #endif /*CATTRIBUTE_H_*/ |