1
#ifndef __HPP_VIRUSENGINE
2
#define __HPP_VIRUSENGINE
4
// This program is free software; you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation; either version 2 of the License, or
7
// (at your option) any later version.
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
// Written by Aecio F. Neto(afn@harvest.com.br)
19
// Harvest Consultoria (http://www.harvest.com.br)
21
// and somewhat hacked by mad@madness.at ;-)
26
// this is our abstract base class that specifies the av-engine api throughout dg
32
{ AV_FAIL = -1, AV_CLEAN = 0, AV_VIRUS = 1 };
37
virtual ~ VirusEngine ()
41
virtual int loadEngine () = 0;
42
virtual int reloadEngine () = 0;
43
virtual int unloadEngine () = 0;
45
virtual int scanFile (const char *_fname) = 0;
47
virtual const char *getVirusName () = 0;
48
virtual const char *getErrString () = 0;
50
virtual void setVirusName (const char *_vname) = 0;
51
virtual void setErrString (const char *_err_str) = 0;