|
1 /* |
|
2 * Copyright (c) 2006 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 * SMTP Cancel Sending operation |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __SMTPCANCELSENDINGOP_H__ |
|
20 #define __SMTPCANCELSENDINGOP_H__ |
|
21 |
|
22 #include <ImumInternalApi.h> // CImumInternalApi |
|
23 |
|
24 #include "SelectionOperationBase.h" |
|
25 |
|
26 |
|
27 class CMsvEmailConnectionProgressProvider; |
|
28 class CMtmStore; |
|
29 |
|
30 /** |
|
31 * SMTP Cancel Sending operation |
|
32 */ |
|
33 class CSmtpCancelSendingOp : public CSelectionOperationBase |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * |
|
38 */ |
|
39 static CSmtpCancelSendingOp* NewL( |
|
40 CImumInternalApi& aMailboxApi, |
|
41 TRequestStatus& aObserverRequestStatus, |
|
42 CMsvEntrySelection* aEntrySelection ); |
|
43 |
|
44 /** |
|
45 * Destructor |
|
46 */ |
|
47 virtual ~CSmtpCancelSendingOp(); |
|
48 |
|
49 /** |
|
50 * |
|
51 */ |
|
52 virtual const TDesC8& ProgressL(); |
|
53 private: |
|
54 |
|
55 /** |
|
56 * C++ constructor |
|
57 */ |
|
58 CSmtpCancelSendingOp( |
|
59 CImumInternalApi& aMailboxApi, |
|
60 TRequestStatus& aObserverRequestStatus, |
|
61 CMsvEntrySelection* aEntrySelection ); |
|
62 |
|
63 /** |
|
64 * Symbian OS constructor |
|
65 */ |
|
66 void ConstructL(); |
|
67 |
|
68 /** |
|
69 * |
|
70 */ |
|
71 virtual CMsvOperation* CreateOperationL(TMsvId aMsvId); |
|
72 |
|
73 /** |
|
74 * |
|
75 */ |
|
76 virtual TBool StopOnError(TInt aErrorCode); |
|
77 |
|
78 /** |
|
79 * |
|
80 */ |
|
81 virtual void OpRunError(TInt aErrorCode); |
|
82 |
|
83 /** |
|
84 * |
|
85 */ |
|
86 virtual TInt CheckForError(const TDesC8& aProgress); |
|
87 |
|
88 private: // Data |
|
89 TPckgBuf<TMsvLocalOperationProgress> iProgress; |
|
90 CMsvEntry* iEntry; |
|
91 }; |
|
92 |
|
93 |
|
94 #endif |