digiKam
mediawiki_querysiteinfousergroups.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 Ludovic Delfau <ludovicdelfau 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_QUERYSITEINFOUSERGROUPS_H
25 #define DIGIKAM_MEDIAWIKI_QUERYSITEINFOUSERGROUPS_H
26 
27 // Local includes
28 
29 #include "mediawiki_job.h"
30 #include "mediawiki_usergroup.h"
31 
32 namespace MediaWiki
33 {
34 
35 class Iface;
36 class QuerySiteinfoUsergroupsPrivate;
37 
43 class QuerySiteinfoUsergroups : public Job
44 {
45  Q_OBJECT
46  Q_DECLARE_PRIVATE(QuerySiteinfoUsergroups)
47 
48 public:
49 
55  explicit QuerySiteinfoUsergroups(Iface& MediaWiki, QObject* const parent = nullptr);
56 
60  ~QuerySiteinfoUsergroups() override;
61 
66  void setIncludeNumber(bool includeNumber);
67 
71  void start() override;
72 
73 Q_SIGNALS:
74 
80  void usergroups(const QList<UserGroup>& usergroups);
81 
82 private Q_SLOTS:
83 
84  void doWorkSendRequest();
85  void doWorkProcessReply();
86 };
87 
88 } // namespace MediaWiki
89 
90 #endif // DIGIKAM_MEDIAWIKI_QUERYSITEINFOUSERGROUPS_H
Definition: piwigotalker.h:48