/usr/include/libmediawiki/page.h is in libmediawiki-dev 1.0~digikam3.5.0-0ubuntu10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | /** ===========================================================
* @file
*
* This file is a part of KDE project
* <a href="https://projects.kde.org/projects/extragear/libs/libmediawiki">libmediawiki</a>
*
* @date 2011-03-22
* @brief a MediaWiki C++ interface for KDE
*
* @author Copyright (C) 2011-2012 by Gilles Caulier
* <a href="mailto:caulier dot gilles at gmail dot com">caulier dot gilles at gmail dot com</a>
* @author Copyright (C) 2010 by Joris Munoz
* <a href="mailto:munozjoris at gmail dot com">munozjoris at gmail dot com</a>
*
* 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, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* ============================================================ */
#ifndef MEDIAWIKI_PAGE_H
#define MEDIAWIKI_PAGE_H
// Qt includes
#include <QtCore/QDateTime>
#include <QtCore/QUrl>
// Local includes
#include "mediawiki_export.h"
namespace mediawiki
{
/**
* @brief An image info.
*/
class MEDIAWIKI_EXPORT Page
{
public:
/**
* @brief Constructs a page.
*/
Page();
/**
* @brief Constructs a page from an other page.
* @param other an other page
*/
Page(const Page& other);
/**
* @brief Destructs a page.
*/
~Page();
/**
* @brief Assingning a page from an other page.
* @param other an other page
*/
Page& operator=(Page other);
/**
* @brief Returns true if this instance and other are equal, else false.
* @param other instance to compare
* @return true if there are equal, else false
*/
bool operator==(const Page& other) const;
/**
* @brief Set the pageId of the page.
* @param id the page id of the page
*/
void setPageId(unsigned int id);
/**
* @brief Return the page id of the page.
* @return the page id of the page
*/
unsigned int pageId() const;
/**
* @brief Set the title of the page.
* @param title the title of the page
*/
void setTitle(const QString& title);
/**
* @brief Return the title of the page.
* @return the title of the page
*/
QString pageTitle() const;
/**
* @brief Set the namespace of the page.
* @param ns the namespace of the page
*/
void setNs(unsigned int ns) const;
/**
* @brief Return the namespace of the page.
* @return the namespace of the page
*/
unsigned int pageNs() const;
/**
* @brief Set the last revision id of the page.
* @param lastRevId the last revision id of the page
*/
void setLastRevId(unsigned int lastRevId) const;
/**
* @brief Return the last revision id of the page.
* @return the last revision id of the page
*/
unsigned int pageLastRevId() const;
/**
* @brief Set the number of views of the page.
* @param counter the number of views of the page
*/
void setCounter(unsigned int counter) const;
/**
* @brief Return the number of views of the page.
* @return the number of views of the page
*/
unsigned int pageCounter() const;
/**
* @brief Set the page size.
* @param length the page size
*/
void setLength(unsigned int length) const;
/**
* @brief Return the page size.
* @return the page size
*/
unsigned int pageLength() const;
/**
* @brief Set the page token.
* @param editToken the page token
*/
void setEditToken(const QString& editToken);
/**
* @brief Return the page token.
* @return the page token
*/
QString pageEditToken() const;
/**
* @brief Set the page ID of the talk page for each non-talk page.
* @param talkid the page ID of the talk page for each non-talk page
*/
void setTalkid(unsigned int talkid) const;
/**
* @brief Return the page ID of the talk page for each non-talk page.
* @return the page ID of the talk page for each non-talk page
*/
unsigned int pageTalkid() const;
/**
* @brief Set the full url of the page.
* @param fullurl the full url of the page
*/
void setFullurl(const QUrl& fullurl);
/**
* @brief Return the full url of the page.
* @return the full url of the page
*/
QUrl pageFullurl() const;
/**
* @brief Set the edit url of the page.
* @param editurl the edit url of the page
*/
void setEditurl(const QUrl& editurl);
/**
* @brief Return the edit url of the page.
* @return the edit url of the page
*/
QUrl pageEditurl() const;
/**
* @brief Set the readability of the page.
* @param readable the readability of the page
*/
void setReadable(const QString& readable);
/**
* @brief Return the readability of the page.
* @return the readability of the page
*/
QString pageReadable() const;
/**
* @brief Set the text returned by EditFormPreloadText.
* @param preload the text returned by EditFormPreloadText
*/
void setPreload(const QString& preload);
/**
* @brief Return the text returned by EditFormPreloadText.
* @return the text returned by EditFormPreloadText
*/
QString pagePreload() const;
/**
* @brief Set the last touched timestamp.
* @param touched the last touched timestamp
*/
void setTouched(const QDateTime& touched);
/**
* @brief Return the last touched timestamp.
* @return the last touched timestamp
*/
QDateTime pageTouched() const;
/**
* @brief Set the timestamp when you obtained the edit token.
* @param starttimestamp the timestamp when you obtained the edit token
*/
void setStarttimestamp(const QDateTime& starttimestamp);
/**
* @brief Return the timestamp when you obtained the edit token.
* @return the timestamp when you obtained the edit token
*/
QDateTime pageStarttimestamp() const;
private:
class PagePrivate;
PagePrivate* const d;
};
} // namespace mediawiki
#endif // PAGE_H
|