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

« back to all changes in this revision

Viewing changes to utilities/kexif/kexifdata.h

  • Committer: Bazaar Package Importer
  • Author(s): Achim Bohnet
  • Date: 2005-03-10 02:39:02 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050310023902-023nymfst5mg696c
Tags: 0.7.2-2
* debian/TODO: clean
* digikam manpage: better --detect-camera description

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef KEXIFDATA_H
2
 
#define KEXIFDATA_H
3
 
 
4
 
extern "C" {
5
 
#include <libexif/exif-data.h>
6
 
}
7
 
 
8
 
#include <qstring.h>
9
 
#include <qimage.h>
10
 
#include <qvaluevector.h>
11
 
 
12
 
class KExifIfd;
13
 
 
14
 
class KExifData {
15
 
 
16
 
public:
17
 
 
18
 
    enum {
19
 
        NOEXIF=0,
20
 
        NOTHUMBNAIL,
21
 
        ERROR,
22
 
        SUCCESS };
23
 
 
24
 
    KExifData();
25
 
    ~KExifData();
26
 
 
27
 
    int readFromFile(const QString& filename);
28
 
    int readFromData(char* data, int size);
29
 
    int getThumbnail(QImage& thumb);
30
 
 
31
 
    QValueVector<KExifIfd> ifdVector;
32
 
 
33
 
    void saveFile(const QString& filename);
34
 
 
35
 
private:
36
 
 
37
 
    ExifData *mExifData;
38
 
    QString   mExifByteOrder;
39
 
    QImage mThumbnail;
40
 
 
41
 
};
42
 
 
43
 
#endif