2007-05-25 Murray Cumming <murrayc@murrayc.com>
[modest] / src / modest-tny-send-queue.h
index 0af775a..41ecdfc 100644 (file)
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-
-#ifndef __MODEST_TNY_SEND_QUEUE_H__
-#define __MODEST_TNY_SEND_QUEUE_H__
-
 #include <glib.h>
 #include <glib-object.h>
 #include <tny-send-queue.h>
@@ -38,6 +34,9 @@
 #include <tny-msg.h>
 #include <tny-camel-transport-account.h>
 
+#ifndef __MODEST_TNY_SEND_QUEUE_H__
+#define __MODEST_TNY_SEND_QUEUE_H__
+
 G_BEGIN_DECLS
 
 /* convenience macros */
@@ -80,6 +79,20 @@ GType        modest_tny_send_queue_get_type    (void) G_GNUC_CONST;
  */
 ModestTnySendQueue*    modest_tny_send_queue_new        (TnyCamelTransportAccount *account);
 
+
+
+/**
+ * modest_tny_send_queue_try_to_send:
+ * @self: a valid #ModestTnySendQueue instance
+ * 
+ * Try to send the messages that are in the queue's outbox folder.
+ * This is not always necessary because the queue tries to send 
+ * messages as soon as a message is added, and as soon as the queue 
+ * is instantiated.
+ */
+void modest_tny_send_queue_try_to_send (ModestTnySendQueue* self);
+
+
 G_END_DECLS
 
 #endif /* __MODEST_TNY_SEND_QUEUE_H__ */