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

Method operationRunningStateChanged

src/async/imap/MCIMAPAsyncSession.cpp:903–925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

901}
902
903void IMAPAsyncSession::operationRunningStateChanged()
904{
905 bool isRunning = false;
906 for(unsigned int i = 0 ; i < mSessions->count() ; i ++) {
907 IMAPAsyncConnection * currentSession = (IMAPAsyncConnection *) mSessions->objectAtIndex(i);
908 if (currentSession->isQueueRunning()){
909 isRunning = true;
910 break;
911 }
912 }
913 if (mQueueRunning == isRunning) {
914 return;
915 }
916 mQueueRunning = isRunning;
917 if (mOperationQueueCallback != NULL) {
918 if (isRunning) {
919 mOperationQueueCallback->queueStartRunning();
920 }
921 else {
922 mOperationQueueCallback->queueStoppedRunning();
923 }
924 }
925}
926
927#if __APPLE__
928void IMAPAsyncSession::setDispatchQueue(dispatch_queue_t dispatchQueue)

Callers 2

queueStartRunningMethod · 0.80
queueStoppedRunningMethod · 0.80

Calls 5

objectAtIndexMethod · 0.80
isQueueRunningMethod · 0.80
queueStartRunningMethod · 0.65
queueStoppedRunningMethod · 0.65
countMethod · 0.45

Tested by

no test coverage detected