www.pudn.com > antispam-addin.rar > databasemgr.hxx


#ifndef DATABASE_MGR_H_ 
#define DATABASE_MGR_H_ 
 
 
#include "authenticitem.hxx" 
#include "configure.hxx" 
 
 
class AuthenticItem; 
 
//##ModelId=409DC9A501B5 
class DatabaseMgr 
{ 
public: 
	//##ModelId=409DC9A501D1 
	DatabaseMgr(Configure *pConfigure); 
	//##ModelId=409DC9A501D0 
	virtual ~DatabaseMgr(); 
	 
public: 
	bool IsAuthenticSender(char *pszAddress); 
	bool IsSpoolSender(char *pszSubject); 
	void Spool(char* pszAuthCode,char *pszMail); 
	bool GetSpoolMail(char *pszAuthCode,char *originalMail,int &Len); 
	 
	AuthenticItem* Search(char *pszAddress); 
	bool InsertIntoAuthenticDB(AuthenticItem* pAuthenticItem); 
	//##ModelId=409DC9A501C5 
	bool DeleteFromAuthenticDB(char *pszAddress);	 
private: 
	FILE *fpAuthentic; 
	char* SpoolDir; 
}; 
#endif//DATABASE_MGR_H_