19 #ifndef IPSPLGSENDOPERATION_H |
19 #ifndef IPSPLGSENDOPERATION_H |
20 #define IPSPLGSENDOPERATION_H |
20 #define IPSPLGSENDOPERATION_H |
21 |
21 |
22 #include <smtcmtm.h> |
22 #include <smtcmtm.h> |
23 #include "ipsplgcommon.h" |
23 #include "ipsplgcommon.h" |
24 #include "ipsplgonlineoperation.h" // for MIpsPlgConnectOpCallback |
24 // <qmail> |
|
25 #include "ipsplgbaseoperation.h" |
25 |
26 |
26 class CClientMtmRegistry; |
27 class CClientMtmRegistry; |
|
28 class MFSMailRequestObserver; |
|
29 // </qmail> |
27 |
30 |
28 /** |
31 /** |
29 * Class for smtp related operations |
32 * Class for smtp related operations |
30 * |
|
31 * This class encapsulates SMTP send new message and send pending messages |
|
32 * operations. |
|
33 * |
|
34 * This class requires CIpsPlgEventHandler for QueryUsrPassL method |
|
35 * for handling login problems. Because this class is exported and |
|
36 * CIpsPlgEventHandler isn`t, to avoid problems, iEventHandler is passed |
|
37 * as TAny* and can be set only from ipssosplugin. |
|
38 * |
33 * |
39 * @lib ipssosplugin.lib |
34 * @lib ipssosplugin.lib |
40 * @since FS 1.0 |
35 * @since FS 1.0 |
41 */ |
36 */ |
42 //should this class inherited from online operation |
37 // <qmail> base class changed: CMsvOperation -> CIpsPlgBaseOperation, MIpsPlgConnectOpCallback removed |
43 NONSHARABLE_CLASS( CIpsPlgSmtpOperation ) : |
38 NONSHARABLE_CLASS( CIpsPlgSmtpOperation ) : public CIpsPlgBaseOperation |
44 public CMsvOperation, |
|
45 public MIpsPlgConnectOpCallback |
|
46 { |
39 { |
47 public: //from MIpsPlgConnectOpCallback |
40 |
48 |
41 // <qmail> CredientialsSetL removed |
49 void CredientialsSetL( TInt aEvent ); |
|
50 |
42 |
51 public: |
43 public: |
52 |
44 |
53 /** |
45 /** |
54 * Symbian 2nd phase construcror |
46 * Symbian 2nd phase construcror |
55 * |
47 * |
56 * @since FS 1.0 |
48 * @since FS 1.0 |
57 * @return None |
49 * @return None |
58 */ |
50 */ |
|
51 // <qmail> aPriority, aUsePublishSubscribe parameters removed, aFSOperationObserver, aFSRequestId added |
59 IMPORT_C static CIpsPlgSmtpOperation* NewL( |
52 IMPORT_C static CIpsPlgSmtpOperation* NewL( |
60 CMsvSession& aMsvSession, |
53 CMsvSession& aMsvSession, |
61 TInt aPriority, |
|
62 TRequestStatus& aObserverRequestStatus, |
54 TRequestStatus& aObserverRequestStatus, |
63 TBool aUsePublishSubscribe ); |
55 MFSMailRequestObserver* aFSOperationObserver = NULL, |
|
56 TInt aFSRequestId = KErrNotFound ); |
64 |
57 |
65 /** |
58 /** |
66 * Symbian 2nd phase construcror |
59 * Symbian 2nd phase construcror |
67 * |
60 * |
68 * @since FS 1.0 |
61 * @since FS 1.0 |
69 * @return None |
62 * @return None |
70 */ |
63 */ |
|
64 // <qmail> aPriority, aUsePublishSubscribe parameters removed, aFSOperationObserver, aFSRequestId added |
71 IMPORT_C static CIpsPlgSmtpOperation* NewLC( |
65 IMPORT_C static CIpsPlgSmtpOperation* NewLC( |
72 CMsvSession& aMsvSession, |
66 CMsvSession& aMsvSession, |
73 TInt aPriority, |
|
74 TRequestStatus& aObserverRequestStatus, |
67 TRequestStatus& aObserverRequestStatus, |
75 TBool aUsePublishSubscribe ); |
68 MFSMailRequestObserver* aOperationObserver = NULL, |
|
69 TInt aFSRequestId = KErrNotFound ); |
76 |
70 |
77 /** |
71 /** |
78 * Class destructor |
72 * Class destructor |
79 * |
73 * |
80 * @since FS 1.0 |
74 * @since FS 1.0 |
180 * Either returns silently if everything id ok, or leaves with KErrBadName |
193 * Either returns silently if everything id ok, or leaves with KErrBadName |
181 * @param aRecipients array of addresses |
194 * @param aRecipients array of addresses |
182 */ |
195 */ |
183 void ValidateAddressArrayL( const CDesCArray& aRecipients ); |
196 void ValidateAddressArrayL( const CDesCArray& aRecipients ); |
184 |
197 |
185 /** |
198 // <qmail> QueryUserPassL() function removed |
186 * Send user password query request to CIpsPlgEventHandler |
|
187 * @return ETrue - if query send |
|
188 */ |
|
189 TBool QueryUserPassL(); |
|
190 |
|
191 private: |
199 private: |
192 |
200 |
193 CSmtpClientMtm* iSmtpMtm; |
201 CSmtpClientMtm* iSmtpMtm; |
194 CMsvOperation* iOperation; |
202 CMsvOperation* iOperation; |
195 CMsvEntrySelection* iSelection; |
203 CMsvEntrySelection* iSelection; |
196 CClientMtmRegistry* iMtmRegistry; |
204 CClientMtmRegistry* iMtmRegistry; |
197 TInt iState; |
205 TInt iState; |
198 TMsvId iSmtpService; |
206 TMsvId iSmtpService; |
199 // not owned |
207 // <qmail> |
200 TAny* iEventHandler; // pointer to CIpsPlgEventHandler |
208 MFSMailRequestObserver* iFSOperationObserver; |
|
209 TFSProgress iFSProgress; |
|
210 // </qmail> |
|
211 // not owned |
|
212 TAny* iEventHandler; // pointer to CIpsPlgEventHandler |
201 }; |
213 }; |
202 |
214 |
203 #endif /* IPSPLGSENDOPERATION_H */ |
215 #endif /* IPSPLGSENDOPERATION_H */ |