Falkon
Develop
Cross-platform Qt-based web browser
loadrequest.h
Go to the documentation of this file.
1
/* ============================================================
2
* Falkon - Qt web browser
3
* Copyright (C) 2014-2018 David Rosca <nowrep@gmail.com>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
* ============================================================ */
18
#ifndef LOADREQUEST_H
19
#define LOADREQUEST_H
20
21
#include <QUrl>
22
#include <QWebEngineHttpRequest>
23
24
#include "
qzcommon.h
"
25
26
class
FALKON_EXPORT
LoadRequest
27
{
28
public
:
29
enum
Operation
{
30
GetOperation = 0,
31
PostOperation = 1
32
};
33
34
LoadRequest
();
35
LoadRequest
(
const
LoadRequest
&other);
36
LoadRequest
(
const
QUrl &url,
Operation
op = GetOperation,
const
QByteArray &data = QByteArray());
37
38
LoadRequest
&
operator=
(
const
LoadRequest
&other);
39
40
bool
isValid()
const
;
41
42
QUrl url()
const
;
43
void
setUrl(
const
QUrl &url);
44
45
QString urlString()
const
;
46
47
Operation
operation()
const
;
48
void
setOperation(
Operation
op);
49
50
QByteArray data()
const
;
51
void
setData(
const
QByteArray &data);
52
53
QWebEngineHttpRequest webRequest()
const
;
54
55
private
:
56
QUrl m_url;
57
Operation
m_operation;
58
QByteArray m_data;
59
};
60
61
#endif
// LOADREQUEST_H
LoadRequest
Definition:
loadrequest.h:27
LoadRequest::LoadRequest
LoadRequest(const LoadRequest &other)
LoadRequest::Operation
Operation
Definition:
loadrequest.h:29
LoadRequest::operator=
LoadRequest & operator=(const LoadRequest &other)
qzcommon.h
FALKON_EXPORT
#define FALKON_EXPORT
Definition:
qzcommon.h:28
src
lib
webengine
loadrequest.h
Generated by
1.9.3