|
1 /* |
|
2 * Copyright (c) 2005-2007 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: Freestyle Email application internal Central Repository handler class |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef FREESTYLEEMAILCENTRALREPOSITORYHANDLER_H |
|
19 #define FREESTYLEEMAILCENTRALREPOSITORYHANDLER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 #include <badesca.h> |
|
24 |
|
25 #include "FreestyleEmailUiConstants.h" |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CRepository; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Wrapper of Central Repository, responsible for the operations that need to access |
|
37 * the central respository. Parses data for faster use. |
|
38 * Singleton class |
|
39 * |
|
40 */ |
|
41 class CFSEmailCRHandler : public CBase |
|
42 { |
|
43 public: |
|
44 /** |
|
45 * Two-phased class constructor. |
|
46 */ |
|
47 static CFSEmailCRHandler* InstanceL(); |
|
48 |
|
49 /** |
|
50 * Destructor of CFSEmailCRHandler class. |
|
51 */ |
|
52 virtual ~CFSEmailCRHandler(); |
|
53 |
|
54 public: |
|
55 |
|
56 |
|
57 /** |
|
58 * WarnBeforeDelete |
|
59 */ |
|
60 TInt WarnBeforeDelete(); |
|
61 void SetWarnBeforeDelete( TInt aValue ); |
|
62 |
|
63 /* |
|
64 * MessageHeader |
|
65 * |
|
66 TInt MessageHeader(); |
|
67 void SetMessageHeader( TInt aValue ); |
|
68 */ |
|
69 |
|
70 /** |
|
71 * MessageListLayout |
|
72 */ |
|
73 TInt MessageListLayout(); |
|
74 void SetMessageListLayout( TInt aValue ); |
|
75 |
|
76 /** |
|
77 * BodyPreview |
|
78 */ |
|
79 TInt BodyPreview(); |
|
80 void SetBodyPreview( TInt aValue ); |
|
81 |
|
82 /** |
|
83 * TitleDividers |
|
84 */ |
|
85 TInt TitleDividers(); |
|
86 void SetTitleDividers( TInt aValue ); |
|
87 |
|
88 /** |
|
89 * DownloadNotifications |
|
90 */ |
|
91 TInt DownloadNotifications(); |
|
92 void SetDownloadNotifications( TInt aValue ); |
|
93 |
|
94 /** |
|
95 * ActiveIdle |
|
96 */ |
|
97 TInt ActiveIdle(); |
|
98 void SetActiveIdle( TInt aValue ); |
|
99 |
|
100 /** |
|
101 * Download html images |
|
102 */ |
|
103 TInt DownloadHTMLImages(); |
|
104 void SetDownloadHTMLImages( TInt aValue ); |
|
105 |
|
106 /** |
|
107 * AttachmentFileTypes enumerator returns |
|
108 * 0 = All attachment types allowed |
|
109 * 1 = user defined types |
|
110 */ |
|
111 //TInt AttachmentFileTypes(); |
|
112 //void SetAttachmentFileTypes( TInt aValue ); |
|
113 |
|
114 /** |
|
115 * AttachmentFileTypesArray |
|
116 * gives array of user defined filetypes |
|
117 */ |
|
118 //void AttachmentFileTypesArrayL( CDesCArray& aValue ); |
|
119 //void AttachmentFileTypesDes( TDes16& aValue ); |
|
120 //void SetAttachmentFileTypesDes( TDesC& aValue ); |
|
121 |
|
122 /** |
|
123 * EditorCCVisible() |
|
124 */ |
|
125 TInt EditorCCVisible(); |
|
126 void SetEditorCCVisible( TInt aValue ); |
|
127 |
|
128 /** |
|
129 * EditorBCVisible() |
|
130 */ |
|
131 TInt EditorBCVisible(); |
|
132 void SetEditorBCVisible( TInt aValue ); |
|
133 |
|
134 /** |
|
135 * Methods to get and set the parameters needed to be able to |
|
136 * create a new mailbox. These are stored in TP Wizard's central repository. |
|
137 * |
|
138 * @return KErrNone if succeeded, otherwise system wide error codes |
|
139 */ |
|
140 TInt SetupWizAccountType( TDes16& aValue ); |
|
141 //void SetSetupWizAccountType( const TDesC16& aValue ); |
|
142 |
|
143 TInt SetupWizCentrepStartKey( TDes16& aValue ); |
|
144 //void SetSetupWizCentrepStartKey( const TDesC16& aValue ); |
|
145 |
|
146 /** |
|
147 * Deletes the two central repository keys that the mailbox setup wizard |
|
148 * creates, and that are passed as parameters to plugins. |
|
149 */ |
|
150 void ClearWizardParams(); |
|
151 |
|
152 private: |
|
153 /** |
|
154 * Default class constructor. |
|
155 * Only NewL can be called |
|
156 */ |
|
157 CFSEmailCRHandler(); |
|
158 |
|
159 /** |
|
160 * Second phase class constructor. |
|
161 */ |
|
162 void ConstructL(); |
|
163 |
|
164 private: |
|
165 // Handle to Central Repository server |
|
166 CRepository* iCentralRepository; |
|
167 CRepository* iSetupWizCentRep; |
|
168 }; |
|
169 |
|
170 #endif // FREESTYLEEMAILCENTRALREPOSITORYHANDLER_H |
|
171 |
|
172 // end of file |