diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-15 02:54:32 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-15 03:19:56 +0800 |
commit | 39ea553b7f43822ab6d372ed8220775969e41aca (patch) | |
tree | 748d22854fcfa47ab471ff7eacff8ce8116629b3 /mail/mail-ops.c | |
parent | a37a66eed072e5f29390e6581739e0515b2bf402 (diff) | |
download | gsoc2013-evolution-39ea553b7f43822ab6d372ed8220775969e41aca.tar.gz gsoc2013-evolution-39ea553b7f43822ab6d372ed8220775969e41aca.tar.zst gsoc2013-evolution-39ea553b7f43822ab6d372ed8220775969e41aca.zip |
Remove mail_get_folder_quota().
Use camel_folder_get_quota_info() instead.
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index e57b63445e..1c8b900a87 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1127,83 +1127,6 @@ mail_get_folderinfo (CamelStore *store, return id; } -/* ** GET FOLDER'S QUOTA ********************************************************* */ - -struct _get_quota_msg { - MailMsg base; - - CamelFolder *folder; - CamelFolderQuotaInfo *quota; - void (*done) (CamelFolder *folder, const gchar *folder_uri, CamelFolderQuotaInfo *quota, gpointer data); - gchar *folder_uri; - gpointer data; -}; - -static gchar * -get_quota_desc (struct _get_quota_msg *m) -{ - return g_strdup_printf ( - _("Retrieving quota information for folder '%s'"), - camel_folder_get_display_name (m->folder)); -} - -static void -get_quota_exec (struct _get_quota_msg *m, - GCancellable *cancellable, - GError **error) -{ - m->quota = camel_folder_get_quota_info (m->folder); -} - -static void -get_quota_done (struct _get_quota_msg *m) -{ - if (m->done) - m->done (m->folder, m->folder_uri, m->quota, m->data); -} - -static void -get_quota_free (struct _get_quota_msg *m) -{ - if (m->folder) - g_object_unref (m->folder); - if (m->quota) - camel_folder_quota_info_free (m->quota); - g_free (m->folder_uri); -} - -static MailMsgInfo get_quota_info = { - sizeof (struct _get_quota_msg), - (MailMsgDescFunc) get_quota_desc, - (MailMsgExecFunc) get_quota_exec, - (MailMsgDoneFunc) get_quota_done, - (MailMsgFreeFunc) get_quota_free -}; - -gint -mail_get_folder_quota (CamelFolder *folder, - const gchar *folder_uri, - void (*done)(CamelFolder *folder, const gchar *uri, CamelFolderQuotaInfo *quota, gpointer data), - gpointer data, MailMsgDispatchFunc dispatch) -{ - struct _get_quota_msg *m; - gint id; - - g_return_val_if_fail (folder != NULL, -1); - - m = mail_msg_new (&get_quota_info); - m->folder = folder; - m->folder_uri = g_strdup (folder_uri); - m->data = data; - m->done = done; - - g_object_ref (m->folder); - - id = m->base.seq; - dispatch (m); - return id; -} - /* ** REMOVE FOLDER ******************************************************* */ struct _remove_folder_msg { |