Fixed compilation issue following namespace change.

This commit is contained in:
Vincent Richard 2011-06-14 18:37:54 +00:00
parent 13c1532497
commit 4ed0164824

View File

@ -43,18 +43,18 @@ int main()
vmime::platform::setHandler<vmime::platforms::posix::posixHandler>();
// Enumerate encoders
vmime::encoderFactory* ef = vmime::encoderFactory::getInstance();
vmime::utility::encoder::encoderFactory* ef = vmime::utility::encoder::encoderFactory::getInstance();
std::cout << "Available encoders:" << std::endl;
for (int i = 0 ; i < ef->getEncoderCount() ; ++i)
{
vmime::ref <const vmime::encoderFactory::registeredEncoder>
vmime::ref <const vmime::utility::encoder::encoderFactory::registeredEncoder>
enc = ef->getEncoderAt(i);
std::cout << " * " << enc->getName() << std::endl;
vmime::ref <vmime::encoder> e = enc->create();
vmime::ref <vmime::utility::encoder::encoder> e = enc->create();
std::vector <vmime::string> props = e->getAvailableProperties();