Class sh::tools::thumbnailproviders::ImageMagickPdfThumbnailProvider

class sh::tools::thumbnailproviders::ImageMagickPdfThumbnailProvider : public QObject, public sh::tools::ThumbnailProvider

Thumbnail provider for videos using the ffmpeg tool.

Public Functions

ImageMagickPdfThumbnailProvider()
void getThumbnail(sh::filesystem::Operation *operation, std::shared_ptr<sh::filesystem::FilesystemNode> node, QString contentType, int width, int height, QIcon *icon) override

Public Static Functions

void doInitialize()
void doShutdown()

Private Members

QString pathToImagemagickConvertTool

Private Static Attributes

std::shared_ptr<sh::configuration::ConfigurationValue> cfgvalImagemagickConvertPath = sh::configuration::ConfigurationManager::instance()->registerConfigValue("sh::tools::thumbnailproviders::ImageMagickPdfThumbnailProvider.ImagemagickConvertPath", "/usr/bin/convert", sh::configuration::ConfigurationValue::valueTypeLocalFilePath(), QObject::tr("Path to the 'convert' tool of ImageMagick"), sh::configuration::ConfigurationCategory::CategoryExternalTools, QObject::tr("This tool is used for getting thumbnails of some file types."))