std::string WsAccount::getServerProtocolId( const IMAccount& imAccount ) { QtEnumIMProtocol::ServerProtocolId pid = QtEnumIMProtocolMap::getInstance().toServerProtocolId( imAccount.getQtProtocol() ); String networkId = String::fromNumber( pid ); return networkId; }