/
WBackendDuckDuckGo.h
61 lines (43 loc) · 2.05 KB
/
WBackendDuckDuckGo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//=================================================================================================
/*
Copyright (C) 2015-2017 Sky kit authors united with omega. <http://omega.gg/about>
Author: Benjamin Arnaud. <http://bunjee.me> <bunjee@omega.gg>
This file is part of the SkBackend module of Sky kit.
- GNU General Public License Usage:
This file may be used under the terms of the GNU General Public License version 3 as published
by the Free Software Foundation and appearing in the LICENSE.md file included in the packaging
of this file. Please review the following information to ensure the GNU General Public License
requirements will be met: https://www.gnu.org/licenses/gpl.html.
*/
//=================================================================================================
#ifndef WBACKENDDUCKDUCKGO_H
#define WBACKENDDUCKDUCKGO_H
// Sk includes
#include <WBackendNet>
#ifndef SK_NO_BACKENDDUCKDUCKGO
// Forward declarations
class WBackendDuckDuckGoPrivate;
class SK_BACKEND_EXPORT WBackendDuckDuckGo : public WBackendNet
{
Q_OBJECT
public:
WBackendDuckDuckGo();
public: // WBackendNet implementation
/* Q_INVOKABLE virtual */ QString getId () const;
/* Q_INVOKABLE virtual */ QString getTitle() const;
public: // WBackendNet reimplementation
/* Q_INVOKABLE virtual */ bool isSearchEngine() const;
/* Q_INVOKABLE virtual */ QString validate() const;
//---------------------------------------------------------------------------------------------
/* Q_INVOKABLE virtual */
WBackendNetQuery createQuery(const QString & method,
const QString & label, const QString & q) const;
//---------------------------------------------------------------------------------------------
/* Q_INVOKABLE virtual */
WBackendNetFolder extractFolder(const QByteArray & data,
const WBackendNetQuery & query) const;
private:
W_DECLARE_PRIVATE(WBackendDuckDuckGo)
};
#endif // SK_NO_BACKENDDUCKDUCKGO
#endif // WBACKENDDUCKDUCKGO_H