formatting is changed according to last astyle settings
[qtrapids] / src / plugins / searchplugin / SearchPlugin.h
1 /***************************************************************************
2  *   Copyright (C) 2009 by Lassi Väätämöinen   *
3  *   lassi.vaatamoinen@ixonos.com   *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  *                                                                         *
10  *   This program is distributed in the hope that it will be useful,       *
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13  *   GNU General Public License for more details.                          *
14  *                                                                         *
15  *   You should have received a copy of the GNU General Public License     *
16  *   along with this program; if not, write to the                         *
17  *   Free Software Foundation, Inc.,                                       *
18  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19  ***************************************************************************/
20 #ifndef SEARCHPLUGIN_H
21 #define SEARCHPLUGIN_H
22
23
24 #include <QObject>
25
26 #include "PluginInterface.h"
27
28 class QWidget;
29 class QComboBox;
30 class QPushButton;
31 class QLineEdit;
32
33 namespace qtrapids
34 {
35
36 class SearchPlugin : public PluginInterface
37 {
38         Q_OBJECT
39         Q_INTERFACES(qtrapids::PluginInterface)
40
41 public:
42         SearchPlugin();
43         virtual void initialize(PluginHostInterface* host);
44         virtual QWidget* getGui();
45
46 signals:
47         void searchResult(QWidget* resultwidget);
48
49 private slots:
50         void on_searchButton_clicked();
51         void on_searchResult(QWidget* resultWidget);
52
53 private:
54         QComboBox *comboBox_;
55         QLineEdit *searchLine_;
56         QPushButton *searchButton_;
57         PluginHostInterface* host_;
58
59 };
60
61 } // namespace qtrapids
62
63 #endif