|
1 /* |
|
2 * Copyright (c) 2004 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: Implements Attendee View's engine utilities class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __ATTENDEE_ENG_UTILS_H__ |
|
21 #define __ATTENDEE_ENG_UTILS_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32def.h> |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 class CAttendeeItem; |
|
28 class CPbkContactItem; |
|
29 class CAttendeeItemList; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * Implements AttendeeView's engine utils |
|
34 */ |
|
35 class AttendeeEngUtils |
|
36 { |
|
37 public: //New functions |
|
38 /** |
|
39 * Find last required item index |
|
40 * @param aAttendees |
|
41 * @return position which is the first after organizers or requires |
|
42 */ |
|
43 static TInt FindLastRequiredItemL( CAttendeeItemList& aAttendees ); |
|
44 |
|
45 /** |
|
46 * Check if just created item is already deleted. |
|
47 * If item is already deleted, delete it from deleted list. |
|
48 * @param aItem |
|
49 * @param aDeleted |
|
50 */ |
|
51 static void CheckIfDeleted( CAttendeeItem& aItem, |
|
52 CAttendeeItemList& aDeleted ); |
|
53 |
|
54 /** |
|
55 * Compare contact item's email addresses to attendee item's |
|
56 * email address. |
|
57 * @param aContactItem |
|
58 * @param aAttendeeItem |
|
59 * @return ETrue if CAttendeeItem email address is same, else EFalse |
|
60 */ |
|
61 static TBool Compare( CPbkContactItem& aContactItem, |
|
62 CAttendeeItem& aAttendeeItem ); |
|
63 |
|
64 }; |
|
65 |
|
66 #endif // __ATTENDEE_ENG_UTILS_H__ |
|
67 |
|
68 // End of File |