digiKam
mediawiki_usergroup.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 Remi Benoit <r3m1 dot benoit 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_USERGROUP_H
25 #define DIGIKAM_MEDIAWIKI_USERGROUP_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QList>
31 
32 namespace MediaWiki
33 {
34 
38 class UserGroup
39 {
40 
41 public:
42 
46  UserGroup();
47 
52  UserGroup(const UserGroup& other);
53 
57  ~UserGroup();
58 
63  UserGroup& operator=(const UserGroup& other);
64 
70  bool operator==(const UserGroup& other) const;
71 
76  QString name() const;
77 
82  void setName(const QString& name);
83 
88  const QList<QString>& rights() const;
89 
94  QList<QString>& rights();
95 
100  void setRights(const QList<QString>& rights);
101 
106  qint64 number() const;
107 
112  void setNumber(qint64 number);
113 
114 private:
115 
116  class Private;
117  Private* const d;
118 };
119 
120 } // namespace MediaWiki
121 
122 #endif // DIGIKAM_MEDIAWIKI_USERGROUP_H
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49