Logo Search packages:      
Sourcecode: havp version File versions  Download package

genericscanner.h

/***************************************************************************
                          genericscanner.h  -  description
                             -------------------
    begin                : Sa Feb 12 2005
    copyright            : (C) 2005 by Christian Hilgers
    email                : christian@hilgers.ag
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef GENERICSCANNER_H
#define GENERICSCANNER_H

#include "sockethandler.h"
#include "logfile.h"


#include <sys/types.h>
#include  <errno.h>
#include <iostream>
#include <string>

using namespace std;


class GenericScanner {


protected:

string ScannerAnswer;

pid_t ScannerPid;


public:

int msgqid;

void WriteScannerAnswer ();

string ReadScannerAnswer ();

bool PrepareScanning ( SocketHandler *ProxyServerT );

virtual bool InitDatabase() = 0;

virtual bool ReloadDatabase() = 0;

virtual int Scanning () = 0;

virtual bool InitSelfEngine() = 0;

virtual int ScanningComplete() = 0;

virtual bool SetFileSize( unsigned long ContentLengthT ) = 0;

virtual bool ExpandFile( char *dataT, int lengthT , bool unlockT) = 0 ;

virtual bool DeleteFile() = 0;

//PSEstart
virtual bool FreeDatabase() = 0;
//PSEend

virtual ~GenericScanner ();

GenericScanner ();

};


#endif

Generated by  Doxygen 1.6.0   Back to index