89
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 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: For Event view container of calendar application.
|
|
15 |
* The class derived from CCalenContainer
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef CALENEVENTVIEWCONTAINER_H
|
|
21 |
#define CALENEVENTVIEWCONTAINER_H
|
|
22 |
|
|
23 |
// system includes
|
|
24 |
|
|
25 |
// user includes
|
|
26 |
#include "calenentryutil.h"
|
|
27 |
#include "calencontainer.h"
|
|
28 |
#include <eikmenup.h>
|
|
29 |
#include <cenrepnotifyhandler.h>
|
|
30 |
#include <AknServerApp.h>
|
|
31 |
// forward declarations
|
|
32 |
class CEikRichTextEditor;
|
|
33 |
class CCalenEntryUtil;
|
|
34 |
class CCalenIconDrawer;
|
|
35 |
class CItemFinder;
|
|
36 |
class CRepository;
|
|
37 |
class CCenRepNotifyHandler;
|
|
38 |
class CFindItemMenu;
|
|
39 |
class CCalCalendarInfo;
|
|
40 |
class CCalenIconDrawer;
|
|
41 |
class CDocumentHandler;
|
|
42 |
|
|
43 |
// class declaration
|
|
44 |
/**
|
|
45 |
* CCalenEventContainer container control class for EventView.
|
|
46 |
*/
|
|
47 |
NONSHARABLE_CLASS(CCalenEventViewContainer):public CCalenContainer,
|
|
48 |
public MCenRepNotifyHandlerCallback,
|
|
49 |
public MEikScrollBarObserver,
|
|
50 |
public MAknServerAppExitObserver
|
|
51 |
{
|
|
52 |
public:
|
|
53 |
/**
|
|
54 |
* C++ constructor.
|
|
55 |
*/
|
|
56 |
CCalenEventViewContainer( CCalenNativeView* aView,
|
|
57 |
MCalenServices& aServices );
|
|
58 |
|
|
59 |
/**
|
|
60 |
* Destructor.
|
|
61 |
*/
|
|
62 |
virtual ~CCalenEventViewContainer();
|
|
63 |
|
|
64 |
private: // Functions from base classes
|
|
65 |
/**
|
|
66 |
* From CCoeControl, child control was resized.
|
|
67 |
*/
|
|
68 |
void SizeChanged();
|
|
69 |
|
|
70 |
/**
|
|
71 |
* From CCoeControl, return child control count.
|
|
72 |
* @return Control count
|
|
73 |
*/
|
|
74 |
TInt CountComponentControls() const;
|
|
75 |
|
|
76 |
/**
|
|
77 |
* From CCoeControl, return child control pointer.
|
|
78 |
* @param aIndex Child control index
|
|
79 |
* @return Child control pointer.
|
|
80 |
*/
|
|
81 |
CCoeControl* ComponentControl(TInt aIndex) const;
|
|
82 |
|
|
83 |
/**
|
|
84 |
* From CCoeControl, process key event.
|
|
85 |
* @param aKeyEvent The key event.
|
|
86 |
* @param aType EEventKey | EEventKeyUp | EEventKeyDown.
|
|
87 |
* @return EKeyWasNotConsumed : Key event was not consumed.
|
|
88 |
*/
|
|
89 |
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
|
|
90 |
TEventCode aType);
|
|
91 |
|
|
92 |
/**
|
|
93 |
* From CCoeControl, process pointer event.
|
|
94 |
*/
|
|
95 |
void HandlePointerEventL(const TPointerEvent& aPointerEvent);
|
|
96 |
|
|
97 |
/**
|
|
98 |
* From CCoeControl
|
|
99 |
*/
|
|
100 |
void Draw(const TRect& /*aRect*/) const;
|
|
101 |
|
|
102 |
/**
|
|
103 |
* Pass skin information if needed
|
|
104 |
*/
|
|
105 |
TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
|
|
106 |
|
|
107 |
/**
|
|
108 |
* From CCoeControl, Get help context.
|
|
109 |
* @param aContext Help context
|
|
110 |
*/
|
|
111 |
void GetHelpContext(TCoeHelpContext& aContext) const;
|
|
112 |
|
|
113 |
/**
|
|
114 |
* From MActiveStep, refresh EventView data.
|
|
115 |
*/
|
|
116 |
TInt DoStepL();
|
|
117 |
|
|
118 |
/**
|
|
119 |
* From CCoeControl Handles a resource relative event.
|
|
120 |
*
|
|
121 |
* @param aType The type of change that occured.
|
|
122 |
*/
|
|
123 |
void HandleResourceChange(TInt aType);
|
|
124 |
|
|
125 |
|
|
126 |
private: // From CCalenContainer
|
|
127 |
/**
|
|
128 |
* From CCalenContainer Third phase constructor.
|
|
129 |
* This function was called CCalenView::ConstructL().
|
|
130 |
*/
|
|
131 |
void ConstructImplL();
|
|
132 |
|
|
133 |
/**
|
|
134 |
* From CCalenContainer.
|
|
135 |
* This methods is called after calendar settings have changed.
|
|
136 |
*/
|
|
137 |
void UpdateSize();
|
|
138 |
|
|
139 |
/**
|
|
140 |
* Create icon index
|
|
141 |
*/
|
|
142 |
void CreateIconIndicesL( RArray<MCalenServices::TCalenIcons>& aIndexArray );
|
|
143 |
|
|
144 |
|
|
145 |
/**
|
|
146 |
* This method is called after pointer event in Navi
|
|
147 |
* decoration object.
|
|
148 |
* @param aDirection right or left
|
|
149 |
*/
|
|
150 |
void HandleNaviDecoratorEventL(TInt aEventID);
|
|
151 |
|
|
152 |
void HandleLongTapEventL( const TPoint& aPenEventLocation,
|
|
153 |
const TPoint& aPenEventScreenLocation );
|
|
154 |
|
|
155 |
|
|
156 |
public: // from MAknServerAppExitObserver
|
|
157 |
|
|
158 |
/**
|
|
159 |
* Handle the exit of a connected server app.
|
|
160 |
* This implementation provides S60 default behavior
|
|
161 |
* for handling of the EAknCmdExit exit code. Derived classes
|
|
162 |
* should base-call this implementation if they override this
|
|
163 |
* function.
|
|
164 |
*
|
|
165 |
* @since S60 5.0
|
|
166 |
*
|
|
167 |
* @param aReason The reason that the server application exited.
|
|
168 |
* This will either be an error code, or the command id that caused
|
|
169 |
* the server app to exit.
|
|
170 |
*/
|
|
171 |
void HandleServerAppExit( TInt aReason );
|
|
172 |
|
|
173 |
|
|
174 |
void HandleLocaleChangedL(/* TInt aReason */);
|
|
175 |
|
|
176 |
public: // New methods
|
|
177 |
|
|
178 |
CCalInstance* FindPossibleInstanceL(const TCalenInstanceId& aId,
|
|
179 |
CCalInstanceView& aInstanceView );
|
|
180 |
|
|
181 |
/**
|
|
182 |
* Build text editor
|
|
183 |
*/
|
|
184 |
void BuildTextEditorL();
|
|
185 |
|
|
186 |
/**
|
|
187 |
* Request for instance view
|
|
188 |
*/
|
|
189 |
TInt RequestInstanceViewL();
|
|
190 |
|
|
191 |
/**
|
|
192 |
* Add the data fields
|
|
193 |
*/
|
|
194 |
void AddFieldsL();
|
|
195 |
|
|
196 |
/**
|
|
197 |
* Complete population
|
|
198 |
*/
|
|
199 |
void CompletePopulationL();
|
|
200 |
|
|
201 |
/**
|
|
202 |
* Getter for titlepane
|
|
203 |
*/
|
|
204 |
TInt GetTitleTextId();
|
|
205 |
|
|
206 |
/**
|
|
207 |
* Getter for event view data
|
|
208 |
*/
|
|
209 |
CCalenEntryUtil* GetEventViewData();
|
|
210 |
|
|
211 |
/**
|
|
212 |
* Complete a todo entry
|
|
213 |
*/
|
|
214 |
void OnCmdCompleteTaskL();
|
|
215 |
|
|
216 |
/**
|
|
217 |
* Restore a todo entry
|
|
218 |
*/
|
|
219 |
void OnCmdRestoreTaskL();
|
|
220 |
/**
|
|
221 |
* Get item finder
|
|
222 |
*/
|
|
223 |
CItemFinder* GetItemFinder();
|
|
224 |
/**
|
|
225 |
* Get find item menu
|
|
226 |
*/
|
|
227 |
CFindItemMenu* GetFindItemMenu();
|
|
228 |
|
|
229 |
/**
|
|
230 |
* Returns ETrue if event has geo coordinates else EFalse
|
|
231 |
*/
|
|
232 |
TBool IsEventHasMapLocationL();
|
|
233 |
|
|
234 |
/**
|
|
235 |
* Returns ETrue if event has location text else EFalse
|
|
236 |
*/
|
|
237 |
TBool IsEventHasNoLocationTextL();
|
|
238 |
|
|
239 |
/**
|
|
240 |
* Find a phone number in the form
|
|
241 |
*/
|
|
242 |
void OnCmdFindPhoneNumL();
|
|
243 |
|
|
244 |
/**
|
|
245 |
* Find an email address in the form
|
|
246 |
*/
|
|
247 |
void OnCmdFindEmailL();
|
|
248 |
|
|
249 |
/**
|
|
250 |
* Find a URL in the form
|
|
251 |
*/
|
|
252 |
void OnCmdFindUrlL();
|
|
253 |
|
|
254 |
|
|
255 |
private:
|
|
256 |
|
|
257 |
/**
|
|
258 |
* Set the layout data for LAF
|
|
259 |
*/
|
|
260 |
void SetLayoutFromLookAndFeelL();
|
|
261 |
|
|
262 |
/**
|
|
263 |
* Convert values from twips to pixels
|
|
264 |
*/
|
|
265 |
TInt PixelsToTwips(TInt aPixels);
|
|
266 |
|
|
267 |
/**
|
|
268 |
* Set up the Font style
|
|
269 |
*/
|
|
270 |
void SetupFontL();
|
|
271 |
|
|
272 |
/**
|
|
273 |
* Creates and initiliazes the icon drawer
|
|
274 |
* Returns the newly created pointer to the object of CCalenIconDrawer
|
|
275 |
*/
|
|
276 |
CCalenIconDrawer* CreateAndInitializeIconsDrawerL();
|
|
277 |
|
|
278 |
/**
|
|
279 |
* Set the icons
|
|
280 |
*/
|
|
281 |
void SetIconsL(CCalenIconDrawer* aIconDrawer);
|
|
282 |
|
|
283 |
/**
|
|
284 |
* Populate the icon drawer with the icons for this entry
|
|
285 |
*/
|
|
286 |
void PopulateIconDrawerL( CCalenIconDrawer& aIconDrawer );
|
|
287 |
|
|
288 |
/**
|
|
289 |
* Formats the heading and adds it the the view
|
|
290 |
* Headings are bolded with no indentation.
|
|
291 |
*/
|
|
292 |
void SetFormatAndAddHeadingL( const TDesC& aHeading );
|
|
293 |
|
|
294 |
/**
|
|
295 |
* Formats the body and adds it the the view
|
|
296 |
* Body text is not bolded and indented from the leading margin
|
|
297 |
* according to the Calendar viewer LAF
|
|
298 |
*/
|
|
299 |
void SetFormatAndAddBodyL( const TDesC& aBody );
|
|
300 |
|
|
301 |
/**
|
|
302 |
* Formats the text and adds it to the view
|
|
303 |
*/
|
|
304 |
void AddFormattedTextL( const TDesC& aText );
|
|
305 |
|
|
306 |
/**
|
|
307 |
* Add a text field to the view.
|
|
308 |
*/
|
|
309 |
void AddTextFieldL( TInt aHeadingResource, const TDesC& aBody );
|
|
310 |
|
|
311 |
/**
|
|
312 |
* Add a text field to the view.
|
|
313 |
*/
|
|
314 |
void AddTextFieldL( TInt aHeadingResource, TInt aBodyResource );
|
|
315 |
|
|
316 |
/**
|
|
317 |
* Add a empty line to the view.
|
|
318 |
*/
|
|
319 |
void AddEmptyLineL();
|
|
320 |
|
|
321 |
/**
|
|
322 |
* Add a subject field to the view.
|
|
323 |
*/
|
|
324 |
void AddSubjectFieldL();
|
|
325 |
|
|
326 |
/**
|
|
327 |
* Add a location field to the view.
|
|
328 |
*/
|
|
329 |
void AddLocationFieldL();
|
|
330 |
|
|
331 |
/**
|
|
332 |
* Add a priority field to the form.
|
|
333 |
*/
|
|
334 |
void AddPriorityFieldL();
|
|
335 |
|
|
336 |
/**
|
|
337 |
* Add a time field to the form.
|
|
338 |
*/
|
|
339 |
void AddTimeFieldL( TInt aHeadingResource, const TTime& aTime );
|
|
340 |
|
|
341 |
/**
|
|
342 |
* Add a date field to the form.
|
|
343 |
*/
|
|
344 |
void AddDateFieldL( const TTime& aDate );
|
|
345 |
|
|
346 |
/**
|
|
347 |
* Add a date field to the form.
|
|
348 |
*/
|
|
349 |
void AddDateFieldL( TInt aHeadingResource, const TTime& aDate );
|
|
350 |
|
|
351 |
/**
|
|
352 |
* Add a date field to the form.
|
|
353 |
*/
|
|
354 |
void AddDateFieldL( const TDesC& aDate );
|
|
355 |
|
|
356 |
/**
|
|
357 |
* Add a "date - date" field to the form.
|
|
358 |
*/
|
|
359 |
void AddDateDateFieldL( const TTime& aStartDate, const TTime& aEndDate );
|
|
360 |
|
|
361 |
/**
|
|
362 |
* Add an alarm date-time field to the form, in the order: DD.DD.DDDD TT:TT according to localisation.
|
|
363 |
*/
|
|
364 |
void AddAlarmDateAndTimeFieldL( const TTime& aTime );
|
|
365 |
|
|
366 |
/**
|
|
367 |
* Set alarm to form.
|
|
368 |
*/
|
|
369 |
void AddAlarmDateTimeFieldL();
|
|
370 |
|
|
371 |
/**
|
|
372 |
* Add the repeat information to the form for a recurring appointment
|
|
373 |
* @since Series 60 3.1
|
|
374 |
*/
|
|
375 |
void AddRepeatFieldL();
|
|
376 |
|
|
377 |
/**
|
|
378 |
* Add the time fields to the form
|
|
379 |
* @since Series 60 3.1
|
|
380 |
*/
|
|
381 |
void AddTimeFieldL();
|
|
382 |
|
|
383 |
/**
|
|
384 |
* Add a description to the form
|
|
385 |
* @since Series 60 3.1
|
|
386 |
*/
|
|
387 |
void AddDescriptionFieldL();
|
|
388 |
|
|
389 |
/**
|
|
390 |
* Add a since field to the form
|
|
391 |
* @since Series 60 3.1
|
|
392 |
*/
|
|
393 |
void AddSinceFieldL();
|
|
394 |
|
|
395 |
/**
|
|
396 |
* Adds the attachments names to the viewer
|
|
397 |
*/
|
|
398 |
void AddAttachmentNameL(const TDesC& aText);
|
|
399 |
|
|
400 |
/**
|
|
401 |
* Getter for min and max times
|
|
402 |
*/
|
|
403 |
void GetMinAndMaxTimesL( RArray<TCalTime>& aTimes,
|
|
404 |
TCalTime& aMinTime,
|
|
405 |
TCalTime& aMaxTime );
|
|
406 |
/**
|
|
407 |
* Remove duplicate times
|
|
408 |
*/
|
|
409 |
void RemoveDuplicateTimesL( RArray<TCalTime>& aTimes );
|
|
410 |
|
|
411 |
/**
|
|
412 |
* Remove excluded times
|
|
413 |
*/
|
|
414 |
void RemoveExcludedTimesL( RArray<TCalTime>& aStartDates,
|
|
415 |
RArray<TCalTime>& aExDates,
|
|
416 |
RPointerArray<CCalEntry>& aChildEntries );
|
|
417 |
/**
|
|
418 |
* RDate expansion stuff
|
|
419 |
*/
|
|
420 |
TBool GetSeriesRepeatInformationL( CCalEntry& aEntry,
|
|
421 |
TCalenRepeatIndex& aRepeatIndex,
|
|
422 |
TTime& aSeriesStart,
|
|
423 |
TTime& aSeriesEnd );
|
|
424 |
|
|
425 |
|
|
426 |
/**
|
|
427 |
* Check if the given text will fit in the the given width
|
|
428 |
* Used to determine if dates will wrap or not
|
|
429 |
*/
|
|
430 |
TBool TryToFitL( const TDesC& aStr, TInt aMaxWidth, const CFont& aFont );
|
|
431 |
|
|
432 |
/**
|
|
433 |
* Convert from a calendar TUint priority to a TInt for the form.
|
|
434 |
*/
|
|
435 |
TInt CalendarPriorityToFormPriority( CCalenEntryUtil::TTodoPriority aCalPriority );
|
|
436 |
|
|
437 |
/**
|
|
438 |
* Build Search Buffer
|
|
439 |
*/
|
|
440 |
void BuildSearchBufferL();
|
|
441 |
|
|
442 |
/**
|
|
443 |
* Get the text fields from the form as a descriptior.
|
|
444 |
*/
|
|
445 |
void GetTextFieldsFromFormL( TDes& aDesc );
|
|
446 |
|
|
447 |
/**
|
|
448 |
* Fetch the current entry's parent from agenda. This should be used
|
|
449 |
* sparingly as it is expensive. It may be worth seeing if there
|
|
450 |
* is any performance improvement by fetching the parent from
|
|
451 |
* CCalenDefaultViewers and passing it through to the constructor of
|
|
452 |
* the editors and viewers, instead of fetching it internally to each
|
|
453 |
* viewer/editor.
|
|
454 |
*/
|
|
455 |
CCalEntry& ParentEntryL();
|
|
456 |
|
|
457 |
/**
|
|
458 |
* Fetch all the instances of an entry from agenda. This should be used
|
|
459 |
* sparingly as it is expensive. It may be worth seeing if there
|
|
460 |
* is any performance improvement by fetching the parent from
|
|
461 |
* CCalenDefaultViewers and passing it through to the constructor of
|
|
462 |
* the editors and viewers, instead of fetching it internally to each
|
|
463 |
* viewer/editor.
|
|
464 |
*/
|
|
465 |
RPointerArray<CCalEntry>& AllInstancesL();
|
|
466 |
|
|
467 |
/**
|
|
468 |
* From MCenRepNotifyHandlerCallback
|
|
469 |
* Handles the notifier errors
|
|
470 |
* @since Series60 3.0
|
|
471 |
* @param aId, Key that has changed
|
|
472 |
* @param aNewValue, New value of the key
|
|
473 |
*/
|
|
474 |
void HandleNotifyError( TUint32 aId,TInt aError,CCenRepNotifyHandler* aHandler );
|
|
475 |
|
|
476 |
|
|
477 |
/**
|
|
478 |
* Add calendar info field to the viewer
|
|
479 |
*/
|
|
480 |
void AddCalendarInfoFieldL();
|
|
481 |
|
|
482 |
/**
|
|
483 |
* Adds the attachment field in the viewer
|
|
484 |
*/
|
|
485 |
void AddAttachmentFieldL();
|
|
486 |
|
|
487 |
/**
|
|
488 |
* Checks if user has tapped on the attahcment names and then opens the corresponding
|
|
489 |
* attachment
|
|
490 |
*/
|
|
491 |
void CheckAndOpenTappedAttachmentL(TTmPosInfo2* posInfo);
|
|
492 |
|
|
493 |
/**
|
|
494 |
* Opens the respective atatchment tapped
|
|
495 |
*/
|
|
496 |
void OpenViewerL(TInt attachmentToBeOpened);
|
|
497 |
|
|
498 |
/**
|
|
499 |
* Opens the attachment
|
|
500 |
*
|
|
501 |
* @param RFile File handler to be opened
|
|
502 |
* @param aExitObserver Exit observer that listens for exiting from the attahcment viewer
|
|
503 |
* @return None
|
|
504 |
*/
|
|
505 |
void OpenAttachmentViewerL(RFile& file, MAknServerAppExitObserver& aExitObserver);
|
|
506 |
|
|
507 |
/**
|
|
508 |
* @brief Shows or hides the toolbar. Has no effect if the toolbar is disabled
|
|
509 |
*
|
|
510 |
* @param aMakeVisible ETrue to make the toolbar visible, EFalse otherwise
|
|
511 |
*/
|
|
512 |
void SetToolbarVisibilityL( TBool aMakeVisible );
|
|
513 |
public:
|
|
514 |
|
|
515 |
/**
|
|
516 |
* From MEikScrollBarObserver: to Handle scrollbar events
|
|
517 |
* @param CEikScrollBar* : Pointer to the scrollbar
|
|
518 |
* @param TEikScrollEvent : Event on the Scrollbar
|
|
519 |
*/
|
|
520 |
void HandleScrollEventL(CEikScrollBar* aScrollBar, TEikScrollEvent aEventType);
|
|
521 |
|
|
522 |
/**
|
|
523 |
* Overridden HandleStopCommandL()from base class CCalenContainer.h
|
|
524 |
* To stop the alarm in auto snooze case.and to open the event viewer in normal mode.
|
|
525 |
*/
|
|
526 |
void HandleStopCommandL();
|
|
527 |
|
|
528 |
/*
|
|
529 |
* @brief Find calendarinfo object based on calendar name
|
|
530 |
*
|
|
531 |
* @param aName calendar filename
|
|
532 |
* @param aCalendarInfo referance for calendarinfo
|
|
533 |
* @return TBool find status
|
|
534 |
*/
|
|
535 |
static TBool CalendarInfoIdentifierL(const HBufC* aName,
|
|
536 |
const CCalCalendarInfo& aCalendarInfo);
|
|
537 |
|
|
538 |
protected:
|
|
539 |
|
|
540 |
class TTextPos
|
|
541 |
{
|
|
542 |
public:
|
|
543 |
TInt iDocStart;
|
|
544 |
TInt iDocEnd;
|
|
545 |
};
|
|
546 |
|
|
547 |
private:
|
|
548 |
|
|
549 |
HBufC* iSearchBuf; //Buffer for search text used by find api
|
|
550 |
HBufC* iTimeFormat; // buffer for the time format string
|
|
551 |
HBufC* iDateFormat; // buffer for the date format string
|
|
552 |
|
|
553 |
CParaFormat* iParaFormat; // para format for the rich text obj. owned
|
|
554 |
TParaFormatMask iParaFormatMask; // specifying validity of paraformat
|
|
555 |
|
|
556 |
TCharFormat iCharFormat; // character formating for the rich text obj
|
|
557 |
TCharFormatMask iCharFormatMask; // specifying validity of icharformat
|
|
558 |
|
|
559 |
TFontSpec iHeadingFontSpec; // font weight of heading text
|
|
560 |
TFontSpec iBodyFontSpec; // font weight of body text
|
|
561 |
|
|
562 |
const CFont* iBodyFont; // not owned
|
|
563 |
const CFont* iHeadingFont; // not owned
|
|
564 |
TInt iMaxWidth; // maximum width in pixel of text area of the rich text
|
|
565 |
TInt iHeadingIndent; // indent of the heading text measured in twips
|
|
566 |
TInt iBodyIndent; // indent of the body text measured in twips
|
|
567 |
TInt iIconDrawerWidthInPixels; // width of the icon drawer in pixels
|
|
568 |
TInt iEmptyLineHeight; // height of the empty line in twips
|
|
569 |
|
|
570 |
CEikRichTextEditor* iTextEditor; // rich text obj. owned
|
|
571 |
CAknsBasicBackgroundControlContext* iBgContext; // for skins support
|
|
572 |
|
|
573 |
CCalenEntryUtil* iEventViewData; // event view data
|
|
574 |
|
|
575 |
CCalEntry* iEntry; //entry viewed in event view
|
|
576 |
TInt iTitleTextId; // title pane text id
|
|
577 |
|
|
578 |
// The array of entries returned from FetchL(), based on the entry being edited.
|
|
579 |
// This allows retrieving of the parent entry using ParentEntryL(), which should
|
|
580 |
// be used instead of direct access to this array.
|
|
581 |
RPointerArray<CCalEntry> iFetchedEntries;
|
|
582 |
|
|
583 |
private:
|
|
584 |
CRepository* iCenRepSession; // Central Repository session
|
|
585 |
// Notifier to listen changes of offline state
|
|
586 |
CCenRepNotifyHandler* iNotifier;
|
|
587 |
TInt iTimeFieldLines; // Number of lines occupied by time field on the viewer
|
|
588 |
TBool iEmbeddedFileOpened;
|
|
589 |
CFindItemMenu* iFindMenu;
|
|
590 |
TCursorSelection iSelectedText; // Cursor selection for the text editor
|
|
591 |
TBool iLocaleChanged;
|
|
592 |
CEikLabel* iLabel;
|
|
593 |
CDocumentHandler* iDocHandler;
|
|
594 |
RArray<TTextPos> iAttachmentPosInfoArray; // Array of start and end positions of each attachment names on the viewer
|
|
595 |
|
|
596 |
/**
|
|
597 |
* True if FeatureManager is initialized.
|
|
598 |
*/
|
|
599 |
TBool iFeatMgrInitialized;
|
|
600 |
|
|
601 |
};
|
|
602 |
|
|
603 |
#endif // CALENEVENTCONTAINER_H |