Esempio n. 1
0
void
Jabber::Roster(RosterList * roster){

	// Fix me! (Roster message can arrive at different times)
	
	BMessage serverBased(IM::SERVER_BASED_CONTACT_LIST);
	serverBased.AddString("protocol", kProtocolName);
	JabberContact* contact;
	int size = roster->CountItems();
	
	for(int i=0; i < size; i++) {
		contact = reinterpret_cast<JabberContact*>(roster->ItemAt(i));
		serverBased.AddString("id", contact->GetJid());
	}	
	fServerMsgr.SendMessage(&serverBased);		
	
	//fRostered=true;
	if(!fRostered){ //here the case when more than one roster message has arrived!
		fPerc +=0.3333;
		fRostered = true;
		Progress("Jabber Login", "Jabber: Roster", fPerc);
	}
	
	LOG(kProtocolName, liDebug, "Jabber:Login %f - Rostered",fPerc) ;
	CheckLoginStatus();
	
}
Esempio n. 2
0
void
Jabber::Agents(AgentList * agents){
	fPerc +=0.3333;
	fAgent = true;
	Progress("Jabber Login", "Jabber: Agents", fPerc);
	LOG(kProtocolName, liDebug, "Jabber:Login %f - Agents",fPerc) ;
	CheckLoginStatus();
}
Esempio n. 3
0
void
GoogleTalk::Agents(AgentList * agents){
	fPerc +=0.3333;
	fAgent = true;
	Progress("GoogleTalk Login", "GoogleTalk: Agents", fPerc);
	LOG(kProtocolName, liDebug, "GoogleTalk:Login %f - Agents",fPerc) ;
	CheckLoginStatus();
}
Esempio n. 4
0
void CSinaSvr::OnDocumentComplete(CString URL)
{
	SimpleBrowser::OnDocumentComplete(URL);

	if (GetAction() == ACT_LOGIN_SINA)
	{
		m_ActionStatus = SINA_LOGINING;
		CheckLoginStatus(URL);
		
	}

}
Esempio n. 5
0
//CALLBACK!
void
Jabber::Authorized()
{
	SetAway(false);
	
	fPerc +=0.3333;
	fAuth=true;
	Progress("Jabber Login", "Jabber: Authorized", fPerc);
	LOG(kProtocolName, liDebug, "Jabber:Login %f - Authorized",fPerc) ;
	CheckLoginStatus();
	
	JabberHandler::Authorized();
}