digiKam
showfotoiteminfo.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 : 2013-07-1
7  * Description : Showfoto item info container
8  *
9  * Copyright (C) 2013 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
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 SHOW_FOTO_ITEM_INFO_H
25 #define SHOW_FOTO_ITEM_INFO_H
26 
27 // Qt includes
28 
29 #include <QList>
30 #include <QByteArray>
31 #include <QDebug>
32 #include <QUrl>
33 #include <QFileInfo>
34 
35 // Local includes
36 
37 #include "photoinfocontainer.h"
38 #include "videoinfocontainer.h"
39 
40 using namespace Digikam;
41 
42 class QDataStream;
43 
44 namespace ShowFoto
45 {
46 
48 {
49 public:
50 
51  explicit ShowfotoItemInfo();
53 
57  bool isNull() const;
58 
62  bool operator==(const ShowfotoItemInfo& info) const;
63  bool operator!=(const ShowfotoItemInfo& info) const;
64 
65  static ShowfotoItemInfo itemInfoFromFile(const QFileInfo& inf);
66 
67 public:
68 
70  qint64 size;
71  QUrl url;
72 
73  QString name;
74  QString folder;
75  QString mime;
76 
78  qlonglong id;
79 
81 
82  QDateTime dtime;
83  QDateTime ctime;
84  int width;
85  int height;
86 };
87 
88 QDataStream& operator<<(QDataStream&, const ShowfotoItemInfo&);
89 QDataStream& operator>>(QDataStream&, ShowfotoItemInfo&);
90 
92 
94 QDebug operator<<(QDebug dbg, const ShowfotoItemInfo& info);
95 
96 } // namespace Showfoto
97 
98 #endif // SHOW_FOTO_ITEM_INFO_H
Definition: photoinfocontainer.h:41
Definition: showfotoiteminfo.h:48
PhotoInfoContainer photoInfo
Definition: showfotoiteminfo.h:80
QUrl url
file Url
Definition: showfotoiteminfo.h:71
QString folder
Folder path to access to file.
Definition: showfotoiteminfo.h:74
QDateTime dtime
creation time on disk
Definition: showfotoiteminfo.h:82
int height
Image height in pixels.
Definition: showfotoiteminfo.h:85
QString mime
Type mime of file.
Definition: showfotoiteminfo.h:75
qlonglong id
Unique image id.
Definition: showfotoiteminfo.h:78
int width
Image width in pixels.
Definition: showfotoiteminfo.h:84
qint64 size
Static values.
Definition: showfotoiteminfo.h:70
QString name
File name in file-system.
Definition: showfotoiteminfo.h:73
QDateTime ctime
camera date stamp
Definition: showfotoiteminfo.h:83
Definition: datefolderview.cpp:43
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition: dbengineparameters.cpp:863
QDataStream & operator>>(QDataStream &ds, PhotoInfoContainer &info)
Definition: photoinfocontainer.cpp:117
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49
Definition: showfotofolderviewbar.cpp:52
QList< ShowfotoItemInfo > ShowfotoItemInfoList
Definition: showfotoiteminfo.h:91