/****************************************************************************
** Form interface generated from reading ui file 'database.ui'
**
** Created: Sun Mar 20 11:08:01 2005
**      by: The User Interface Compiler ($Id: dbviewer.h,v 1.2 2006/04/05 18:03:51 hoganrobert Exp $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#ifndef KLAMDB_H
#define KLAMDB_H

#include <tqvariant.h>
#include <tqdialog.h>

#include <kurl.h>

class TQVBoxLayout;
class TQHBoxLayout;
class TQGridLayout;
class TQSpacerItem;
class TQTabWidget;
class TQWidget;
class TDEListViewSearchLine;
class TQListView;
class TDEListView;
class TDEListViewItem;
class TQListViewItem;
class KProgress;
class KProgressDialog;
class TQLabel;
class TQPopupMenu;


namespace KlamAV
{
    class TabWidget;
    class PageViewer;
}

class KlamDB : public TQDialog
{
    Q_OBJECT

public:
    KlamDB( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
    ~KlamDB();

    KlamAV::TabWidget* tabBrowser;
    TQWidget* tab;
    TDEListViewSearchLine* kLineEdit1;
    TDEListView* VirusList;
    void slotExternal(TQString name, TQString service);

public slots:
	void shouldIShow(TQWidget * current);

protected:
    TQGridLayout* dblayout;

private:
	int listdir(const char *dirname);
	int checkdir(const char *dirname);
	int listdb(const char *filename);
	unsigned int getSigNos();
	KProgress* prog;
	KProgressDialog* progress;
	void addVirusName(char * start);
	int count;
	int sigs;
	int newsigs;
	TQLabel* label;
	void slotOpenHome();
	TQPopupMenu* menu;
	void slotOpenPrefix(TQString prefix, TQString title,TQString url);
	KlamAV::PageViewer* homepage;
        bool loadinprogress;
protected slots:
    virtual void languageChange();
    void slotOpenTab(TQListViewItem * item , const TQPoint &point, int num );
    void slotOpenTabPlain(const KURL& url, bool background = false);
    void slotTabCaption(const TQString &capt);
    void slotRMB( TQListViewItem* Item, const TQPoint & point, int num);
	void slotVirusPool();
	void slotVirusList();
	void slotGoogle();
	void slotTrendMicro();


};

#endif // KLAMDB_H