From 85444223acfafd9d7955032b2cbdad3279ba27ad Mon Sep 17 00:00:00 2001 From: alwin Date: Sat, 13 Dec 2003 20:39:07 +0000 Subject: imap/pop3 wrapper uses base virtual class so we can forward the pointer independend of its later use. ToDo: find a more general interface for it --- (limited to 'noncore/net/mail/libmailwrapper/abstractmail.cpp') diff --git a/noncore/net/mail/libmailwrapper/abstractmail.cpp b/noncore/net/mail/libmailwrapper/abstractmail.cpp new file mode 100644 index 0000000..7380c31 --- a/dev/null +++ b/noncore/net/mail/libmailwrapper/abstractmail.cpp @@ -0,0 +1,13 @@ +#include "abstractmail.h" +#include "imapwrapper.h" +#include "pop3wrapper.h" + +AbstractMail* AbstractMail::getWrapper(IMAPaccount *a) +{ + return new IMAPwrapper(a); +} + +AbstractMail* AbstractMail::getWrapper(POP3account *a) +{ + return new POP3wrapper(a); +} -- cgit v0.9.0.2