equal
deleted
inserted
replaced
24 |
24 |
25 /** |
25 /** |
26 * Connect operation. |
26 * Connect operation. |
27 * Encapsulates connection validation. |
27 * Encapsulates connection validation. |
28 */ |
28 */ |
29 class CIpsPlgPop3ConnectOp : |
29 NONSHARABLE_CLASS ( CIpsPlgPop3ConnectOp ) : |
30 public CIpsPlgOnlineOperation, |
30 public CIpsPlgOnlineOperation, |
31 public MIpsPlgConnectOpCallback |
31 public MIpsPlgConnectOpCallback |
32 { |
32 { |
33 public://from MIpsPlgConnectOpCallback |
33 public://from MIpsPlgConnectOpCallback |
34 |
34 |
63 /** |
63 /** |
64 * |
64 * |
65 */ |
65 */ |
66 TFSProgress GetFSProgressL() const; |
66 TFSProgress GetFSProgressL() const; |
67 |
67 |
68 /** |
68 // <qmail> Connected() used from baseclass |
69 * |
|
70 */ |
|
71 TBool Connected() const; |
|
72 |
|
73 /** |
|
74 * |
|
75 */ |
|
76 virtual TInt IpsOpType() const; |
69 virtual TInt IpsOpType() const; |
77 |
70 |
78 protected: |
71 protected: |
79 |
72 |
80 /** |
73 /** |
117 /** |
110 /** |
118 * |
111 * |
119 */ |
112 */ |
120 void ConstructL(); |
113 void ConstructL(); |
121 |
114 |
|
115 // <qmail> |
122 /** |
116 /** |
123 * |
117 * Do.. functions handle certain state of this operation |
124 */ |
118 */ |
125 void DoConnectL(); |
119 void DoConnectL(); |
126 |
|
127 /** |
|
128 * |
|
129 * |
|
130 */ |
|
131 void DoPopulateL(); |
120 void DoPopulateL(); |
132 /** |
121 // <qmail> TBool ValidateL() removed (did nothing) |
133 * |
122 // <qmail> void DoQueryPasswordL() not used any more |
134 */ |
123 void DoDisconnect(); |
135 TBool ValidateL(); |
124 // </qmail> |
136 |
|
137 /** |
|
138 * |
|
139 */ |
|
140 void QueryUsrPassL(); |
|
141 |
125 |
142 |
126 // <qmail> removed flag methods as they were not used or even defined anywhere |
143 /** |
127 |
144 * |
|
145 */ |
|
146 inline void SetFlag(TUint32 aFlag); |
|
147 |
|
148 /** |
|
149 * |
|
150 */ |
|
151 inline void UnsetFlag(TUint32 aFlag); |
|
152 |
|
153 /** |
|
154 * |
|
155 */ |
|
156 inline TBool FlagIsSet(TUint32 aFlag) const; |
|
157 |
|
158 private: // Data |
128 private: // Data |
159 |
129 |
160 enum TPopConnectStates |
130 enum TPopConnectStates |
161 { |
131 { |
162 EStartConnect, |
132 EStartConnect, |
163 EConnected, |
133 EConnected, |
164 EPopulate, |
134 EPopulate, |
165 EQueryingDetails, |
135 // <qmail> new EDisconnecting state, removed querydetails state |
|
136 EDisconnecting, |
|
137 // </qmail> |
166 EErrInvalidDetails, |
138 EErrInvalidDetails, |
167 EIdle |
139 EIdle |
168 }; |
140 }; |
169 |
141 |
170 TInt iState; |
142 TInt iState; |
171 CMsvEntry* iEntry; |
143 CMsvEntry* iEntry; |
172 TPckgBuf<TPop3Progress> iProgress; |
144 TPckgBuf<TPop3Progress> iProgress; |
173 TInt iPopulateLimit; |
145 TInt iPopulateLimit; |
174 TBool iForcePopulate; |
146 TBool iForcePopulate; |
175 CMsvEntrySelection* iSelection; |
147 CMsvEntrySelection* iSelection; |
176 // not owned |
148 CIpsPlgEventHandler* iEventHandler; // not owned |
177 CIpsPlgEventHandler* iEventHandler; |
|
178 // set to true if connection is already exists |
|
179 TBool iAlreadyConnected; |
|
180 }; |
149 }; |
181 |
150 |
182 #endif |
151 #endif |