summaryrefslogtreecommitdiff
path: root/include/MailServer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/MailServer.h')
-rw-r--r--include/MailServer.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/MailServer.h b/include/MailServer.h
index df1f83a..e39ad93 100644
--- a/include/MailServer.h
+++ b/include/MailServer.h
@@ -28,9 +28,16 @@
#include <Exceptions.h>
#include <Variables.h>
+class MailHandler : public Base {
+ public:
+ MailHandler() {}
+ virtual ~MailHandler() {}
+ virtual void ProcessMail(Handle * in, const String & from, std::vector<String> tos) = 0;
+};
+
class MailServer : public Task {
public:
- MailServer(int = 2500, const String & = String("GruiK Server v0.2")) throw (GeneralException);
+ MailServer(MailHandler *, int = 2500, const String & = String("GruiK Server v0.2")) throw (GeneralException);
virtual ~MailServer();
virtual String GetName();
@@ -41,6 +48,7 @@ class MailServer : public Task {
Socket Listener;
String name;
int localport;
+ MailHandler * handler;
};
#endif