aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/builtinServices.inl
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/builtinServices.inl')
-rw-r--r--src/net/builtinServices.inl56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/net/builtinServices.inl b/src/net/builtinServices.inl
new file mode 100644
index 00000000..498d41eb
--- /dev/null
+++ b/src/net/builtinServices.inl
@@ -0,0 +1,56 @@
+//
+// VMime library (http://www.vmime.org)
+// Copyright (C) 2002-2005 Vincent Richard <[email protected]>
+//
+// 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.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+//
+
+#ifndef VMIME_BUILDING_DOC
+
+
+#define REGISTER_SERVICE(p_class, p_name) \
+ vmime::net::service::initializer <vmime::net::p_class> p_name(#p_name)
+
+
+#if VMIME_BUILTIN_MESSAGING_PROTO_POP3
+ #include "vmime/net/pop3/POP3Store.hpp"
+ REGISTER_SERVICE(pop3::POP3Store, pop3);
+#endif
+
+
+#if VMIME_BUILTIN_MESSAGING_PROTO_SMTP
+ #include "vmime/net/smtp/SMTPTransport.hpp"
+ REGISTER_SERVICE(smtp::SMTPTransport, smtp);
+#endif
+
+
+#if VMIME_BUILTIN_MESSAGING_PROTO_IMAP
+ #include "vmime/net/imap/IMAPStore.hpp"
+ REGISTER_SERVICE(imap::IMAPStore, imap);
+#endif
+
+
+#if VMIME_BUILTIN_MESSAGING_PROTO_MAILDIR
+ #include "vmime/net/maildir/maildirStore.hpp"
+ REGISTER_SERVICE(maildir::maildirStore, maildir);
+#endif
+
+#if VMIME_BUILTIN_MESSAGING_PROTO_SENDMAIL
+ #include "vmime/net/sendmail/sendmailTransport.hpp"
+ REGISTER_SERVICE(sendmail::sendmailTransport, sendmail);
+#endif
+
+
+#endif // VMIME_BUILDING_DOC