• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KFile

  • sources
  • kde-4.14
  • kdelibs
  • kfile
kfilepreviewgenerator.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (C) 2008-2009 by Peter Penz <peter.penz@gmx.at> *
3  * *
4  * This library is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU Library General Public *
6  * License as published by the Free Software Foundation; either *
7  * version 2 of the License, or (at your option) any later version. *
8  * *
9  * This library is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
12  * Library General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU Library General Public License *
15  * along with this library; see the file COPYING.LIB. If not, write to *
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
17  * Boston, MA 02110-1301, USA. *
18  *******************************************************************************/
19 
20 #ifndef KFILEPREVIEWGENERATOR_H
21 #define KFILEPREVIEWGENERATOR_H
22 
23 #include <kfile_export.h>
24 
25 #include <QtCore/QObject>
26 
27 class KAbstractViewAdapter;
28 class KDirModel;
29 class QAbstractItemView;
30 class QAbstractProxyModel;
31 
50 class KFILE_EXPORT KFilePreviewGenerator : public QObject
51 {
52  Q_OBJECT
53 
54 public:
62  KFilePreviewGenerator(QAbstractItemView* parent);
63 
65  KFilePreviewGenerator(KAbstractViewAdapter* parent, QAbstractProxyModel* model);
66 
67  virtual ~KFilePreviewGenerator();
68 
76  void setPreviewShown(bool show);
77  bool isPreviewShown() const;
78 
82  void updatePreviews();
83 
92  void updateIcons();
93 
95  void cancelPreviews();
96 
109  void setEnabledPlugins(const QStringList& list);
110 
115  QStringList enabledPlugins() const;
116 
117 private:
118  class Private;
119  Private* const d;
120  class LayoutBlocker;
121  class TileSet;
122 
123  Q_DISABLE_COPY(KFilePreviewGenerator)
124 
125  Q_PRIVATE_SLOT(d, void updateIcons(const KFileItemList&))
126  Q_PRIVATE_SLOT(d, void updateIcons(const QModelIndex&, const QModelIndex&))
127  Q_PRIVATE_SLOT(d, void addToPreviewQueue(const KFileItem&, const QPixmap&))
128  Q_PRIVATE_SLOT(d, void slotPreviewJobFinished(KJob*))
129  Q_PRIVATE_SLOT(d, void updateCutItems())
130  Q_PRIVATE_SLOT(d, void dispatchIconUpdateQueue())
131  Q_PRIVATE_SLOT(d, void pauseIconUpdates())
132  Q_PRIVATE_SLOT(d, void resumeIconUpdates())
133  Q_PRIVATE_SLOT(d, void resolveMimeType())
134  Q_PRIVATE_SLOT(d, void requestSequenceIcon(const QModelIndex&, int))
135  Q_PRIVATE_SLOT(d, void delayedIconUpdate())
136  Q_PRIVATE_SLOT(d, void rowsAboutToBeRemoved(const QModelIndex&, int, int))
137 };
138 
139 #endif
QModelIndex
QAbstractItemView
KFilePreviewGenerator
Generates previews for files of an item view.
Definition: kfilepreviewgenerator.h:50
QAbstractProxyModel
KAbstractViewAdapter
QObject
KFileItemList
QStringList
QPixmap
KDirModel
KJob
kfile_export.h
KFileItem
list
QStringList list(const QString &fileClass)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:27:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KFile

Skip menu "KFile"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal