24 #ifndef __kio_previewjob_h__
25 #define __kio_previewjob_h__
27 #include <kfileitem.h>
57 PreviewJob(
const KFileItemList &items,
int width,
int height,
58 int iconSize,
int iconAlpha,
bool scale,
bool save,
59 const TQStringList *enabledPlugins,
bool deleteItems =
false );
76 void setIgnoreMaximumSize(
bool ignoreSize =
true);
84 static TQStringList availablePlugins();
91 static TQStringList supportedMimeTypes();
96 virtual void kill(
bool quietly =
true );
105 void gotPreview(
const KFileItem *item,
const TQPixmap &preview );
115 void getOrCreateThumbnail();
116 bool statResultThumbnail();
117 void createThumbnail( TQString );
120 virtual void slotResult(
KIO::Job *job );
124 void slotThumbData(
KIO::Job *,
const TQByteArray &);
127 void determineNextFile();
128 void emitPreview(
const TQImage &thumb);
129 void emitFailed(
const KFileItem *item = 0);
132 virtual void virtual_hook(
int id,
void* data );
134 struct PreviewJobPrivate *d;
157 KIO_EXPORT
PreviewJob *
filePreview(
const KFileItemList &items,
int width,
int height = 0,
int iconSize = 0,
int iconAlpha = 70,
bool scale =
true,
bool save =
true,
const TQStringList *enabledPlugins = 0 );
179 KIO_EXPORT
PreviewJob *
filePreview(
const KURL::List &items,
int width,
int height = 0,
int iconSize = 0,
int iconAlpha = 70,
bool scale =
true,
bool save =
true,
const TQStringList *enabledPlugins = 0 );
A namespace for KIO globals.
KIO_EXPORT PreviewJob * filePreview(const KFileItemList &items, int width, int height=0, int iconSize=0, int iconAlpha=70, bool scale=true, bool save=true, const TQStringList *enabledPlugins=0)
Creates a PreviewJob to generate or retrieve a preview image for the given URL.
KIO Job to get a thumbnail picture.
The base class for all jobs.
A KFileItem is a generic class to handle a file, local or remote.