00001 /*************************************************************************** 00002 * * 00003 * search.h * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * Read the file COPYING for details. * 00011 * * 00012 * copyright: (C) 2003 by Jan Mueller * 00013 * email: janmueller7@hotmail.com * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef SEARCH_H 00018 #define SEARCH_H 00019 00020 #include "readonlyformbase.h" 00021 #include "searchform.h" 00022 #include "fillsearchlist.h" 00023 #include <qtimer.h> 00024 00025 class Search: public ReadOnlyFormBase { 00026 Q_OBJECT 00027 00028 private: 00029 Search(const Search&); 00030 Search& operator=(const Search&); 00031 SearchForm *searchform; 00032 FillSearchList *fillsearchlist; 00033 QTimer threadtimer; 00034 bool setData(); 00035 void customEvent(QCustomEvent *e); 00036 00037 protected slots: 00038 virtual void startSearch(); 00039 virtual void linkClicked(const QString &link); 00040 virtual void checkThreads(); 00041 00042 public: 00043 Search(LitUrl u, QObject *receiver, QString slot, QWidget *parent=0, const char *name=0); 00044 ~Search(); 00045 }; 00046 #endif