void ArtworkUploader::setCommandManager(Commands::CommandManager *commandManager) { Common::BaseEntity::setCommandManager(commandManager); Conectivity::FtpCoordinator *coordinator = dynamic_cast<Conectivity::FtpCoordinator *>(m_FtpCoordinator); Q_ASSERT(coordinator != NULL); coordinator->setCommandManager(commandManager); m_StocksFtpList.setCommandManager(commandManager); }
void ArtworkUploader::setCommandManager(Commands::CommandManager *commandManager) { Common::BaseEntity::setCommandManager(commandManager); #ifndef CORE_TESTS Conectivity::FtpCoordinator *coordinator = dynamic_cast<Conectivity::FtpCoordinator *>(m_FtpCoordinator); Q_ASSERT(coordinator != NULL); coordinator->setCommandManager(commandManager); #endif }