diff options
Diffstat (limited to 'src/sq_thumbnailinfo.h')
-rw-r--r-- | src/sq_thumbnailinfo.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/sq_thumbnailinfo.h b/src/sq_thumbnailinfo.h new file mode 100644 index 0000000..6abff2d --- /dev/null +++ b/src/sq_thumbnailinfo.h @@ -0,0 +1,52 @@ +/*************************************************************************** + sq_thumbnailinfo.h - description + ------------------- + begin : ðÎÄ ïËÔ 11 2004 + copyright : (C) 2004 by Baryshev Dmitry + email : ksquirrel.iv@gmail.com + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef SQ_THUMBNAILINFO_H +#define SQ_THUMBNAILINFO_H + +#include <tqstring.h> +#include <tqpixmap.h> +#include <tqimage.h> + +#include <ctime> + +// default thumbnail format +#define sqdirThumbFormat "PNG" + +// default quality +#define sqdirThumbQuality 85 + +#define sqdirMimeFormat "XPM" + +/* + * Represents thumbnail. + */ +struct SQ_Thumbnail +{ + // mime icon from image codec + TQPixmap mime; + + // 'last modifiled' time of original file. + // we should store it for non-local urls + time_t originalTime; + + int w, h; + + TQImage thumbnail; +}; + +#endif |