Show invite menu in wlm chat window immediately
[kdenetwork.git] / kopete / libkopete / ui / kopetelistviewsearchline.h
blob13a7e9d785ba1a14fd21ec0cc3a790fb3be16858
1 /*
2 kopetelistviewsearchline.h - a widget for performing quick searches of Kopete::ListViews
4 Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
6 Kopete (c) 2004 by the Kopete developers <kopete-devel@kde.org>
8 *************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 *************************************************************************
18 #ifndef KOPETELISTVIEWSEARCHLINE_H
19 #define KOPETELISTVIEWSEARCHLINE_H
21 #include <k3listviewsearchline.h>
22 #include <kopete_export.h>
24 namespace Kopete {
25 namespace UI {
26 namespace ListView {
28 class ListView;
30 class KOPETE_EXPORT SearchLine : public K3ListViewSearchLine
32 Q_OBJECT
33 public:
34 /**
35 * Constructs a SearchLine with \a listView being the
36 * ListView to be filtered.
38 * If \a listView is null then the widget will be disabled until a listview
39 * is set with setListView().
41 explicit SearchLine( QWidget *parent = 0, ListView *listView = 0 );
42 /**
43 * Destroys the SearchLine.
45 ~SearchLine();
47 void updateSearch( const QString &s );
49 protected:
50 virtual void checkItemParentsNotVisible();
51 virtual bool checkItemParentsVisible( Q3ListViewItem *it );
52 virtual void setItemVisible( Q3ListViewItem *it, bool visible );
54 private:
55 QString search;
56 bool searchEmpty;
59 } // end namespace ListView
60 } // end namespace UI
61 } // end namespace Kopete
63 #endif