digiKam
mediawiki_page.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 Joris Munoz <munozjoris 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_PAGE_H
25 #define DIGIKAM_MEDIAWIKI_PAGE_H
26 
27 // Qt includes
28 
29 #include <QDateTime>
30 #include <QUrl>
31 
32 namespace MediaWiki
33 {
34 
38 class Page
39 {
40 
41 public:
42 
46  Page();
47 
52  Page(const Page& other);
53 
57  ~Page();
58 
63  Page& operator=(const Page& other);
64 
70  bool operator==(const Page& other) const;
71 
76  void setPageId(unsigned int id);
77 
82  unsigned int pageId() const;
83 
88  void setTitle(const QString& title);
89 
94  QString pageTitle() const;
95 
100  void setNs(unsigned int ns) const;
101 
106  unsigned int pageNs() const;
107 
112  void setLastRevId(unsigned int lastRevId) const;
113 
118  unsigned int pageLastRevId() const;
119 
124  void setCounter(unsigned int counter) const;
125 
130  unsigned int pageCounter() const;
131 
136  void setLength(unsigned int length) const;
137 
142  unsigned int pageLength() const;
143 
148  void setEditToken(const QString& editToken);
149 
154  QString pageEditToken() const;
155 
160  void setTalkid(unsigned int talkid) const;
161 
166  unsigned int pageTalkid() const;
167 
172  void setFullurl(const QUrl& fullurl);
173 
178  QUrl pageFullurl() const;
179 
184  void setEditurl(const QUrl& editurl);
185 
190  QUrl pageEditurl() const;
191 
196  void setReadable(const QString& readable);
197 
202  QString pageReadable() const;
203 
208  void setPreload(const QString& preload);
209 
214  QString pagePreload() const;
215 
220  void setTouched(const QDateTime& touched);
221 
226  QDateTime pageTouched() const;
227 
232  void setStarttimestamp(const QDateTime& starttimestamp);
233 
238  QDateTime pageStarttimestamp() const;
239 
240 private:
241 
242  class Private;
243  Private* const d;
244 };
245 
246 } // namespace MediaWiki
247 
248 #endif // PAGE_H
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49