kde-workspace/kioslave/thumbnail/windowsexecreator.h
Ivailo Monev 17cd523fb2 kioslave: drop windowsimagecreator thumbnailer
it uses the ICO image format handler which can read only
image/vnd.microsoft.icon

also optimized the windowsexecreator while at it to not created
temporary file (which later wrestool would overwrite anyway) but
rather just generate output file path via KTemporaryFile::filePath()
and delete it manually when done

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-16 14:40:02 +02:00

30 lines
1 KiB
C++

/*
windowsexecreator.h - Thumbnail Creator for Microsoft Windows Executables
Copyright (c) 2009-2010 by Pali Rohár <pali.rohar@gmail.com>
*************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public *
* License as published by the Free Software Foundation; either *
* version 2 of the License, or (at your option) any later version. *
* *
*************************************************************************
*/
#ifndef WINDOWS_EXE_CREATOR_H
#define WINDOWS_EXE_CREATOR_H
#include <kio/thumbcreator.h>
class WindowsExeCreator : public ThumbCreator
{
public:
WindowsExeCreator();
bool create(const QString &path, int width, int height, QImage &img) final;
};
#endif // WINDOWS_EXE_CREATOR_H