aboutsummaryrefslogtreecommitdiffstats
path: root/src/vmime/net/transport.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vmime/net/transport.hpp')
-rw-r--r--src/vmime/net/transport.hpp44
1 files changed, 26 insertions, 18 deletions
diff --git a/src/vmime/net/transport.hpp b/src/vmime/net/transport.hpp
index a54f041e..2f9878d0 100644
--- a/src/vmime/net/transport.hpp
+++ b/src/vmime/net/transport.hpp
@@ -1,6 +1,6 @@
//
// VMime library (http://www.vmime.org)
-// Copyright (C) 2002-2013 Vincent Richard <[email protected]>
+// Copyright (C) 2002 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
@@ -51,12 +51,15 @@ namespace net {
/** A transport service.
* Encapsulate protocols that can send messages.
*/
+class VMIME_EXPORT transport : public service {
-class VMIME_EXPORT transport : public service
-{
protected:
- transport(const shared_ptr <session>& sess, const serviceInfos& infos, const shared_ptr <security::authenticator>& auth);
+ transport(
+ const shared_ptr <session>& sess,
+ const serviceInfos& infos,
+ const shared_ptr <security::authenticator>& auth
+ );
public:
@@ -67,7 +70,10 @@ public:
* @param msg message to send
* @param progress progress listener, or NULL if not used
*/
- virtual void send(const shared_ptr <vmime::message>& msg, utility::progressListener* progress = NULL);
+ virtual void send(
+ const shared_ptr <vmime::message>& msg,
+ utility::progressListener* progress = NULL
+ );
/** Send a message over this transport service.
*
@@ -78,13 +84,14 @@ public:
* @param progress progress listener, or NULL if not used
* @param sender envelope sender (if empty, expeditor will be used)
*/
- virtual void send
- (const mailbox& expeditor,
- const mailboxList& recipients,
- utility::inputStream& is,
- const size_t size,
- utility::progressListener* progress = NULL,
- const mailbox& sender = mailbox()) = 0;
+ virtual void send(
+ const mailbox& expeditor,
+ const mailboxList& recipients,
+ utility::inputStream& is,
+ const size_t size,
+ utility::progressListener* progress = NULL,
+ const mailbox& sender = mailbox()
+ ) = 0;
/** Send a message over this transport service.
* The default implementation simply generates the whole message into
@@ -96,12 +103,13 @@ public:
* @param progress progress listener, or NULL if not used
* @param sender envelope sender (if empty, expeditor will be used)
*/
- virtual void send
- (const shared_ptr <vmime::message>& msg,
- const mailbox& expeditor,
- const mailboxList& recipients,
- utility::progressListener* progress = NULL,
- const mailbox& sender = mailbox());
+ virtual void send(
+ const shared_ptr <vmime::message>& msg,
+ const mailbox& expeditor,
+ const mailboxList& recipients,
+ utility::progressListener* progress = NULL,
+ const mailbox& sender = mailbox()
+ );
Type getType() const;