Fix modest_tny_msg_header_get_all_recipients_list (in case from is empty)
[modest] / src / modest-tny-send-queue.h
index 6c23f06..51e1fef 100644 (file)
@@ -91,17 +91,6 @@ GType        modest_tny_send_queue_get_type    (void) G_GNUC_CONST;
 ModestTnySendQueue*    modest_tny_send_queue_new        (TnyCamelTransportAccount *account);
 
 
 ModestTnySendQueue*    modest_tny_send_queue_new        (TnyCamelTransportAccount *account);
 
 
-
-/**
- * modest_tny_send_queue_ADD:
- * @self: a valid #ModestTnySendQueue instance
- * @msg: a valid #TnyMsg instance to send 
- * 
- * Add @msg to outbox folder waiting to be sent by 
- * its account send queue. 
- */
-void modest_tny_send_queue_add (ModestTnySendQueue *self, TnyMsg *msg, GError **err);
-
 /**
  * modest_tny_send_queue_sending_in_progress:
  * @self: a valid #ModestTnySendQueue instance
 /**
  * modest_tny_send_queue_sending_in_progress:
  * @self: a valid #ModestTnySendQueue instance
@@ -156,6 +145,8 @@ modest_tny_all_send_queues_get_msg_status (TnyHeader *header);
  */
 gchar* modest_tny_send_queue_to_string (ModestTnySendQueue *self);
 
  */
 gchar* modest_tny_send_queue_to_string (ModestTnySendQueue *self);
 
+typedef void (*ModestTnySendQueueWakeupFunc) (ModestTnySendQueue *self, gboolean cancelled, GError *err, gpointer userdata);
+
 /**
  * modest_tny_send_queue_wakeup:
  * @self: a valid #ModestTnySendQueue instance
 /**
  * modest_tny_send_queue_wakeup:
  * @self: a valid #ModestTnySendQueue instance
@@ -164,7 +155,31 @@ gchar* modest_tny_send_queue_to_string (ModestTnySendQueue *self);
  * the send queue will try to send them again. Note that you'd
  * probably need a tny_send_queue_flush to force it
  */
  * the send queue will try to send them again. Note that you'd
  * probably need a tny_send_queue_flush to force it
  */
-void   modest_tny_send_queue_wakeup (ModestTnySendQueue *self);
+void   modest_tny_send_queue_wakeup (ModestTnySendQueue *self, 
+                                    ModestTnySendQueueWakeupFunc callback,
+                                    gpointer userdata);
+
+/**
+ * modest_tny_send_queue_get_requested_send_receive:
+ * @self: a #ModestTnySendQueue
+ *
+ * gets if the last request to send queue was an interactive send
+ * receive or not.
+ *
+ * Returns: %TRUE if last request was an interactive send receive,
+ * %FALSE otherwise.
+ */
+gboolean modest_tny_send_queue_get_requested_send_receive (ModestTnySendQueue *self);
+
+/**
+ * modest_tny_send_queue_set_requested_send_receive:
+ * @self: a #ModestTnySendQueue
+ * @requested_send_receive: mode.
+ *
+ * this should be called on each call to process the queue, to distinguish if the
+ * action was an interactive send receive.
+ */
+void modest_tny_send_queue_set_requested_send_receive (ModestTnySendQueue *self, gboolean requested_send_receive);
 
 
 G_END_DECLS
 
 
 G_END_DECLS