|
1 /* |
|
2 * Copyright (c) 2007-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CMRCMAILREMOTEATTACHMENTPLUGINATTINFOFETCHER_H |
|
19 #define CMRCMAILREMOTEATTACHMENTPLUGINATTINFOFETCHER_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <bamdesca.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class MCalRemoteAttachmentInfo; |
|
26 class CFSMailClient; |
|
27 class CFSMailBox; |
|
28 class CFSMailMessage; |
|
29 class TMRCMailRemoteAttachmentPluginURLParser; |
|
30 |
|
31 /** |
|
32 * CMRCmailRemoteAttachmentPluginAttinfoFetcher is responsible for |
|
33 * fetching attachment information from the email message. |
|
34 */ |
|
35 NONSHARABLE_CLASS( CMRCmailRemoteAttachmentPluginAttinfoFetcher ) : |
|
36 public CBase |
|
37 { |
|
38 public: // Construction and destruction |
|
39 |
|
40 /** |
|
41 * Creates and initializes new CMRCmailRemoteAttachmentPluginAttinfoFetcher |
|
42 * object. Ownership is transferred to caller. |
|
43 * |
|
44 * @param aMailClient Reference to CMAIL mail client object. |
|
45 * @return Pointer to CMRCmailRemoteAttachmentPluginAttinfoFetcher object. |
|
46 */ |
|
47 static CMRCmailRemoteAttachmentPluginAttinfoFetcher* NewL( |
|
48 CFSMailClient& aMailClient ); |
|
49 |
|
50 /** |
|
51 * C++ destructor. |
|
52 */ |
|
53 ~CMRCmailRemoteAttachmentPluginAttinfoFetcher(); |
|
54 |
|
55 public: // Interface |
|
56 |
|
57 /** |
|
58 * Fetches attachment information from the CMail email message |
|
59 */ |
|
60 void FetchAttachmentInformationL( |
|
61 MCalRemoteAttachmentInfo& aAttachmentInfo, |
|
62 MDesCArray& aAttachmentUrlArray ); |
|
63 |
|
64 private: // Implementation |
|
65 CMRCmailRemoteAttachmentPluginAttinfoFetcher( |
|
66 CFSMailClient& aMailClient ); |
|
67 void ConstructL(); |
|
68 void AddAttachmentInformationL( |
|
69 TMRCMailRemoteAttachmentPluginURLParser& aParser, |
|
70 const TDesC& aUri, |
|
71 MCalRemoteAttachmentInfo& aAttachmentInfo ); |
|
72 |
|
73 private: // Data |
|
74 /// Ref: Reference to mail client |
|
75 CFSMailClient& iMailClient; |
|
76 }; |
|
77 |
|
78 #endif // CMRCMAILREMOTEATTACHMENTPLUGINATTINFOFETCHER_H |
|
79 |
|
80 // EOF |