|
1 /* |
|
2 * Copyright (c) 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: MR Attachment field command to save attachment |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CMRSAVEATTACHMENTCOMMAND_H |
|
19 #define CMRSAVEATTACHMENTCOMMAND_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include "cmrattachmentcommand.h" |
|
23 |
|
24 // Forward declarations |
|
25 class CCalEntry; |
|
26 class CDocumentHandler; |
|
27 |
|
28 /** |
|
29 * CMRSaveAttachmentCommand is responsible for saving attachment |
|
30 */ |
|
31 NONSHARABLE_CLASS( CMRSaveAttachmentCommand ) : |
|
32 public CMRAttachmentCommand |
|
33 { |
|
34 public: // Construction and destructors |
|
35 |
|
36 static CMRSaveAttachmentCommand* NewL( CDocumentHandler& aDocHandler ); |
|
37 ~CMRSaveAttachmentCommand(); |
|
38 |
|
39 public: // CMRAttachmentCommand |
|
40 |
|
41 void ExecuteAttachmentCommandL( |
|
42 CCalEntry& aEntry, |
|
43 TInt aAttachmentIndex ); |
|
44 |
|
45 private: // Implementation |
|
46 CMRSaveAttachmentCommand( CDocumentHandler& aDocHandler ); |
|
47 void ConstructL(); |
|
48 |
|
49 private: // Data |
|
50 /// Ref: Document handler |
|
51 CDocumentHandler& iDocHandler; |
|
52 }; |
|
53 |
|
54 #endif // CMRSAVEATTACHMENTCOMMAND_H |
|
55 |
|
56 // EOF |