summaryrefslogtreecommitdiffstats
path: root/src/dbviewer.h
blob: 6f0b280cd711f2ee99acab03ffcc6fef71a1e2da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
    /****************************************************************************
** 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 KListViewSearchLine;
class TQListView;
class KListView;
class KListViewItem;
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;
    KListViewSearchLine* kLineEdit1;
    KListView* 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