digiKam
mediawiki_revision.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 Robin Bussenot <bussenot dot robin 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_REVISION_H
25
#define DIGIKAM_MEDIAWIKI_REVISION_H
26
27
// Qt includes
28
29
#include <QDateTime>
30
31
namespace
MediaWiki
32
{
33
37
class
Revision
38
{
39
40
public
:
41
45
Revision();
46
50
~Revision();
51
56
Revision(
const
Revision& other);
57
62
Revision& operator=(
const
Revision& other);
63
69
bool
operator==
(
const
Revision& other)
const
;
70
75
void
setRevisionId(
int
revisionId);
76
81
int
revisionId()
const
;
82
87
void
setParentId(
int
parentId);
88
93
int
parentId()
const
;
94
99
void
setSize(
int
size);
100
105
int
size()
const
;
106
111
void
setMinorRevision(
bool
minorRevision);
112
117
bool
minorRevision()
const
;
118
123
QDateTime timestamp()
const
;
124
129
void
setTimestamp(
const
QDateTime& timestamp);
130
135
QString user()
const
;
136
141
void
setUser(
const
QString& user);
142
146
QString content()
const
;
147
152
void
setContent(
const
QString& content);
153
158
QString comment()
const
;
159
164
void
setComment(
const
QString& comment);
165
170
void
setParseTree(
const
QString& parseTree);
171
176
QString parseTree()
const
;
177
182
void
setRollback(
const
QString& rollback);
183
188
QString rollback()
const
;
189
190
private
:
191
192
class
Private;
193
Private*
const
d;
194
};
195
196
}
// namespace MediaWiki
197
198
#endif
// DIGIKAM_MEDIAWIKI_REVISION_H
Digikam::operator==
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition:
searchtextbar.cpp:49
core
dplugins
generic
webservices
mediawiki
backend
mediawiki_revision.h
Generated by
1.9.1