digiKam
mediawiki_iface.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_IFACE_H
25
#define DIGIKAM_MEDIAWIKI_IFACE_H
26
27
// Qt includes
28
29
#include <QString>
30
#include <QUrl>
31
#include <QNetworkAccessManager>
32
#include <QNetworkCookieJar>
33
34
namespace
MediaWiki
35
{
36
40
class
Iface
41
{
42
public
:
43
51
explicit
Iface(
const
QUrl& url,
const
QString& customUserAgent = QString());
52
56
~Iface();
57
62
QUrl url()
const
;
63
68
QString userAgent()
const
;
69
74
QNetworkAccessManager* manager()
const
;
75
76
private
:
77
78
// Disable
79
Iface(
const
Iface&) =
delete
;
80
Iface& operator=(
const
Iface&) =
delete
;
81
82
private
:
83
84
class
Private;
85
Private*
const
d;
86
87
friend
class
JobPrivate;
88
};
89
90
}
// namespace MediaWiki
91
92
#endif
// DIGIKAM_MEDIAWIKI_IFACE_H
core
dplugins
generic
webservices
mediawiki
backend
mediawiki_iface.h
Generated by
1.9.1