|
1 /* |
|
2 * Copyright (c) 2002-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: Engine for ICalViewer |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CICALENGINE_H |
|
21 #define CICALENGINE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <e32std.h> |
|
26 |
|
27 #include <bldvariant.hrh> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 |
|
31 class RFileReadStream; |
|
32 class CRichText; |
|
33 class CCalEntry; |
|
34 class MMsvAttachmentManager; |
|
35 class CMsvAttachment; |
|
36 class MAgnEntryUi; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 /** |
|
40 * Ical engine. |
|
41 * |
|
42 * @lib ICalEngine.lib |
|
43 * @since Series 60 Series31 |
|
44 */ |
|
45 NONSHARABLE_CLASS(CICalEngine) : public CBase |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 */ |
|
52 IMPORT_C static CICalEngine* NewL(); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CICalEngine(); |
|
58 |
|
59 public: // New functions |
|
60 |
|
61 /** |
|
62 * ConvertRichTextToStreamL |
|
63 * Converts ritch text object to read stream. |
|
64 * @param aBuffer input buffer |
|
65 * @param aReadStream output stream. |
|
66 * @return KErrNone if success. |
|
67 */ |
|
68 IMPORT_C TInt ConvertRichTextToStreamL( |
|
69 CRichText* aBuffer, RFileReadStream& aReadStream); |
|
70 |
|
71 /** |
|
72 * ConvertRichTextToStreamL |
|
73 * Does nothing. |
|
74 * @param aReadStream |
|
75 * @return NULL |
|
76 */ |
|
77 IMPORT_C CCalEntry* ParseStreamToCalEntryL( |
|
78 RFileReadStream& aReadStream); |
|
79 |
|
80 /** |
|
81 * ResolveAttachmentsVisibilityL |
|
82 * Does nothing. |
|
83 * @param aManager |
|
84 * @param aAttachementsArray |
|
85 * @param aBodyHasOMR |
|
86 */ |
|
87 IMPORT_C void ResolveAttachmentsVisibilityL( |
|
88 MMsvAttachmentManager& aManager, |
|
89 RPointerArray<CMsvAttachment>& aAttachementsArray, |
|
90 TBool aBodyHasOMR ); |
|
91 |
|
92 /** |
|
93 * CreateEntryUIL |
|
94 * Create new agenda entry. |
|
95 * @param aMtmId mtm type |
|
96 * @return |
|
97 */ |
|
98 IMPORT_C MAgnEntryUi* CreateEntryUIL( const TDesC8& aMtmId ); |
|
99 |
|
100 private: |
|
101 |
|
102 /** |
|
103 * C++ default constructor. |
|
104 */ |
|
105 CICalEngine(); |
|
106 |
|
107 /** |
|
108 * By default Symbian 2nd phase constructor is private. |
|
109 */ |
|
110 void ConstructL(); |
|
111 |
|
112 private: |
|
113 |
|
114 private: // Data |
|
115 |
|
116 |
|
117 }; |
|
118 |
|
119 #endif // CICALENGINE_H |
|
120 |
|
121 // End of File |