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

« back to all changes in this revision

Viewing changes to digikam/libs/dimg/loaders/ppmloader.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
 * Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
 
3
 *         Gilles Caulier <caulier dot gilles at kdemail dot net> 
 
4
 * Date  : 2005-21-11
 
5
 * Description : A 16 bits/color/pixel PPM IO file for 
 
6
 *               DImg framework
 
7
 * 
 
8
 * Copyright 2005 by Renchi Raju, Gilles Caulier
 
9
 * Copyright 2006 by Gilles Caulier
 
10
 *
 
11
 * This program is free software; you can redistribute it
 
12
 * and/or modify it under the terms of the GNU General
 
13
 * Public License as published by the Free Software Foundation;
 
14
 * either version 2, or (at your option)
 
15
 * any later version.
 
16
 * 
 
17
 * This program is distributed in the hope that it will be useful,
 
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
 * GNU General Public License for more details.
 
21
 *
 
22
 * ============================================================ */
 
23
 
 
24
#ifndef PPMLOADER_H
 
25
#define PPMLOADER_H
 
26
 
 
27
// Local includes.
 
28
 
 
29
#include "dimgloader.h"
 
30
#include "digikam_export.h"
 
31
 
 
32
namespace Digikam
 
33
{
 
34
class DImg;
 
35
 
 
36
class DIGIKAM_EXPORT PPMLoader : public DImgLoader
 
37
{
 
38
public:
 
39
 
 
40
    PPMLoader(DImg* image);
 
41
 
 
42
    bool load(const QString& filePath, DImgLoaderObserver *observer);
 
43
    bool save(const QString& filePath, DImgLoaderObserver *observer);
 
44
 
 
45
    virtual bool hasAlpha()   const { return false; };
 
46
    virtual bool sixteenBit() const { return true;  };
 
47
    virtual bool isReadOnly() const { return true;  };    
 
48
    
 
49
private:
 
50
 
 
51
    bool m_alpha;
 
52
    bool m_sixteenBit;
 
53
};
 
54
 
 
55
}  // NameSpace Digikam
 
56
 
 
57
#endif /* PPMLOADER_H */