~ubuntu-branches/ubuntu/intrepid/dansguardian/intrepid-security

« back to all changes in this revision

Viewing changes to VirusEngine.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2008-04-06 14:47:06 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080406144706-2r26l1rougdmb1sd
Tags: 2.9.9.3-2
This time build with gcc 4.3 (Closes: #454889) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __HPP_VIRUSENGINE
2
 
#define __HPP_VIRUSENGINE
3
 
 
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.
8
 
//
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.
13
 
//
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
17
 
 
18
 
//  Written by Aecio F. Neto(afn@harvest.com.br)
19
 
//              Harvest Consultoria (http://www.harvest.com.br)
20
 
//
21
 
//  and somewhat hacked by mad@madness.at ;-)
22
 
//
23
 
 
24
 
using namespace std;
25
 
 
26
 
// this is our abstract base class that specifies the av-engine api throughout dg
27
 
//
28
 
class VirusEngine
29
 
{
30
 
public:
31
 
  enum
32
 
  { AV_FAIL = -1, AV_CLEAN = 0, AV_VIRUS = 1 };
33
 
 
34
 
    VirusEngine ()
35
 
  {
36
 
  };
37
 
  virtual ~ VirusEngine ()
38
 
  {
39
 
  };
40
 
 
41
 
  virtual int loadEngine () = 0;
42
 
  virtual int reloadEngine () = 0;
43
 
  virtual int unloadEngine () = 0;
44
 
 
45
 
  virtual int scanFile (const char *_fname) = 0;
46
 
 
47
 
  virtual const char *getVirusName () = 0;
48
 
  virtual const char *getErrString () = 0;
49
 
 
50
 
  virtual void setVirusName (const char *_vname) = 0;
51
 
  virtual void setErrString (const char *_err_str) = 0;
52
 
};
53
 
 
54
 
#endif