void FacebookManager::shareByMode(TShareInfo info) { if (s_pRetListener == NULL) { s_pRetListener = new MyShareResult(); } ProtocolSocial* pShare = NULL; pShare = s_pFacebook; if (pShare) { pShare->share(info); } }
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); } }