~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to libs/threadimageio/thumbnailloadthread.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2010-08-26 19:25:16 UTC
  • mfrom: (1.2.30 upstream)
  • Revision ID: james.westby@ubuntu.com-20100826192516-mkbdww0h5v2x4yoy
Tags: 2:1.4.0-0ubuntu1
* New upstream bugfix release (LP: #626751)
* Install the file NEWS as upstream changelog because "ChangeLog" is
  too verbose.
* Don't copy the desktop .pot file to imageplugins, not needed anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2007-06-05
7
7
 * Description : Thumbnail loading
8
8
 *
9
 
 * Copyright (C) 2006-2008 by Marcel Wiesweg <marcel.wiesweg@gmx.de>
10
 
 * Copyright (C) 2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
9
 * Copyright (C) 2006-2010 by Marcel Wiesweg <marcel.wiesweg@gmx.de>
 
10
 * Copyright (C) 2008-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
11
 *
12
12
 * This program is free software; you can redistribute it
13
13
 * and/or modify it under the terms of the GNU General
42
42
class DatabaseParameters;
43
43
class ThumbnailCreator;
44
44
class ThumbnailInfoProvider;
45
 
class ThumbnailLoadThreadPriv;
46
45
 
47
46
class DIGIKAM_EXPORT ThumbnailLoadThread : public ManagedLoadSaveThread
48
47
{
58
57
     * It is perfectly all right to create an extra object of the class,
59
58
     * but it is useful to have default object
60
59
     */
61
 
    static ThumbnailLoadThread *defaultIconViewThread();
62
 
    static ThumbnailLoadThread *defaultThumbBarThread();
63
 
    static ThumbnailLoadThread *defaultThread();
 
60
    static ThumbnailLoadThread* defaultIconViewThread();
 
61
    static ThumbnailLoadThread* defaultThumbBarThread();
 
62
    static ThumbnailLoadThread* defaultThread();
64
63
 
65
64
    static void cleanUp();
66
65
 
70
69
     * This need not be called, then the FreeDesktop standard is used.
71
70
     * You can optionally provide a thumbnail info provider.
72
71
     */
73
 
    static void initializeThumbnailDatabase(const DatabaseParameters& params, ThumbnailInfoProvider *provider = 0);
 
72
    static void initializeThumbnailDatabase(const DatabaseParameters& params, ThumbnailInfoProvider* provider = 0);
74
73
 
75
74
    /**
76
75
     * For color management, this sets the widget the thumbnails will be color managed for.
77
76
     * (currently it is only possible to set one global widget)
78
77
     */
79
 
    static void setDisplayingWidget(QWidget *widget);
 
78
    static void setDisplayingWidget(QWidget* widget);
80
79
 
81
80
    /**
82
81
     * Find a thumbnail.
211
210
public:
212
211
 
213
212
    // For internal use - may only be used from the thread
214
 
    ThumbnailCreator *thumbnailCreator() const;
 
213
    ThumbnailCreator* thumbnailCreator() const;
215
214
 
216
215
protected:
217
216
 
229
228
 
230
229
    // For internal use
231
230
    void thumbnailsAvailable();
 
231
    void ThumbnailLoaded(const LoadingDescription& loadingDescription, const QImage& thumb);
232
232
 
233
233
private Q_SLOTS:
234
234
 
235
235
    void slotThumbnailsAvailable();
236
236
    void slotThumbnailLoaded(const LoadingDescription& loadingDescription, const QImage& thumb);
237
 
    void gotKDEPreview(const KFileItem &, const QPixmap& pix);
238
 
    void failedKDEPreview(const KFileItem &);
239
 
    void kdePreviewFinished(KJob *);
 
237
    void gotKDEPreview(const KFileItem&, const QPixmap& pix);
 
238
    void failedKDEPreview(const KFileItem&);
 
239
    void kdePreviewFinished(KJob*);
240
240
 
241
241
private:
242
242
 
 
243
    class ThumbnailLoadThreadPriv;
243
244
    ThumbnailLoadThreadPriv* const d;
244
245
};
245
246