|
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 interface for CAttendeeDetailsDlg. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CATTENDEE_DETAILS_DLG_H__ |
|
21 #define __CATTENDEE_DETAILS_DLG_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <akndialog.h> |
|
25 #include <caluser.h> |
|
26 |
|
27 // FORWARD DECLARATION |
|
28 class CPbkContactDetailsBaseControl; |
|
29 class CPbkContactItem; |
|
30 class CPbkContactEngine; |
|
31 class CAttendeeItem; |
|
32 class CAttendeeUiUtils; |
|
33 |
|
34 |
|
35 // CLASS DECLARATION |
|
36 /** |
|
37 * Implements AttendeeView's details dialog |
|
38 */ |
|
39 class CAttendeeDetailsDlg : public CAknDialog |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * @param aContactItem, ownership not transfered |
|
45 * @param aEngine, ownership not transfered |
|
46 * @param aAttendeeItem |
|
47 * @param aShowNaviLabel |
|
48 * @return CAttendeeDetailsDlg object |
|
49 */ |
|
50 static CAttendeeDetailsDlg * NewL( CPbkContactItem* aContactItem, |
|
51 CPbkContactEngine* aEngine, |
|
52 CCalAttendee::TCalStatus aStatus, |
|
53 TBool aShowNaviLabel ); |
|
54 |
|
55 /** |
|
56 * Two-phased constructor. |
|
57 * @param aContactItem, ownership not transfered |
|
58 * @param aEngine, ownership not transfered |
|
59 * @param aAttendeeItem |
|
60 * @param aShowNaviLabel |
|
61 * @return CAttendeeDetailsDlg object |
|
62 */ |
|
63 static CAttendeeDetailsDlg * NewLC( CPbkContactItem* aContactItem, |
|
64 CPbkContactEngine* aEngine, |
|
65 CCalAttendee::TCalStatus aStatus, |
|
66 TBool aShowNaviLabel); |
|
67 |
|
68 /** |
|
69 * Destructor. |
|
70 */ |
|
71 ~CAttendeeDetailsDlg(); |
|
72 |
|
73 private: |
|
74 /** |
|
75 * By default Symbian 2nd phase constructor is protected. |
|
76 * @param aContactItem, ownership not transfered |
|
77 * @param aEngine, ownership not transfered |
|
78 * @param aShowNaviLabel |
|
79 * @param aAttendeeItem |
|
80 */ |
|
81 void ConstructL( CPbkContactItem* aContactItem, |
|
82 CPbkContactEngine* aEngine, |
|
83 CCalAttendee::TCalStatus aStatus, |
|
84 TBool aShowNaviLabel); |
|
85 |
|
86 /** |
|
87 * C++ default constructor. |
|
88 * @return CAttendeeDetailsDlg object |
|
89 */ |
|
90 CAttendeeDetailsDlg( ); |
|
91 |
|
92 public: //From CCoeControl |
|
93 void Draw( const TRect& aRect ) const; |
|
94 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
95 TEventCode aType ); |
|
96 TInt CountComponentControls() const; |
|
97 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
98 void SizeChanged(); |
|
99 |
|
100 private: //New functions |
|
101 /** |
|
102 * Create navi label from attendee's status |
|
103 * if it is wanted. Otherwise empty label |
|
104 * is set. |
|
105 * @param aAttendeeItem |
|
106 * @param aShowNaviLabel |
|
107 */ |
|
108 void CreateNaviLabelL( CCalAttendee::TCalStatus aStatus, |
|
109 TBool aShowNaviLabel ); |
|
110 |
|
111 private: |
|
112 ///Own: |
|
113 CPbkContactDetailsBaseControl* iControl; |
|
114 |
|
115 ///Own: |
|
116 CAttendeeUiUtils* iUiUtils; |
|
117 }; |
|
118 |
|
119 #endif // __CATTENDEE_DETAILS_DLG_H__ |
|
120 |
|
121 // End of File |