• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

  • tdeio
  • tdeio
previewjob.h
1/* This file is part of the KDE libraries
2 Copyright (C) 2000 David Faure <faure@kde.org>
3 2000 Carsten Pfeiffer <pfeiffer@kde.org>
4 2001 Malte Starostik <malte.starostik@t-online.de>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20*/
21
22#ifndef __tdeio_previewjob_h__
23#define __tdeio_previewjob_h__
24
25#include <tdefileitem.h>
26#include <tdeio/job.h>
27
28class TQPixmap;
29
30namespace TDEIO {
35 class TDEIO_EXPORT PreviewJob : public TDEIO::Job
36 {
37 TQ_OBJECT
38 public:
55 PreviewJob( const KFileItemList &items, int width, int height,
56 int iconSize, int iconAlpha, bool scale, bool save,
57 const TQStringList *enabledPlugins, bool deleteItems = false );
58 virtual ~PreviewJob();
59
66 void removeItem( const KFileItem *item );
67
74 void setIgnoreMaximumSize(bool ignoreSize = true);
75
82 static TQStringList availablePlugins();
83
89 static TQStringList supportedMimeTypes();
90
94 virtual void kill( bool quietly = true );
95
96 signals:
103 void gotPreview( const KFileItem *item, const TQPixmap &preview );
110 void failed( const KFileItem *item );
111
112 protected:
113 void getOrCreateThumbnail();
114 bool statResultThumbnail();
115 void createThumbnail( TQString );
116
117 protected slots:
118 virtual void slotResult( TDEIO::Job *job );
119
120 private slots:
121 void startPreview();
122 void slotThumbData(TDEIO::Job *, const TQByteArray &);
123
124 private:
125 void determineNextFile();
126 void emitPreview(const TQImage &thumb);
127 void emitFailed(const KFileItem *item = 0);
128
129 protected:
130 virtual void virtual_hook( int id, void* data );
131 private:
132 struct PreviewJobPrivate *d;
133 };
134
155 TDEIO_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 );
156
177 TDEIO_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 );
178}
179
180#endif
KFileItem
A KFileItem is a generic class to handle a file, local or remote.
Definition tdefileitem.h:42
TDEIO::Job
The base class for all jobs.
Definition jobclasses.h:67
TDEIO::PreviewJob
TDEIO Job to get a thumbnail picture.
Definition previewjob.h:36
TDEIO::PreviewJob::failed
void failed(const KFileItem *item)
TDEIO::PreviewJob::gotPreview
void gotPreview(const KFileItem *item, const TQPixmap &preview)
TDEIO
A namespace for TDEIO globals.
Definition authinfo.h:29
TDEIO::filePreview
TDEIO_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.
Definition previewjob.cpp:574

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.9.8
This website is maintained by Timothy Pearson.