X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=libmodest-dbus-client%2Flibmodest-dbus-client.c;h=874d5db1c4fed758e8b939059baecaaa2da59f20;hp=e93deaee7b983356afff454a4a704954afffaae9;hb=c712ba618d30859f259b2b4286023fcbeb7e32ed;hpb=045b188038e81aebbc7fc4b899537cd8f61f80c8 diff --git a/libmodest-dbus-client/libmodest-dbus-client.c b/libmodest-dbus-client/libmodest-dbus-client.c index e93deae..874d5db 100644 --- a/libmodest-dbus-client/libmodest-dbus-client.c +++ b/libmodest-dbus-client/libmodest-dbus-client.c @@ -104,7 +104,7 @@ libmodest_dbus_client_mail_to (osso_context_t *osso_context, const gchar *mailto * @bcc: Recipients for blind carbon copies * @subject: Subject line * @body: The actual body of the mail to compose. - * @attachments: Additional list of attachments + * @attachments: Additional list of attachments. A list of URI strings. * * This function will try to do a remote procedure call (rpc) * into modest (or start it if necessary) and open a composer @@ -222,6 +222,30 @@ libmodest_dbus_client_open_default_inbox (osso_context_t *osso_context) return TRUE; } +gboolean +libmodest_dbus_client_open_account (osso_context_t *osso_context, + const gchar *account_id) +{ + osso_rpc_t retval; + const osso_return_t ret = + osso_rpc_run_with_defaults(osso_context, + MODEST_DBUS_NAME, + MODEST_DBUS_METHOD_OPEN_ACCOUNT, &retval, + DBUS_TYPE_STRING, account_id, + DBUS_TYPE_INVALID); + + if (ret != OSSO_OK) { + printf("debug: %s: osso_rpc_run() failed.\n", __FUNCTION__); + return FALSE; + } else { + printf("debug: %s: osso_rpc_run() succeeded.\n", __FUNCTION__); + } + + osso_rpc_free_val(&retval); + + return TRUE; +} + /** * libmodest_dbus_client_delete_message: * @osso_context: a valid #osso_context_t object. @@ -614,8 +638,8 @@ libmodest_dbus_client_search (osso_context_t *osso_ctx, folder = ""; } - sd_v = start_date; - ed_v = end_date; + sd_v = (dbus_int64_t) start_date; + ed_v = (dbus_int64_t) end_date; flags_v = (dbus_int32_t) flags; size_v = (dbus_uint32_t) min_size;