~ubuntu-branches/ubuntu/edgy/digikam/edgy-proposed

« back to all changes in this revision

Viewing changes to digikam/kioslave/digikamthumbnail.h

  • Committer: Bazaar Package Importer
  • Author(s): Achim Bohnet
  • Date: 2006-05-15 01:15:02 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515011502-kpyuz7766hpbuia8
Tags: 0.8.2~rc1-0ubuntu1
* sync with debian (UVF see #44102)
  0.8.2~rc1-0ubuntu1 is identical to debian's 0.8.1+0.8.2-rc1-1.
  Version was changed due to latest 0.8.1.ubuntu-0ubuntu1 upload.
  This version is unfortunately bigger than debian's 0.8.1+0.8.2-rc1-1
* Merge in ubuntu changelog

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//////////////////////////////////////////////////////////////////////////////
2
 
//
3
 
//    DIGIKAMTHUMBNAIL.H
4
 
//
5
 
//    Copyright (C) 2003-2004 Renchi Raju <renchi at pooh.tam.uiuc.edu>
6
 
//                            Gilles CAULIER <caulier dot gilles at free.fr>
7
 
//
8
 
//    This program is free software; you can redistribute it and/or modify
9
 
//    it under the terms of the GNU General Public License as published by
10
 
//    the Free Software Foundation; either version 2 of the License, or
11
 
//    (at your option) any later version.
12
 
//
13
 
//    This program is distributed in the hope that it will be useful,
14
 
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
//    GNU General Public License for more details.
17
 
//
18
 
//    You should have received a copy of the GNU General Public License
19
 
//    along with this program; if not, write to the Free Software
20
 
//    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
 
//
22
 
//////////////////////////////////////////////////////////////////////////////
 
1
/* ============================================================
 
2
 * Authors: Renchi Raju <renchi@pooh.tam.uiuc.edu>
 
3
 *          Gilles Caulier <caulier dot gilles at kdemail dot net> 
 
4
 * Date   : 2003-01-15
 
5
 * Description : digiKam KIO slave to get image thumbnails.
 
6
 * 
 
7
 * Copyright 2003-2005 by Renchi Raju, Gilles Caulier
 
8
 * Copyright 2006      by Gilles Caulier
 
9
 *
 
10
 * This program is free software; you can redistribute it
 
11
 * and/or modify it under the terms of the GNU General
 
12
 * Public License as published by the Free Software Foundation;
 
13
 * either version 2, or (at your option)
 
14
 * any later version.
 
15
 * 
 
16
 * This program is distributed in the hope that it will be useful,
 
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
 * GNU General Public License for more details.
 
20
 * 
 
21
 * ============================================================ */
23
22
 
24
23
#ifndef _digikamthumbnail_H_
25
24
#define _digikamthumbnail_H_
36
35
 
37
36
class kio_digikamthumbnailProtocol : public KIO::SlaveBase
38
37
{
 
38
 
39
39
public:
40
40
 
41
41
    kio_digikamthumbnailProtocol(int argc, char** argv);
44
44
 
45
45
private:
46
46
 
 
47
    bool loadByExtension(QImage& image, const QString& path);
47
48
    bool loadJPEG(QImage& image, const QString& path);
48
49
    bool loadImlib2(QImage& image, const QString& path);
49
50
    bool loadKDEThumbCreator(QImage& image, const QString& path);
50
51
    bool loadDCRAW(QImage& image,  const QString& path);
51
52
    void createThumbnailDirs();
52
53
 
53
 
    int  cachedSize_;
54
 
 
55
 
    int org_width_;
56
 
    int org_height_;
57
 
    int new_width_;
58
 
    int new_height_;
59
 
 
60
 
    QString smallThumbPath_;
61
 
    QString bigThumbPath_;
 
54
private:
 
55
 
 
56
    int           cachedSize_;
 
57
 
 
58
    int           org_width_;
 
59
    int           org_height_;
 
60
    int           new_width_;
 
61
    int           new_height_;
 
62
 
 
63
    QString       smallThumbPath_;
 
64
    QString       bigThumbPath_;
62
65
 
63
66
    QApplication *app_;
64
67
    int           argc_;