|
1 /* |
|
2 * Copyright (c) 2007-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: Meeting Request Info object processor |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef M_MRINFOPROCESSOR_H |
|
20 #define M_MRINFOPROCESSOR_H |
|
21 |
|
22 #include <e32base.h> |
|
23 //<cmail> |
|
24 #include "CFSMailCommon.h" |
|
25 //</cmail> |
|
26 |
|
27 // Forward declaration |
|
28 class MMRInfoObject; |
|
29 |
|
30 /** |
|
31 * MMRInfoProcessor defines interface for processing meeting requests. |
|
32 * |
|
33 * MMRInfoProcessor contains method for responding to meeting request. |
|
34 * |
|
35 * @lib FSFWCommonLib |
|
36 * @since S60 v3.1 |
|
37 */ |
|
38 class MMRInfoProcessor |
|
39 { |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Defines response mode when replying to MR using MRINFO object. |
|
44 */ |
|
45 enum TMRInfoResponseMode |
|
46 { |
|
47 /** |
|
48 * Response message is sent to organizer |
|
49 * but no syncing os done. |
|
50 */ |
|
51 EMRInfoResponseSend, |
|
52 /** |
|
53 * Meeting request data is only synced. No |
|
54 * response message is sent to organizer. |
|
55 */ |
|
56 EMRInfoResponseSync, |
|
57 /** |
|
58 * Meeting request data is synced and response message |
|
59 * is sent to organizer. |
|
60 */ |
|
61 EMRInfoResponseSendAndSync, |
|
62 |
|
63 /** |
|
64 * Meeting Requset is removed from calendar |
|
65 */ |
|
66 EMRInfoRemoveFromCal |
|
67 }; |
|
68 |
|
69 /** |
|
70 * Virtual destructor |
|
71 */ |
|
72 virtual ~MMRInfoProcessor() { } |
|
73 |
|
74 public: // Interface |
|
75 |
|
76 /** |
|
77 * Sends response to meeting request. Response is sent to meeting |
|
78 * request organzier. MMRInfoObject' status contains the response |
|
79 * (i.e is MR accepted, tentatively accepted or declined ). |
|
80 * Caller can attach response text to response. |
|
81 * |
|
82 * @param aMessageId defines |
|
83 * @param aMeetingRequest Reference to meeting request to be sent. |
|
84 * @param aResponseText Reference to response text attached to response. |
|
85 * @exception Normal system wide error codes. |
|
86 */ |
|
87 virtual void ReplyToMeetingRequestL( |
|
88 const TFSMailMsgId& aMailBoxId, |
|
89 const TFSMailMsgId& aMessageId, |
|
90 MMRInfoObject& aMeetingRequest, |
|
91 TMRInfoResponseMode& aResponseMode, |
|
92 const TDesC& aResponseText = KNullDesC() ) = 0; |
|
93 }; |
|
94 |
|
95 #endif // M_MRINFOPROCESSOR_H |