digiKam
mediawiki_protection.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 Vincent Garcia <xavier dot vincent dot garcia 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_PROTECTION_H
25 #define DIGIKAM_MEDIAWIKI_PROTECTION_H
26 
27 // Qt includes
28 
29 #include <QString>
30 
31 namespace MediaWiki
32 {
33 
39 class Protection
40 {
41 
42 public:
43 
49  Protection();
50 
55  Protection(const Protection& other);
56 
60  ~Protection();
61 
66  Protection& operator=(const Protection& other);
67 
73  bool operator==(const Protection& other) const;
74 
79  void setType(const QString& type);
80 
85  QString type() const;
86 
91  void setLevel(const QString& level);
92 
97  QString level() const;
98 
103  void setExpiry(const QString& expiry);
104 
109  QString expiry() const;
110 
115  void setSource(const QString& source);
116 
121  QString source() const;
122 
123 private:
124 
125  class Private;
126  Private* const d;
127 };
128 
129 } // namespace MediaWiki
130 
131 #endif // DIGIKAM_MEDIAWIKI_PROTECTION_H
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49