Proper check for rawzor libraries.
[rawtherapee-fixes.git] / rtgui / cacheimagedata.h
blob2ac4b42bf5df289e69ec2d7025b1db58447f67b3
1 /*
2 * This file is part of RawTherapee.
4 * Copyright (c) 2004-2010 Gabor Horvath <hgabor@rawtherapee.com>
6 * RawTherapee is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * RawTherapee is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef _CACHEIMAGEDATA_
20 #define _CACHEIMAGEDATA_
22 #include <glibmm.h>
23 #include <options.h>
25 class CacheImageData {
27 public:
29 // basic informations
30 Glib::ustring md5;
31 int version;
32 bool supported;
33 ThFileType format;
34 char rank;
35 bool inTrash;
36 bool recentlySaved;
38 // time/date info
39 bool timeValid;
40 short year;
41 char month;
42 char day;
43 char hour;
44 char min;
45 char sec;
46 char msec;
48 // exif info
49 bool exifValid;
50 double fnumber;
51 double shutter;
52 double focalLen;
53 unsigned iso;
54 Glib::ustring lens;
55 Glib::ustring camera;
57 // additional info on raw images
58 int rotate;
59 int thumbImgType;
60 int thumbOffset;
62 CacheImageData ();
64 int load (const Glib::ustring& fname);
65 int save (const Glib::ustring& fname);
67 #endif