summaryrefslogtreecommitdiff
path: root/src/search/opensearchmanager.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-08-16 11:52:08 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-08-16 11:52:08 +0200
commit7888d6166a34cdae0c88956208d9269fe448d3e6 (patch)
tree76eadc7e890095e8c499ae13ec791a63a8348374 /src/search/opensearchmanager.h
parentMerge commit 'refs/merge-requests/169' of git://gitorious.org/rekonq/mainline... (diff)
downloadrekonq-7888d6166a34cdae0c88956208d9269fe448d3e6.tar.xz
OpenSearch review
- file headers fix - clean up code - import engine files
Diffstat (limited to 'src/search/opensearchmanager.h')
-rw-r--r--src/search/opensearchmanager.h68
1 files changed, 44 insertions, 24 deletions
diff --git a/src/search/opensearchmanager.h b/src/search/opensearchmanager.h
index 59e7e6b2..8a45b83c 100644
--- a/src/search/opensearchmanager.h
+++ b/src/search/opensearchmanager.h
@@ -1,45 +1,66 @@
-/* This file is part of the KDE project
- * Copyright (C) 2009 Fredy Yanardi <fyanardi@gmail.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
+/* ============================================================
+*
+* This file is a part of the rekonq project
+*
+* Copyright (C) 2009 by Fredy Yanardi <fyanardi@gmail.com>
+* Copyright (C) 2010 by Lionel Chauvin <megabigbug@yahoo.fr>
+* Copyright (C) 2010 by Andrea Diamantini <adjam7 at gmail dot com>
+*
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License as
+* published by the Free Software Foundation; either version 2 of
+* the License or (at your option) version 3 or any later version
+* accepted by the membership of KDE e.V. (or its successor approved
+* by the membership of KDE e.V.), which shall act as a proxy
+* defined in Section 14 of version 3 of the license.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*
+* ============================================================ */
+
#ifndef OPENSEARCHMANAGER_H
#define OPENSEARCHMANAGER_H
-#include <QtCore/QObject>
+
+// Rekonq Includes
+#include "rekonq_defines.h"
+
+// KDE Includes
#include <kio/jobclasses.h>
-class SuggestionEngine;
+// Qt Includes
+#include <QtCore/QObject>
+// Forward Declarations
+class SuggestionEngine;
class OpenSearchEngine;
+
/**
- * This class acts as a proxy between the SearchBar plugin and the individual suggestion engine.
- * This class has a map of all available engines, and route the suggestion request to the correct engine
+ * This class acts as a proxy between the SearchBar plugin
+ * and the individual suggestion engine.
+ * This class has a map of all available engines,
+ * and route the suggestion request to the correct engine.
*/
class OpenSearchManager : public QObject
{
Q_OBJECT
- enum STATE {
+ enum STATE
+ {
REQ_SUGGESTION,
REQ_DESCRIPTION,
IDLE
};
+
public:
/**
* Constructor
@@ -85,4 +106,3 @@ private:
};
#endif // OPENSEARCHMANAGER_H
-