urbackup_backend/urlplugin/IUrlFactory.h
2011-09-22 21:17:31 +02:00

28 lines
641 B
C++

#ifndef IURLFACTORY_H
#define IURLFACTORY_H
#include "../Interface/Plugin.h"
#include <string>
#include <vector>
struct MailServer
{
MailServer(void) : port(22), ssl_only(false), check_certificate(true) {}
std::string servername;
unsigned short port;
std::string username;
std::string password;
std::string mailfrom;
bool ssl_only;
bool check_certificate;
};
class IUrlFactory : public IPlugin
{
public:
virtual bool sendMail(const MailServer &server, const std::vector<std::string> &to,
const std::string &subject, const std::string &message, std::string *errmsg=NULL)=0;
};
#endif //IURLFACTORY_H