Logo Search packages:      
Sourcecode: inkscape version File versions

void Pedro::XmppEventTarget::error ( char *  fmt,
  ... 
)

Send an error message to all subscribers

Print a printf()-like formatted error message

Definition at line 294 of file pedroxmpp.cpp.

References dispatchXmppEvent(), Pedro::XmppEvent::EVENT_ERROR, and Pedro::XmppEvent::setData().

Referenced by Pedro::XmppClient::createSession(), Pedro::XmppClient::inBandRegistrationNew(), Pedro::XmppConfig::read(), Pedro::XmppConfig::readFile(), Pedro::XmppClient::saslAuthenticate(), Pedro::XmppClient::saslMd5Authenticate(), and Pedro::XmppConfig::writeFile().

{
    va_list args;
    va_start(args,fmt);
    vsnprintf(targetWriteBuf, targetWriteBufLen, fmt, args);
    va_end(args) ;
    fprintf(stderr, "Error:%s\n", targetWriteBuf);
    XmppEvent evt(XmppEvent::EVENT_ERROR);
    evt.setData(targetWriteBuf);
    dispatchXmppEvent(evt);
}


Generated by  Doxygen 1.6.0   Back to index