|
1 /* |
|
2 * Copyright (c) 2006-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: Info popup wrapper |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CMRINFOPOPUP_H |
|
20 #define CMRINFOPOPUP_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "MMRInfoPopup.h" |
|
24 |
|
25 |
|
26 // FORWARD INCLUDES |
|
27 class CAknInfoPopupNoteController; |
|
28 class CEikonEnv; |
|
29 class CMRStringFormatter; |
|
30 class CMRMailboxUtils; |
|
31 |
|
32 /** |
|
33 * |
|
34 * ?other_description_lines |
|
35 * |
|
36 * @since Series S60 3.0 |
|
37 */ |
|
38 class CMRInfoPopup : public CBase, public MMRInfoPopup |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 */ |
|
45 static CMRInfoPopup* NewL( CEikonEnv* aEnv, |
|
46 CMRMailboxUtils& aMBoxUtils, |
|
47 const CCalEntry& aEntry, |
|
48 TBool aViewMode ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CMRInfoPopup(); |
|
54 |
|
55 protected: // protected construction |
|
56 /** |
|
57 * C++ default constructor. |
|
58 */ |
|
59 CMRInfoPopup( CEikonEnv* aEnv, |
|
60 CMRMailboxUtils& aMBoxUtils, |
|
61 TBool aViewMode ); |
|
62 |
|
63 /** |
|
64 * By default Symbian 2nd phase constructor is private. |
|
65 */ |
|
66 void ConstructL( const CCalEntry& aEntry ); |
|
67 |
|
68 public: // From MMRInfoPopup |
|
69 |
|
70 void ShowInfoPopupL(); |
|
71 |
|
72 void HideInfoPopup(); |
|
73 |
|
74 void SetMeetingValidity( TBool aIsValid ); |
|
75 |
|
76 void SetSendingStatus( TBool aIsSent ); |
|
77 |
|
78 /** |
|
79 * 0 = meeting information |
|
80 * 1 = attendee information |
|
81 */ |
|
82 void RefreshTextL( const CCalEntry& aEntry, |
|
83 TInt aRowIndex ); |
|
84 |
|
85 const TDesC& TextL(); |
|
86 |
|
87 protected: |
|
88 |
|
89 void FillWithMeetingInfoL( const CCalEntry& aEntry ); |
|
90 |
|
91 void FillWithViewerAttendeeInfoL( const CCalEntry& aEntry ); |
|
92 |
|
93 void FillWithEditorAttendeeInfoL( const CCalEntry& aEntry ); |
|
94 |
|
95 protected: // Data |
|
96 |
|
97 CMRMailboxUtils& iMBoxUtils; |
|
98 |
|
99 TBool iViewMode; |
|
100 |
|
101 TBool iIsValid; |
|
102 |
|
103 TBool iIsSent; |
|
104 |
|
105 TInt iRowIndex; |
|
106 |
|
107 CEikonEnv* iEnv; |
|
108 |
|
109 // own |
|
110 CMRStringFormatter* iStringFormatter; |
|
111 |
|
112 // own |
|
113 CAknInfoPopupNoteController* iNoteController; |
|
114 |
|
115 // own |
|
116 RBuf iBuffer; |
|
117 |
|
118 }; |
|
119 |
|
120 #endif // CMRINFOPOPUP_H |
|
121 |
|
122 // End of File |
|
123 |