- License texts modified to GPLv2
[qtrapids] / src / plugins / searchplugin / SearchPlugin.cpp
index fbc406f..7c28980 100644 (file)
@@ -1,11 +1,9 @@
 /***************************************************************************
- *   Copyright (C) 2009 by Lassi Väätämöinen   *
- *   lassi.vaatamoinen@ixonos.com   *
+ *   Copyright (C) 2010 by Ixonos Plc   *
  *                                                                         *
  *   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) any later version.                                   *
+ *   the Free Software Foundation; version 2 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        *
@@ -41,7 +39,7 @@ namespace qtrapids
        const QString ENGINES_DIR = "engines";
        const QString DESCRIPTION_FILENAME = "opensearch.xml";
        const QString SEARCH_TERMS_STRING = "{searchTerms}";
-       
+       const QString SEARCHPLUGIN_ID = "SearchPlugin";
        
        SearchPlugin::SearchPlugin() : 
                comboBox_(NULL), searchLine_(NULL),
@@ -80,7 +78,7 @@ namespace qtrapids
                                ParseSearchEngineDescriptions(dir);
                        }
                        
-                       host_->setGui(pluginWidget, qtrapids::PluginHostInterface::BASE_WIDGET);
+                       host_->setGui(pluginWidget, qtrapids::PluginHostInterface::BASE_WIDGET, this);
                }
        }
        
@@ -88,6 +86,11 @@ namespace qtrapids
        {
                return NULL;
        }
+       
+       QString SearchPlugin::identifier()
+       {
+               return SEARCHPLUGIN_ID;
+       }
 
 
        void SearchPlugin::on_searchButton_clicked()