31 /** |
31 /** |
32 * @param aAttaOp (callback) reference to fetch operation that created us |
32 * @param aAttaOp (callback) reference to fetch operation that created us |
33 */ |
33 */ |
34 static CIpsFetchProgReport* NewL( CIpsPlgImap4FetchAttachmentOp& aAttaOp ); |
34 static CIpsFetchProgReport* NewL( CIpsPlgImap4FetchAttachmentOp& aAttaOp ); |
35 |
35 |
|
36 // <qmail> destructor made virtual |
36 virtual ~CIpsFetchProgReport(); |
37 virtual ~CIpsFetchProgReport(); |
37 |
38 |
38 protected: // From CActive |
39 protected: // From CActive |
|
40 |
39 virtual void DoCancel(); |
41 virtual void DoCancel(); |
|
42 |
40 virtual void RunL(); |
43 virtual void RunL(); |
41 |
44 |
42 private: |
45 private: |
43 CIpsFetchProgReport( CIpsPlgImap4FetchAttachmentOp& aAttaOp ); |
46 CIpsFetchProgReport( CIpsPlgImap4FetchAttachmentOp& aAttaOp ); |
44 void ConstructL(); |
47 void ConstructL(); |
69 * @param aFSMailBoxId specifies mailbox |
72 * @param aFSMailBoxId specifies mailbox |
70 * @param aFSOperationObserver observes the progress of this operation |
73 * @param aFSOperationObserver observes the progress of this operation |
71 * @param aFSRequestId identifier for this instance of operation, assigned by the client |
74 * @param aFSRequestId identifier for this instance of operation, assigned by the client |
72 * @return CIpsPlgImap4FetchAttachmentOp* self pointer |
75 * @return CIpsPlgImap4FetchAttachmentOp* self pointer |
73 */ |
76 */ |
|
77 // <qmail> CMsvEntrySelection& changed to pointer, aFunctionId removed |
|
78 // <qmail> MFSMailRequestObserver& changed to pointer |
74 static CIpsPlgImap4FetchAttachmentOp* NewL( |
79 static CIpsPlgImap4FetchAttachmentOp* NewL( |
75 CMsvSession& aMsvSession, |
80 CMsvSession& aMsvSession, |
76 TRequestStatus& aObserverRequestStatus, |
81 TRequestStatus& aObserverRequestStatus, |
77 TMsvId aService, |
82 TMsvId aService, |
78 CIpsPlgTimerOperation& aActivityTimer, |
83 CIpsPlgTimerOperation& aActivityTimer, |
79 const CMsvEntrySelection* aSelection, |
84 const CMsvEntrySelection* aSelection, |
80 TFSMailMsgId aFSMailBoxId, |
85 TFSMailMsgId aFSMailBoxId, |
81 MFSMailRequestObserver* aFSOperationObserver, |
86 MFSMailRequestObserver* aFSOperationObserver, |
82 TInt aFSRequestId ); |
87 TInt aFSRequestId ); |
83 |
88 |
|
89 /** |
|
90 * ~CIpsPlgImap4FetchAttachmentOp() |
|
91 * destructor |
|
92 */ |
84 virtual ~CIpsPlgImap4FetchAttachmentOp(); |
93 virtual ~CIpsPlgImap4FetchAttachmentOp(); |
85 |
94 |
86 /** |
95 /** |
87 * From MsvOperation |
96 * From MsvOperation |
88 * Gets information on the progress of the operation |
97 * Gets information on the progress of the operation |
97 const TDesC8& GetErrorProgressL( TInt aError ); |
106 const TDesC8& GetErrorProgressL( TInt aError ); |
98 |
107 |
99 TFSProgress GetFSProgressL() const; |
108 TFSProgress GetFSProgressL() const; |
100 |
109 |
101 private: |
110 private: |
|
111 // <qmail> CMsvEntrySelection& changed to pointer, aFunctionId removed |
|
112 // <qmail> MFSMailRequestObserver& changed to pointer |
102 CIpsPlgImap4FetchAttachmentOp( |
113 CIpsPlgImap4FetchAttachmentOp( |
103 CMsvSession& aMsvSession, |
114 CMsvSession& aMsvSession, |
104 TRequestStatus& aObserverRequestStatus, |
115 TRequestStatus& aObserverRequestStatus, |
105 TMsvId aService, |
116 TMsvId aService, |
106 CIpsPlgTimerOperation& aActivityTimer, |
117 CIpsPlgTimerOperation& aActivityTimer, |
133 */ |
144 */ |
134 TIpsOpType IpsOpType() const; |
145 TIpsOpType IpsOpType() const; |
135 |
146 |
136 protected: |
147 protected: |
137 |
148 |
|
149 // <qmail> GetEngineProgress removed |
138 void DoFetchAttachmentL( ); |
150 void DoFetchAttachmentL( ); |
139 |
151 |
|
152 // <qmail> |
140 private: //Data |
153 private: //Data |
141 friend class CIpsFetchProgReport; |
154 friend class CIpsFetchProgReport; |
|
155 // <qmail> |
142 |
156 |
143 // internal state of this statemachine |
157 // internal state of this statemachine |
144 enum TFetchState { |
158 enum TFetchState { |
145 EStateIdle, |
159 EStateIdle, |
146 EStateConnecting, |
160 EStateConnecting, |
147 EStateFetching, |
161 EStateFetching, |
|
162 EStateWaiting, |
148 EStateDisconnecting }; |
163 EStateDisconnecting }; |
149 TFetchState iState; |
164 TFetchState iState; |
150 |
165 |
151 const CMsvEntrySelection* iSelection; |
166 const CMsvEntrySelection* iSelection; |
152 TDesC8* iFetchErrorProgress; |
167 TDesC8* iFetchErrorProgress; |
|
168 // <qmail> iGetMailInfo, iFunctionId removed |
153 TPckgBuf<TImap4CompoundProgress> iProgress; |
169 TPckgBuf<TImap4CompoundProgress> iProgress; |
|
170 // <qmail> iService, iPopulated removed |
154 CIpsFetchProgReport* iProgReport; |
171 CIpsFetchProgReport* iProgReport; |
|
172 // Temporary fix for handling KErrServerBusy errors from the |
|
173 // messaging service. Remove these once the appropriate observer |
|
174 // mechanism has been implemented in the messaging service. |
|
175 TInt iRetryCount; |
|
176 RTimer iRetryTimer; |
155 }; |
177 }; |
156 |
178 |
157 #endif // IPSPLGIMAP4FETCHATTACHMENTOP_H |
179 #endif // IPSPLGIMAP4FETCHATTACHMENTOP_H |