X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=libmodest-dbus-client%2Fsrc%2Flibmodest-dbus-client.h;h=e0aa53aaa9e8cb5c8fc9716f9705278e6e539cb9;hp=03ac5d83a3a472b602b95e70596e1fbe7ae6a51f;hb=8927fc9555dbba94b338cc3a600f183a32e61b74;hpb=6e28ab71050d755e650637a224dffd5ccbeb5729 diff --git a/libmodest-dbus-client/src/libmodest-dbus-client.h b/libmodest-dbus-client/src/libmodest-dbus-client.h index 03ac5d8..e0aa53a 100644 --- a/libmodest-dbus-client/src/libmodest-dbus-client.h +++ b/libmodest-dbus-client/src/libmodest-dbus-client.h @@ -87,15 +87,41 @@ gboolean libmodest_dbus_client_open_message (osso_context_t *osso_context, * libmodest_dbus_client_send_and_receive: * @osso_context: a valid osso_context instance * - * send/receive messages + * send/receive messages automatically for all accounts. This is equivalent + * to the call + * libmodest_dbus_client_send_and_receive_full (@osso_context, %NULL, %TRUE) * - * Returns: TRUE upon success, FALSE otherwise + * Returns: %TRUE upon success, %FALSE otherwise */ gboolean libmodest_dbus_client_send_and_receive (osso_context_t *osso_context); /** + * libmodest_dbus_client_send_and_receive_full: + * @osso_context: a valid osso_context instance + * @account: the account name, or %NULL to do a send receive on all accounts. + * @manual: a #gboolean + * + * send/receive messages. If @manual is %TRUE, the send receive request + * will start immediately. If @manual if %FALSE, it may wait for IP heartbeat + * if enabled. + * + * If Modest is built without heartbeat support, then the result of the call + * will be the same independently of @manual value (always immediate start). + * + * The call will apply to @account only, unless @account is %NULL, that means + * send receive will be performed on all accounts. + * + * Returns: %TRUE upon success, %FALSE otherwise + */ +gboolean libmodest_dbus_client_send_and_receive_full (osso_context_t *osso_context, + const gchar *account, + gboolean manual); + + + +/** * libmodest_dbus_client_open_default_inbox: * @osso_context: a valid osso_context instance *