|
1 // Copyright (c) 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 __AGMCALENDARINFO_H__ |
|
17 #define __AGMCALENDARINFO_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <e32hashtab.h> |
|
21 |
|
22 #include "calcalendarinfo.h" |
|
23 |
|
24 class RReadStream; |
|
25 class RWriteStream; |
|
26 class CAgnCalendarInfoProperty; |
|
27 |
|
28 class CAgnCalendarInfo : public CBase |
|
29 { |
|
30 public: |
|
31 IMPORT_C static CAgnCalendarInfo* NewL(); |
|
32 IMPORT_C virtual ~CAgnCalendarInfo(); |
|
33 |
|
34 IMPORT_C void SetIsValid(TBool aIsValid); |
|
35 IMPORT_C TBool IsValid() const; |
|
36 |
|
37 IMPORT_C void SetFileNameL(const TDesC& aFileName); |
|
38 IMPORT_C const TDesC& FileNameL() const; |
|
39 |
|
40 IMPORT_C void SetNameL(const TDesC& aName); |
|
41 IMPORT_C const TDesC& NameL() const; |
|
42 |
|
43 IMPORT_C void SetDescriptionL(const TDesC& aDescription); |
|
44 IMPORT_C const TDesC& DescriptionL() const; |
|
45 |
|
46 IMPORT_C void SetColor(TRgb aColor); |
|
47 IMPORT_C TRgb Color() const; |
|
48 |
|
49 IMPORT_C void SetEnabled(TBool aEnabled); |
|
50 IMPORT_C TBool Enabled() const; |
|
51 |
|
52 IMPORT_C void FileInternalizeL(RReadStream& aReadStream); |
|
53 IMPORT_C void FileExternalizeL(RWriteStream& aWriteStream) const; |
|
54 |
|
55 IMPORT_C void IpcInternalizeL(RReadStream& aReadStream); |
|
56 IMPORT_C void IpcExternalizeL(RWriteStream& aWriteStream) const; |
|
57 |
|
58 IMPORT_C void ExternalizePropertiesL(CFileStore& iFileStore, const CAgnCalendarInfo* aOldCalendarInfo) const; |
|
59 |
|
60 IMPORT_C CDesC8Array* PropertyKeysL() const; |
|
61 IMPORT_C virtual const TDesC8& PropertyValueL(const TDesC8& aKey) const; |
|
62 IMPORT_C void SetPropertyL(const TDesC8& aKey, const TDesC8& aValue); |
|
63 IMPORT_C void RemovePropertyL(const TDesC8& aKey); |
|
64 |
|
65 protected: |
|
66 IMPORT_C CAgnCalendarInfo(); |
|
67 IMPORT_C void ConstructL(); |
|
68 |
|
69 protected: |
|
70 TBool iIsValid; |
|
71 HBufC* iFileName; |
|
72 HBufC* iName; |
|
73 HBufC* iDescription; |
|
74 TRgb iColor; |
|
75 TBool iEnabled; |
|
76 |
|
77 TLinearOrder<CAgnCalendarInfoProperty> iLinearOrder; |
|
78 RPointerArray<CAgnCalendarInfoProperty> iProperties; |
|
79 }; |
|
80 |
|
81 |
|
82 #endif // __AGMCALENDARINFO_H__ |