X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-tny-transport-actions.h;h=47fef650ce51d5f86a799f340932e81cb6ffe061;hb=8a3756adc6dee9283588020247f0ff39b95878c0;hp=7fb6d5100e3f2c7367d2ea9fa0795fea86a82107;hpb=b53b477100c6e2ea5c424fba05c232aa7a016679;p=modest diff --git a/src/modest-tny-transport-actions.h b/src/modest-tny-transport-actions.h index 7fb6d51..47fef65 100644 --- a/src/modest-tny-transport-actions.h +++ b/src/modest-tny-transport-actions.h @@ -1,5 +1,34 @@ +/* Copyright (c) 2006, Nokia Corporation + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Nokia Corporation nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS + * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + /* modest-tny-transport-actions.h */ -/* insert (c)/licensing information) */ #ifndef __MODEST_TNY_TRANSPORT_ACTIONS_H__ #define __MODEST_TNY_TRANSPORT_ACTIONS_H__ @@ -40,6 +69,21 @@ GType modest_tny_transport_actions_get_type (void) G_GNUC_CONST; GObject* modest_tny_transport_actions_new (void); +/** + * modest_tny_transport_actions_send_message: + * @self: a ModestTnyTransportActions object + * @transport_account: the TnyTransportAccountIface to use for sending this message + * @from: the email address of the sender + * @to: the email address of the receiver + * @cc: the receivers of a copy of the message (comma-seperated) + * @bcc: the receivers of a blind copy of the message (comma-seperated) + * @subject: the Subject: of the message + * @body: a string containing the message body (text) + * + * send a email message to @to + * + * Returns: TRUE but this will change to whether sending was successful + */ gboolean modest_tny_transport_actions_send_message (ModestTnyTransportActions *self, TnyTransportAccountIface *transport_account, const gchar *from, @@ -47,7 +91,8 @@ gboolean modest_tny_transport_actions_send_message (ModestTnyTransportActions *s const gchar *cc, const gchar *bcc, const gchar *subject, - const gchar *body); + const gchar *body, + const GList *attachments_list); G_END_DECLS