library/src/network/email/BP-Email.cc
/** Returns the messaging protocols supported by VMime.
  *
  * @param type service type (vmime::net::service::TYPE_STORE or
  * vmime::net::service::TYPE_TRANSPORT)
  */
Returns the messaging protocols supported by VMime.
Returns the messaging protocols supported by VMime .
static const std::string findAvailableProtocols(const vmime::net::service::Type type)
{
	vmime::net::serviceFactory* sf = vmime::net::serviceFactory::getInstance();
	std::ostringstream res;
	int count = 0;
	for (int i = 0 ; i < sf->getServiceCount() ; ++i)
	{
		const vmime::net::serviceFactory::registeredService& serv = *sf->getServiceAt(i);
		if (serv.getType() == type)
		{
			if (count != 0)
				res << ", ";
			res << serv.getName();
			++count;
		}
	}
	return res.str();
}
static const std :: string findAvailableProtocols ( const vmime :: net :: service :: Type type ) { vmime :: net :: serviceFactory * sf = vmime :: net :: serviceFactory :: getInstance ( ) ; std :: ostringstream res ; int count = 0 ; for ( int i = 0 ; i < sf -> getServiceCount ( ) ; ++ i ) { const vmime :: net :: serviceFactory :: registeredService & serv = * sf -> getServiceAt ( i ) ; if ( serv . getType ( ) == type ) { if ( count != 0 ) res << " " ; res << serv . getName ( ) ; ++ count ; } } return res . str ( ) ; }
Returns the messaging protocols supported by VMime.
Returns the messaging protocols supported by VMime .