~ubuntu-branches/ubuntu/feisty/digikam/feisty

« back to all changes in this revision

Viewing changes to digikam/digikam/imagepreviewjob.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2006-12-07 19:09:01 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20061207190901-h7wo0kj1wv9d5b46
Tags: 1:0.9.0~rc2-0ubuntu1
* New upstream release
* Sync packaging with debian
* Removed obsolete patches 10_kdesvn_606804_dcraw-return-code.diff
  and 11_kdesvn_606805_file-extention-parsing.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 * Authors: Gilles Caulier <caulier dot gilles at kdemail dot net>
 
3
 * Date   : 2006-19-06
 
4
 * Description : digiKam KIO preview extractor interface
 
5
 *
 
6
 * Copyright 2006 by Gilles Caulier
 
7
 *
 
8
 * This program is free software; you can redistribute it
 
9
 * and/or modify it under the terms of the GNU General
 
10
 * Public License as published by the Free Software Foundation;
 
11
 * either version 2, or (at your option)
 
12
 * any later version.
 
13
 * 
 
14
 * This program is distributed in the hope that it will be useful,
 
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
 * GNU General Public License for more details.
 
18
 * 
 
19
 * ============================================================ */
 
20
 
 
21
#ifndef IMAGEPREVIEWJOB_H
 
22
#define IMAGEPREVIEWJOB_H
 
23
 
 
24
// KDE includes.
 
25
 
 
26
#include <kio/job.h>
 
27
 
 
28
class QImage;
 
29
 
 
30
class KURL;
 
31
 
 
32
namespace Digikam
 
33
{
 
34
 
 
35
class ImagePreviewJobPriv;
 
36
 
 
37
class ImagePreviewJob : public KIO::Job
 
38
{
 
39
    Q_OBJECT
 
40
 
 
41
public:
 
42
 
 
43
    ImagePreviewJob(const KURL& url, int size, bool exifRotate=false);
 
44
    ~ImagePreviewJob();
 
45
 
 
46
signals:
 
47
 
 
48
    void signalImagePreview(const KURL& url, const QImage& preview);
 
49
    void signalCompleted();
 
50
    void signalFailed(const KURL& url);
 
51
 
 
52
private:
 
53
 
 
54
    void getImagePreview();
 
55
    void createShmSeg();
 
56
 
 
57
protected slots:
 
58
 
 
59
    void slotResult(KIO::Job *job);
 
60
    void slotImagePreviewData(KIO::Job *job, const QByteArray &data);
 
61
 
 
62
private:
 
63
 
 
64
    ImagePreviewJobPriv *d;
 
65
};
 
66
 
 
67
}  // namespace Digikam
 
68
 
 
69
#endif /* IMAGEPREVIEWJOB_H */