equal
deleted
inserted
replaced
27 #include "cesmrviewerctrl.h" |
27 #include "cesmrviewerctrl.h" |
28 #include "caleneditorsplugin.h" |
28 #include "caleneditorsplugin.h" |
29 |
29 |
30 // From MR Mailbox Utils |
30 // From MR Mailbox Utils |
31 #include <cmrmailboxutils.h> |
31 #include <cmrmailboxutils.h> |
32 #include <CMRUtils.h> |
32 #include <cmrutils.h> |
33 |
33 |
34 // From System |
34 // From System |
35 #include <coemain.h> |
35 #include <coemain.h> |
36 #include <bautils.h> |
36 #include <bautils.h> |
37 #include <f32file.h> |
37 #include <f32file.h> |
98 const TAgnEntryUiInParams& aInParams, |
98 const TAgnEntryUiInParams& aInParams, |
99 TAgnEntryUiOutParams& aOutParams, |
99 TAgnEntryUiOutParams& aOutParams, |
100 MAgnEntryUiCallback& aCallback) |
100 MAgnEntryUiCallback& aCallback) |
101 { |
101 { |
102 FUNC_LOG; |
102 FUNC_LOG; |
103 TRAPD( err, ExecuteViewInternalL( |
103 return ExecuteViewInternalL( |
104 aEntries, |
104 aEntries, |
105 aInParams, |
105 aInParams, |
106 aOutParams, |
106 aOutParams, |
107 aCallback ) ); |
107 aCallback ); |
108 |
|
109 if ( KErrArgument == err ) |
|
110 { |
|
111 // ES MR VIEWER controller was unable to show the |
|
112 // passed meeting request. Let's launc normal meeting viewer |
|
113 // for showing the entry |
|
114 |
|
115 CCalenEditorsPlugin* editorsPlugin = CCalenEditorsPlugin::NewL(); |
|
116 CleanupStack::PushL( editorsPlugin ); |
|
117 |
|
118 err = editorsPlugin->ExecuteViewL( aEntries, |
|
119 aInParams, |
|
120 aOutParams, |
|
121 aCallback ); |
|
122 |
|
123 CleanupStack::PopAndDestroy( editorsPlugin ); |
|
124 } |
|
125 |
|
126 return err; |
|
127 } |
108 } |
128 |
109 |
129 // ---------------------------------------------------------------------------- |
110 // ---------------------------------------------------------------------------- |
130 // CESMRViewersImpl::SetHelpContext |
111 // CESMRViewersImpl::SetHelpContext |
131 // ---------------------------------------------------------------------------- |
112 // ---------------------------------------------------------------------------- |