summaryrefslogtreecommitdiffstats
path: root/src/dbviewer.h
blob: 885544927739471049ad9a2daa8df2b25fbeb6a6 (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 <qvariant.h>
#include <qdialog.h>

#include <kurl.h>

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QSpacerItem;
class QTabWidget;
class QWidget;
class KListViewSearchLine;
class QListView;
class KListView;
class KListViewItem;
class QListViewItem;
class KProgress;
class KProgressDialog;
class QLabel;
class QPopupMenu;


namespace KlamAV
{
    class TabWidget;
    class PageViewer;
}

class KlamDB : public QDialog
{
    Q_OBJECT

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

    KlamAV::TabWidget* tabBrowser;
    QWidget* tab;
    KListViewSearchLine* kLineEdit1;
    KListView* VirusList;
    void slotExternal(QString name, QString service);

public slots:
	void shouldIShow(QWidget * current);

protected:
    QGridLayout* 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;
	QLabel* label;
	void slotOpenHome();
	QPopupMenu* menu;
	void slotOpenPrefix(QString prefix, QString title,QString url);
	KlamAV::PageViewer* homepage;
        bool loadinprogress;
protected slots:
    virtual void languageChange();
    void slotOpenTab(QListViewItem * item , const QPoint &point, int num );
    void slotOpenTabPlain(const KURL& url, bool background = false);
    void slotTabCaption(const QString &capt);
    void slotRMB( QListViewItem* Item, const QPoint & point, int num);
	void slotVirusPool();
	void slotVirusList();
	void slotGoogle();
	void slotTrendMicro();


};

#endif // KLAMDB_H