File indexing completed on 2024-05-12 04:58:11
0001 /* 0002 * Copyright 2009 Jakub Wieczorek <faw217@gmail.com> 0003 * 0004 * This program is free software; you can redistribute it and/or modify 0005 * it under the terms of the GNU General Public License as published by 0006 * the Free Software Foundation; either version 2 of the License, or 0007 * (at your option) any later version. 0008 * 0009 * This program is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU General Public License 0015 * along with this program; if not, write to the Free Software 0016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 0017 * Boston, MA 02110-1301 USA 0018 */ 0019 /* ============================================================ 0020 * Falkon - Qt web browser 0021 * Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com> 0022 * 0023 * This program is free software: you can redistribute it and/or modify 0024 * it under the terms of the GNU General Public License as published by 0025 * the Free Software Foundation, either version 3 of the License, or 0026 * (at your option) any later version. 0027 * 0028 * This program is distributed in the hope that it will be useful, 0029 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0030 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0031 * GNU General Public License for more details. 0032 * 0033 * You should have received a copy of the GNU General Public License 0034 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0035 * ============================================================ */ 0036 #ifndef OPENSEARCHREADER_H 0037 #define OPENSEARCHREADER_H 0038 0039 #include "qzcommon.h" 0040 0041 #include <qxmlstream.h> 0042 0043 class OpenSearchEngine; 0044 0045 class FALKON_EXPORT OpenSearchReader : public QXmlStreamReader 0046 { 0047 public: 0048 OpenSearchReader(); 0049 0050 OpenSearchEngine* read(QIODevice* device); 0051 0052 private: 0053 OpenSearchEngine* read(); 0054 QString m_searchXml; 0055 0056 }; 0057 0058 #endif // OPENSEARCHREADER_H 0059