summaryrefslogtreecommitdiffstats
path: root/src/dbviewer.h
blob: d647bbe853d59717a4e55abdb36c4b28cca60274 (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 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;
        TQString googlePrefix;
        TQString tMicroPrefix;
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 slotGoogle();
	void slotTrendMicro();


};

#endif // KLAMDB_H