|
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_MRATTACHMENT_H |
|
20 #define M_MRATTACHMENT_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <f32file.h> |
|
24 |
|
25 // Forward declaration |
|
26 class MMRInfoObject; |
|
27 |
|
28 /** |
|
29 * MMRAttachment defines interface for meeting request attachments. |
|
30 * |
|
31 * @lib FSFWCommonLib |
|
32 * @since S60 v3.1 |
|
33 */ |
|
34 class MMRAttachment |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Virtual destructor. |
|
40 */ |
|
41 virtual ~MMRAttachment() { } |
|
42 |
|
43 public: // Interface |
|
44 |
|
45 /** |
|
46 * Fetches attachment file name. |
|
47 * |
|
48 * @return attachment file name. |
|
49 * |
|
50 * @exception System wide error code. |
|
51 */ |
|
52 virtual const TDesC& AttachmentFileNameL() const = 0; |
|
53 |
|
54 /** |
|
55 * Fetches attachment size in bytes. |
|
56 * |
|
57 * @return Attachment size in bytes. |
|
58 * |
|
59 * @exception System wide error code. |
|
60 */ |
|
61 virtual TInt AttachmentSizeL() const = 0; |
|
62 |
|
63 /** |
|
64 * Fetches handle to attachment. Handle can be used for reading |
|
65 * the attachment contents. |
|
66 * |
|
67 * @return Reference to attachment file handle. |
|
68 * |
|
69 * @exception System wide error codes. |
|
70 */ |
|
71 virtual const RFile& AttachmentHandleL() const = 0; |
|
72 }; |
|
73 |
|
74 #endif // M_MRATTACHMENT_H |