void handleConnected() { // Request the roster GetRosterRequest::ref rosterRequest = GetRosterRequest::create(client->getIQRouter()); rosterRequest->onResponse.connect( bind(&EchoBot::handleRosterReceived, this, _2)); rosterRequest->send(); }
void XMPPMsgReactor::handleConnected() { // Request the roster GetRosterRequest::ref rosterRequest = GetRosterRequest::create(m_pClient->getIQRouter()); rosterRequest->onResponse.connect(bind(&XMPPMsgReactor::handleRosterReceived, this, _2)); m_pClient->getRoster()->onJIDAdded.connect(boost::bind(&XMPPMsgReactor::handleOnJIDAdded, this, _1)); rosterRequest->send(); m_pClient->requestRoster(); AfxGetApp()->PostThreadMessage(EVT_CONNECTED, 0, 0); }
void XMPPRosterController::requestRoster() { xmppRoster_->clear(); GetRosterRequest::ref rosterRequest = GetRosterRequest::create(iqRouter_); rosterRequest->onResponse.connect(boost::bind(&XMPPRosterController::handleRosterReceived, this, _1, true)); rosterRequest->send(); }
void handleConnected() { GetRosterRequest::ref rosterRequest = GetRosterRequest::create(client->getIQRouter()); rosterRequest->onResponse.connect(boost::bind(&handleRosterReceived, _1)); rosterRequest->send(); }