MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / cancel

Method cancel

src/core/provider/MCAccountValidator.cpp:131–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void AccountValidator::cancel()
132{
133 if(mOperation != NULL)
134 mOperation->cancel();
135
136 if(mResolveMX != NULL)
137 mResolveMX->cancel();
138
139 if (mQueue != NULL)
140 mQueue->cancelAllOperations();
141
142 cancelDelayedPerformMethod((Object::Method) &AccountValidator::resolveMXTimeout, NULL);
143
144 MC_SAFE_RELEASE(mOperation);
145 MC_SAFE_RELEASE(mResolveMX);
146 MC_SAFE_RELEASE(mQueue);
147 if (mImapSession != NULL) {
148 mImapSession->setConnectionLogger(NULL);
149 MC_SAFE_RELEASE(mImapSession);
150 }
151 if (mPopSession != NULL) {
152 mPopSession->setConnectionLogger(NULL);
153 MC_SAFE_RELEASE(mPopSession);
154 }
155 if (mSmtpSession != NULL) {
156 mSmtpSession->setConnectionLogger(NULL);
157 MC_SAFE_RELEASE(mSmtpSession);
158 }
159
160 Operation::cancel();
161}
162
163void AccountValidator::operationFinished(Operation * op)
164{

Callers 1

resolveMXTimeoutMethod · 0.45

Calls 2

cancelAllOperationsMethod · 0.45
setConnectionLoggerMethod · 0.45

Tested by

no test coverage detected