Falkon Develop
Cross-platform Qt-based web browser
opensearchreader.h
Go to the documentation of this file.
1/*
2 * Copyright 2009 Jakub Wieczorek <faw217@gmail.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
18 */
19/* ============================================================
20* Falkon - Qt web browser
21* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
22*
23* This program is free software: you can redistribute it and/or modify
24* it under the terms of the GNU General Public License as published by
25* the Free Software Foundation, either version 3 of the License, or
26* (at your option) any later version.
27*
28* This program is distributed in the hope that it will be useful,
29* but WITHOUT ANY WARRANTY; without even the implied warranty of
30* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31* GNU General Public License for more details.
32*
33* You should have received a copy of the GNU General Public License
34* along with this program. If not, see <http://www.gnu.org/licenses/>.
35* ============================================================ */
36#ifndef OPENSEARCHREADER_H
37#define OPENSEARCHREADER_H
38
39#include "qzcommon.h"
40
41#include <qxmlstream.h>
42
44
45class FALKON_EXPORT OpenSearchReader : public QXmlStreamReader
46{
47public:
49
50 OpenSearchEngine* read(QIODevice* device);
51
52private:
53 OpenSearchEngine* read();
54 QString m_searchXml;
55
56};
57
58#endif // OPENSEARCHREADER_H
59
A class representing a single search engine described in OpenSearch format.
A class reading a search engine description from an external source.
#define FALKON_EXPORT
Definition: qzcommon.h:28