void CachedScript::error() { m_loading = false; m_errorOccurred = true; checkNotify(); }
void CachedCSSStyleSheet::error() { m_loading = false; m_errorOccurred = true; checkNotify(); }
void CachedResource::finishLoading(SharedBuffer*) { setLoading(false); checkNotify(); }
bool ComThread::readMessage(void) { size_t size = 4096; struct anoubis_msg *msg; char *str = NULL; wxString message; achat_rc rc; if ((channel_ == 0) || (client_ == 0)) { sendComEvent(JobCtrl::ERR_RW); return (false); } if ((msg = anoubis_msg_new(size)) == 0) { sendComEvent(JobCtrl::ERR_RW); return (false); } while(1) { rc = acc_receivemsg(channel_, (char*)(msg->u.buf), &size); if (rc != ACHAT_RC_NOSPACE) break; size *= 2; if (anoubis_msg_resize(msg, size) < 0) rc = ACHAT_RC_ERROR; } if (rc != ACHAT_RC_OK) { anoubis_msg_free(msg); sendComEvent(JobCtrl::ERR_RW); return (false); } anoubis_msg_resize(msg, size); if (Debug::checkLevel(Debug::CHAT)) { anoubis_dump_str(msg, NULL, &str); Debug::chat(wxString::FromAscii(str)); free(str); } /* This will free the message. */ int result = anoubis_client_process(client_, msg); if (result < 0) { /* Error */ /* XXX CEH */ sendComEvent(JobCtrl::ERR_RW); return (false); } else if (result == 0) { /* * Message does not fit into current protocol flow. * Skip it. */ fprintf(stderr, "ComThread: Message does not fit "); fprintf(stderr, "into protocol flow, skipping...\n"); } else if (anoubis_client_hasnotifies(client_) != 0) { struct anoubis_msg *notifyMsg = NULL; bool handled; notifyMsg = anoubis_client_getnotify(client_); handled = checkNotify(notifyMsg); if (!handled) { sendNotify(notifyMsg); } } return (true); }
void CachedCSSStyleSheet::error() { setLoading(false); setErrorOccurred(true); checkNotify(); }
void CachedXBLDocument::error() { m_loading = false; m_errorOccurred = true; checkNotify(); }
void CachedXBLDocument::error() { m_loading = false; checkNotify(); }