digiKam
mediawiki_querysiteinfogeneral.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 Hormiere Guillaume <hormiere dot guillaume at gmail dot com>
11  * Copyright (C) 2011 by Manuel Campomanes <campomanes dot manuel at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_MEDIAWIKI_QUERYSITEINFOGENERAL_H
26 #define DIGIKAM_MEDIAWIKI_QUERYSITEINFOGENERAL_H
27 
28 // Qt includes
29 
30 #include <QList>
31 #include <QString>
32 
33 // Local includes
34 
35 #include "mediawiki_job.h"
36 #include "mediawiki_generalinfo.h"
37 
38 namespace MediaWiki
39 {
40 
41 class Iface;
42 class QuerySiteInfoGeneralPrivate;
43 
49 class QuerySiteInfoGeneral : public Job
50 {
51  Q_OBJECT
52  Q_DECLARE_PRIVATE(QuerySiteInfoGeneral)
53 
54 public:
55 
56  enum
57  {
58  IncludeAllDenied = Job::UserDefinedError + 1
59  };
60 
61 public:
62 
68  explicit QuerySiteInfoGeneral(Iface& MediaWiki, QObject* const parent = nullptr);
69 
73  ~QuerySiteInfoGeneral() override;
74 
78  void start() override;
79 
80 Q_SIGNALS:
81 
86  void result(const Generalinfo& generalinfo);
87 
88 private Q_SLOTS:
89 
90  void doWorkSendRequest();
91  void doWorkProcessReply();
92 };
93 
94 } // namespace MediaWiki
95 
96 #endif // DIGIKAM_MEDIAWIKI_QUERYSITEINFOGENERAL_H