void FacebookManager::shareByMode(TShareInfo info)
{
	if (s_pRetListener == NULL)
	{
	s_pRetListener = new MyShareResult();
	}

	ProtocolSocial* pShare = NULL;
	pShare = s_pFacebook;
	if (pShare) {
		pShare->share(info);

	}

}
示例#2
0
void MySocialManager::shareByMode(TShareInfo info, MyShareMode mode)
{
	ProtocolSocial* pShare = NULL;
	switch(mode)
	{
	case eTwitter:
		pShare = s_pTwitter;
		break;
	default:
		break;
	}

	if (pShare) {
		pShare->share(info);
	}
}