digiKam
thumbnailinfo.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2014-11-15
7  * Description : Information for thumbnails
8  *
9  * Copyright (C) 2006-2014 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
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 DIGIKAM_THUMB_NAIL_INFO_H
25 #define DIGIKAM_THUMB_NAIL_INFO_H
26 
27 // Qt includes
28 
29 #include <QDateTime>
30 #include <QString>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 
36 namespace Digikam
37 {
38 
39 class DIGIKAM_EXPORT ThumbnailIdentifier
40 {
41 public:
42 
44  explicit ThumbnailIdentifier(const QString& filePath);
45 
49  QString filePath;
50 
54  qlonglong id;
55 };
56 
57 class DIGIKAM_EXPORT ThumbnailInfo : public ThumbnailIdentifier
58 {
59 public:
60 
61  explicit ThumbnailInfo();
63  {
64  };
65 
70  QString uniqueHash;
71  qlonglong fileSize;
72 
78 
83  QDateTime modificationDate;
84 
91 
95  QString fileName;
96 
101  QString mimeType;
102 
107 };
108 
109 // ------------------------------------------------------------------------------------------
110 
111 class DIGIKAM_EXPORT ThumbnailInfoProvider
112 {
113 public:
114 
116  {
117  };
118 
120  {
121  };
122 
124 
125 private:
126 
127  Q_DISABLE_COPY(ThumbnailInfoProvider)
128 };
129 
130 } // namespace Digikam
131 
132 #endif // DIGIKAM_THUMB_NAIL_INFO_H
Definition: thumbnailinfo.h:40
QString filePath
Definition: thumbnailinfo.h:49
qlonglong id
Definition: thumbnailinfo.h:54
Definition: thumbnailinfo.h:112
virtual ThumbnailInfo thumbnailInfo(const ThumbnailIdentifier &)=0
virtual ~ThumbnailInfoProvider()
Definition: thumbnailinfo.h:119
ThumbnailInfoProvider()
Definition: thumbnailinfo.h:115
Definition: thumbnailinfo.h:58
bool isAccessible
Definition: thumbnailinfo.h:77
QDateTime modificationDate
Definition: thumbnailinfo.h:83
QString fileName
Definition: thumbnailinfo.h:95
QString uniqueHash
Definition: thumbnailinfo.h:64
int orientationHint
Definition: thumbnailinfo.h:90
QString customIdentifier
Definition: thumbnailinfo.h:106
qlonglong fileSize
Definition: thumbnailinfo.h:71
QString mimeType
Definition: thumbnailinfo.h:101
~ThumbnailInfo()
Definition: thumbnailinfo.h:62
Definition: datefolderview.cpp:43