digiKam
mediawiki_imageinfo.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 : 2011-03-22
7  * Description : a Iface C++ interface
8  *
9  * Copyright (C) 2011-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2011 by Ludovic Delfau <ludovicdelfau at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) 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_MEDIAWIKI_IMAGEINFO_H
25 #define DIGIKAM_MEDIAWIKI_IMAGEINFO_H
26 
27 // Qt includes
28 
29 #include <QDateTime>
30 #include <QHash>
31 #include <QString>
32 #include <QUrl>
33 #include <QVariant>
34 
35 namespace MediaWiki
36 {
37 
41 class Imageinfo
42 {
43 public:
44 
48  Imageinfo();
49 
54  Imageinfo(const Imageinfo& other);
55 
59  ~Imageinfo();
60 
65  Imageinfo& operator=(const Imageinfo& other);
66 
72  bool operator==(const Imageinfo& other) const;
73 
78  QDateTime timestamp() const;
79 
84  void setTimestamp(const QDateTime& timestamp);
85 
90  QString user() const;
91 
96  void setUser(const QString& user);
97 
102  QString comment() const;
103 
108  void setComment(const QString& comment);
109 
114  QUrl url() const;
115 
120  void setUrl(const QUrl& url);
121 
126  QUrl descriptionUrl() const;
127 
132  void setDescriptionUrl(const QUrl& descriptionUrl);
133 
138  QUrl thumbUrl() const;
139 
144  void setThumbUrl(const QUrl& thumbUrl);
145 
150  qint64 thumbWidth() const;
151 
156  void setThumbWidth(qint64 thumbWidth);
157 
162  qint64 thumbHeight() const;
163 
168  void setThumbHeight(qint64 thumbHeight);
169 
174  qint64 size() const;
175 
180  void setSize(qint64 size);
181 
186  qint64 width() const;
187 
192  void setWidth(qint64 width);
193 
198  qint64 height() const;
199 
204  void setHeight(qint64 height);
205 
210  QString sha1() const;
211 
216  void setSha1(const QString& sha1);
217 
222  QString mime() const;
223 
228  void setMime(const QString& mime);
229 
234  const QHash<QString, QVariant>& metadata() const;
235 
240  QHash<QString, QVariant>& metadata();
241 
246  void setMetadata(const QHash<QString, QVariant>& metadata);
247 
248 private:
249 
250  class Private;
251  Private* const d;
252 };
253 
254 } // namespace MediaWiki
255 
256 #endif // DIGIKAM_MEDIAWIKI_IMAGEINFO_H
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49