예제 #1
0
//VOXOX CHANGE by Rolando - 2009.10.23 
void QtContactNetworkMenu::buildContactMenuNetwork() 
{
	QtEnumIMProtocol::IMProtocol protocol = _cWengoPhone.getCUserProfileHandler().getCUserProfile()->getCContactList().getContactQtProtocol(_contactId);

	QAction * chatAction	  = new QAction(tr("Chat"),   this);
	QAction * socialWebAction = new QAction(tr("Social"), this);
	
	SAFE_CONNECT(chatAction,      SIGNAL(triggered()), SLOT(chatButtonClicked()));
	SAFE_CONNECT(socialWebAction, SIGNAL(triggered()), SLOT(webProfileContactClicked()));
	
	if(protocol == QtEnumIMProtocol::IMProtocolVoxOx)
	{
		QAction * callWithVideo =  new QAction(tr("Call with Video"), this);
		SAFE_CONNECT(callWithVideo, SIGNAL(triggered()), SLOT(callButtonClicked()));

		QAction * editContact =  new QAction(tr("Edit Contact"), this);
		SAFE_CONNECT(editContact, SIGNAL(triggered()), SLOT(profileContactClicked()));

		addAction(callWithVideo);
		addAction(editContact);

		return;
		
	}
	addAction(chatAction);

	if(protocol ==QtEnumIMProtocol::IMProtocolTwitter)
	{
		chatAction->setText(tr("Reply to"));
		socialWebAction->setText(tr("Twitter Profile"));
		addAction(socialWebAction);
	}
	else if(protocol ==QtEnumIMProtocol::IMProtocolFacebook)
	{
		socialWebAction->setText(tr("Facebook Profile"));
		addAction(socialWebAction);
	}
	else if(protocol ==QtEnumIMProtocol::IMProtocolMYSPACE)
	{
		socialWebAction->setText(tr("MySpace Profile"));
		addAction(socialWebAction);
	}
}
예제 #2
0
void ForumsToaster::chatButtonSlot() {
	chatButtonClicked();
	close();
}
예제 #3
0
void OnlineToaster::chatButtonSlot() {
	chatButtonClicked();
	close();
}