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

Method setClientIdentity

src/async/imap/MCIMAPAsyncConnection.cpp:245–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void IMAPAsyncConnection::setClientIdentity(IMAPIdentity * identity)
246{
247 MC_SAFE_REPLACE_COPY(IMAPIdentity, mClientIdentity, identity);
248 mSession->clientIdentity()->removeAllInfos();
249 if (identity != NULL) {
250 mc_foreacharray(String, key, identity->allInfoKeys()) {
251 mSession->clientIdentity()->setInfoForKey(key, identity->infoForKey(key));
252 }
253 }
254}
255
256IMAPIdentity * IMAPAsyncConnection::clientIdentity()
257{

Callers

nothing calls this directly

Calls 6

mc_foreacharrayFunction · 0.70
removeAllInfosMethod · 0.45
clientIdentityMethod · 0.45
allInfoKeysMethod · 0.45
setInfoForKeyMethod · 0.45
infoForKeyMethod · 0.45

Tested by

no test coverage detected