|
1 /* |
|
2 * Copyright (c) 2002 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: MsgAttachmentModelObserver declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef INC_MSGATTACHMENTMODELOBSERVER_H |
|
21 #define INC_MSGATTACHMENTMODELOBSERVER_H |
|
22 |
|
23 // ========== INCLUDE FILES ================================ |
|
24 |
|
25 #include <f32file.h> |
|
26 #include <cmsvattachment.h> |
|
27 |
|
28 // ========== CONSTANTS ==================================== |
|
29 |
|
30 // ========== MACROS ======================================= |
|
31 |
|
32 // ========== DATA TYPES =================================== |
|
33 |
|
34 // ========== FUNCTION PROTOTYPES ========================== |
|
35 |
|
36 // ========== FORWARD DECLARATIONS ========================= |
|
37 |
|
38 class CMsgAttachmentInfo; |
|
39 |
|
40 // ========== CLASS DECLARATION ============================ |
|
41 |
|
42 /** |
|
43 * Attachment model observer. |
|
44 * |
|
45 */ |
|
46 class MMsgAttachmentModelObserver |
|
47 { |
|
48 public: |
|
49 |
|
50 enum TMsgAttachmentCommand |
|
51 { |
|
52 EMsgAttachmentAdded = 0, |
|
53 EMsgAttachmentRemoved |
|
54 }; |
|
55 |
|
56 public: |
|
57 |
|
58 /** |
|
59 * This function that is called when attachment model adds or removes |
|
60 * attachments from its list. |
|
61 * @param aCommand |
|
62 * @param aAttachmentInfo |
|
63 */ |
|
64 virtual void NotifyChanges( TMsgAttachmentCommand aCommand, CMsgAttachmentInfo* aAttachmentInfo ) = 0; |
|
65 |
|
66 /** |
|
67 * This function that is called when attachment model needs to |
|
68 * get access to an attachment file |
|
69 * @param aId Attachment id |
|
70 * @return Open (read-only) file handle |
|
71 */ |
|
72 virtual RFile GetAttachmentFileL( TMsvAttachmentId aId ) = 0; |
|
73 |
|
74 }; |
|
75 |
|
76 #endif |
|
77 |
|
78 // End of File |