|
1 #ifndef ICALPROPERTYPARAM_H |
|
2 #define ICALPROPERTYPARAM_H/* |
|
3 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
4 * All rights reserved. |
|
5 * This component and the accompanying materials are made available |
|
6 * under the terms of "Eclipse Public License v1.0" |
|
7 * which accompanies this distribution, and is available |
|
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 * |
|
10 * Initial Contributors: |
|
11 * Nokia Corporation - initial contribution. |
|
12 * |
|
13 * Contributors: |
|
14 * |
|
15 * Description: Holds the definition of CICalPropertyParam. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // System includes |
|
22 #include <e32base.h> // CBase |
|
23 |
|
24 // Forward declarations. |
|
25 class CICalValue; |
|
26 class CICalContentLineWriter; |
|
27 |
|
28 /** |
|
29 Class representing a property parameter. |
|
30 @publishedPartner |
|
31 */ |
|
32 class CICalPropertyParam : public CBase |
|
33 { |
|
34 public: // Construction/destruction. |
|
35 IMPORT_C static CICalPropertyParam* NewL(const TDesC& aType, CICalValue* aValue); |
|
36 IMPORT_C static CICalPropertyParam* NewLC(const TDesC& aType, CICalValue* aValue); |
|
37 |
|
38 IMPORT_C static CICalPropertyParam* NewL(const TDesC& aType, const TDesC& aValue); |
|
39 IMPORT_C static CICalPropertyParam* NewLC(const TDesC& aType, const TDesC& aValue); |
|
40 |
|
41 ~CICalPropertyParam(); |
|
42 |
|
43 // Non-exported constructor. |
|
44 static CICalPropertyParam* NewLC(); |
|
45 |
|
46 public: // Methods |
|
47 IMPORT_C void AddValueL(const TDesC& aValue); |
|
48 IMPORT_C void AddValueL(CICalValue* aValue); |
|
49 IMPORT_C const TDesC& Type() const; |
|
50 IMPORT_C const RPointerArray<CICalValue>& Values() const; |
|
51 |
|
52 void SetTypeL(const TDesC& aType); |
|
53 void ExternalizeL(CICalContentLineWriter& aWriter); |
|
54 static TBool EqualsL(const CICalPropertyParam& aParam1, const CICalPropertyParam& aParam2); |
|
55 |
|
56 private: // Construction. |
|
57 CICalPropertyParam(); |
|
58 CICalPropertyParam(CICalValue* aValue); |
|
59 void ConstructL(const TDesC& aType); |
|
60 void ConstructL(const TDesC& aType, const TDesC& aValue); |
|
61 void ConstructL(const TDesC& aType, CICalValue* aValue); |
|
62 |
|
63 private: // Attributes. |
|
64 HBufC* iType; |
|
65 CICalValue* iValue; |
|
66 RPointerArray<CICalValue> iValues; |
|
67 }; |
|
68 |
|
69 #endif // ICALPROPERTYPARAM_H |
|
70 |
|
71 // End of File |