31 // public MIpsPlgConnectOpCallback <qmail> not used any more |
31 // public MIpsPlgConnectOpCallback <qmail> not used any more |
32 { |
32 { |
33 // <qmail> MIpsPlgConnectOpCallback not used any more |
33 // <qmail> MIpsPlgConnectOpCallback not used any more |
34 public: |
34 public: |
35 |
35 |
36 /** |
36 /** |
37 * |
37 * NewL |
38 */ |
38 * @param aMsvSession client/server session to MsvServer |
|
39 * @param aObserverRequestStatus client status |
|
40 * @param aService serviceId of the mailbox |
|
41 * @param aForcePopulate whether to populate fetched messages |
|
42 * @param aActivityTimer mailbox specific activity timer |
|
43 * @param aFSMailBoxId specifies mailbox |
|
44 * @param aFSOperationObserver observer callback pointer |
|
45 * @param aFSRequestId client assigned identifier for the request instance |
|
46 * @param aEventHandler event handler for sending sync events |
|
47 * @return new instance of the class |
|
48 */ |
|
49 // <qmail> MFSMailRequestObserver& changed to pointer |
|
50 // <qmail> aSignallingAllowed parameter removed |
39 static CIpsPlgPop3ConnectOp* NewL( |
51 static CIpsPlgPop3ConnectOp* NewL( |
40 CMsvSession& aMsvSession, |
52 CMsvSession& aMsvSession, |
41 TRequestStatus& aObserverRequestStatus, |
53 TRequestStatus& aObserverRequestStatus, |
42 TMsvId aService, |
54 TMsvId aService, |
43 TBool aForcePopulate, |
55 TBool aForcePopulate, |
44 CIpsPlgTimerOperation& aActivityTimer, |
56 CIpsPlgTimerOperation& aActivityTimer, |
45 TFSMailMsgId aFSMailBoxId, |
57 TFSMailMsgId aFSMailBoxId, |
46 MFSMailRequestObserver* aFSOperationObserver, |
58 MFSMailRequestObserver* aFSOperationObserver, |
47 TInt aFSRequestId, |
59 TInt aFSRequestId, |
48 CIpsPlgEventHandler* aEventHandler=NULL ); |
60 CIpsPlgEventHandler* aEventHandler ); |
49 |
61 |
50 /** |
62 /** |
51 * |
63 * |
52 */ |
64 */ |
53 virtual ~CIpsPlgPop3ConnectOp(); |
65 virtual ~CIpsPlgPop3ConnectOp(); |
54 |
66 |
55 /** |
67 /** |
56 * |
68 * From CIpsPlgBaseOperation |
|
69 * For reporting if DoRunL leaves |
57 */ |
70 */ |
58 const TDesC8& GetErrorProgressL(TInt aError); |
71 const TDesC8& GetErrorProgressL(TInt aError); |
59 |
72 |
60 /** |
73 /** |
61 * |
74 * |
62 */ |
75 */ |
63 TFSProgress GetFSProgressL() const; |
76 TFSProgress GetFSProgressL() const; |
64 |
77 |
|
78 /** |
|
79 * From MsvOperation |
|
80 * Gets information on the progress of the operation |
|
81 * (see MsvOperation header) |
|
82 */ |
|
83 // <qmail> moved to 'public:'as defined so in base class |
|
84 const TDesC8& ProgressL(); |
65 // <qmail> Connected() used from baseclass |
85 // <qmail> Connected() used from baseclass |
66 |
86 |
67 // <qmail> change ret val type |
87 // <qmail> change ret val type |
68 /** |
88 /** |
69 * Returns operation type |
89 * Returns operation type |
70 */ |
90 */ |
71 TIpsOpType IpsOpType() const; |
91 TIpsOpType IpsOpType() const; |
|
92 // </qmail> |
72 |
93 |
73 protected: |
94 protected: |
74 |
95 |
75 /** |
|
76 * |
|
77 */ |
|
78 const TDesC8& ProgressL(); |
|
79 |
|
80 /** |
96 /** |
81 * |
97 * |
82 */ |
98 */ |
83 void DoCancel(); |
99 void DoCancel(); |
84 |
100 |
85 /** |
101 /** |
86 * From CActive |
102 * From CActive |
87 */ |
103 */ |
88 void DoRunL(); |
104 void DoRunL(); |
89 |
105 |
90 /** |
|
91 * |
|
92 */ |
|
93 TInt GetOperationErrorCodeL( ); |
|
94 |
|
95 private: |
106 private: |
96 |
107 |
97 /** |
108 /** |
98 * |
109 * |
99 */ |
110 */ |
|
111 // <qmail> MFSMailRequestObserver& changed to pointer |
|
112 // <qmail> aSignallingAllowed parameter removed |
100 CIpsPlgPop3ConnectOp( |
113 CIpsPlgPop3ConnectOp( |
101 CMsvSession& aMsvSession, |
114 CMsvSession& aMsvSession, |
102 TRequestStatus& aObserverRequestStatus, |
115 TRequestStatus& aObserverRequestStatus, |
103 TMsvId aServiceId, |
116 TMsvId aServiceId, |
104 TBool aForcePopulate, |
117 TBool aForcePopulate, |
117 /** |
130 /** |
118 * Do.. functions handle certain state of this operation |
131 * Do.. functions handle certain state of this operation |
119 */ |
132 */ |
120 void DoConnectL(); |
133 void DoConnectL(); |
121 void DoPopulateL(); |
134 void DoPopulateL(); |
122 // <qmail> TBool ValidateL() removed (did nothing) |
135 // <qmail> removed TBool ValidateL() (did nothing) |
123 // <qmail> void DoQueryPasswordL() not used any more |
136 // <qmail> removed void DoQueryPasswordL() not used any more |
124 void DoDisconnect(); |
137 void DoDisconnect(); |
125 // </qmail> |
138 // </qmail> |
126 |
139 |
127 // <qmail> removed flag methods as they were not used or even defined anywhere |
140 // <qmail> removed flag methods as they were not used or even defined anywhere |
128 |
141 |
|
142 // <qmail> new function |
|
143 /** |
|
144 * Reads populate limit from account's settings and converts it to member variable |
|
145 */ |
|
146 TInt GetPopulateLimitFromSettingsL(); |
129 private: // Data |
147 private: // Data |
130 |
148 |
131 enum TPopConnectStates |
149 enum TOperationState |
132 { |
150 { |
133 EStartConnect, |
151 EStartConnect, |
134 EConnected, |
152 EConnected, |
135 EPopulate, |
153 EPopulate, |
136 // <qmail> new EDisconnecting state, removed querydetails state |
154 // <qmail> removed EQueryingDetails/EQueryingDetailsBusy state |
|
155 // <qmail> new EDisconnecting state |
137 EDisconnecting, |
156 EDisconnecting, |
138 // </qmail> |
157 // <qmail> removed EErrInvalidDetails, |
139 EErrInvalidDetails, |
|
140 EIdle |
158 EIdle |
141 }; |
159 }; |
142 |
160 |
143 TInt iState; |
161 TOperationState iState; |
144 CMsvEntry* iEntry; |
162 // <qmail> removed iEntry; |
145 TPckgBuf<TPop3Progress> iProgress; |
163 TPckgBuf<TPop3Progress> iProgress; |
146 TInt iPopulateLimit; |
164 // <qmail> removed iPopulateLimit; |
147 TBool iForcePopulate; |
165 TBool iForcePopulate; |
148 CMsvEntrySelection* iSelection; |
166 // <qmail> removed iSelection; |
149 CIpsPlgEventHandler* iEventHandler; // not owned |
167 CIpsPlgEventHandler* iEventHandler; // not owned |
|
168 TBool iAlreadyConnected; |
150 }; |
169 }; |
151 |
170 |
152 #endif |
171 #endif |