[evolution-kolab] CamelKolabIMAPXStore: make SQLite DB updates optional on folder type query
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab] CamelKolabIMAPXStore: make SQLite DB updates optional on folder type query
- Date: Mon, 23 Jul 2012 18:22:57 +0000 (UTC)
commit 0947d0408465b751236c2ec7b5cea6ce3e492e2d
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Mon Jul 23 20:10:46 2012 +0200
CamelKolabIMAPXStore: make SQLite DB updates optional on folder type query
* when querying folder type information, it is not always
desirable to instantly update the persistent DBs
* the automatic updates can now be switched off
src/libekolab/camel-kolab-imapx-store.c | 13 ++++++++-----
src/libekolab/camel-kolab-imapx-store.h | 2 ++
2 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/src/libekolab/camel-kolab-imapx-store.c b/src/libekolab/camel-kolab-imapx-store.c
index 8911fb8..decc7bf 100644
--- a/src/libekolab/camel-kolab-imapx-store.c
+++ b/src/libekolab/camel-kolab-imapx-store.c
@@ -295,10 +295,10 @@ imapx_store_get_foldertype (CamelKolabIMAPXStore *self,
/* resect all metadata gathered so far from CamelIMAPXServer */
md = camel_imapx_extd_store_get_metadata (es,
- spec,
- TRUE,
- cancellable,
- &tmp_err);
+ spec,
+ TRUE,
+ cancellable,
+ &tmp_err);
camel_imapx_metadata_spec_free (spec);
if (tmp_err != NULL) {
@@ -841,6 +841,7 @@ kolab_imapx_store_set_folder_context (CamelKolabIMAPXStore *self,
static KolabFolderTypeID
kolab_imapx_store_get_folder_type (CamelKolabIMAPXStore *self,
const gchar *foldername,
+ gboolean do_updatedb,
GCancellable *cancellable,
GError **err)
{
@@ -854,7 +855,7 @@ kolab_imapx_store_get_folder_type (CamelKolabIMAPXStore *self,
folder_type = imapx_store_get_foldertype (self,
foldername,
- TRUE,
+ do_updatedb,
cancellable,
&tmp_err);
if (tmp_err != NULL) {
@@ -1141,6 +1142,7 @@ camel_kolab_imapx_store_set_folder_context (CamelKolabIMAPXStore *self,
KolabFolderTypeID
camel_kolab_imapx_store_get_folder_type (CamelKolabIMAPXStore *self,
const gchar *foldername,
+ gboolean do_updatedb,
GCancellable *cancellable,
GError **err)
{
@@ -1152,6 +1154,7 @@ camel_kolab_imapx_store_get_folder_type (CamelKolabIMAPXStore *self,
klass = CAMEL_KOLAB_IMAPX_STORE_GET_CLASS (self);
foldertype = klass->get_folder_type (self,
foldername,
+ do_updatedb,
cancellable,
err);
return foldertype;
diff --git a/src/libekolab/camel-kolab-imapx-store.h b/src/libekolab/camel-kolab-imapx-store.h
index af1cf3f..8fbf019 100644
--- a/src/libekolab/camel-kolab-imapx-store.h
+++ b/src/libekolab/camel-kolab-imapx-store.h
@@ -82,6 +82,7 @@ struct _CamelKolabIMAPXStoreClass {
KolabFolderTypeID (*get_folder_type) (CamelKolabIMAPXStore *self,
const gchar *foldername,
+ gboolean do_updatedb,
GCancellable *cancellable,
GError **err);
@@ -104,6 +105,7 @@ camel_kolab_imapx_store_set_folder_context (CamelKolabIMAPXStore *self,
KolabFolderTypeID
camel_kolab_imapx_store_get_folder_type (CamelKolabIMAPXStore *self,
const gchar *foldername,
+ gboolean do_updatedb,
GCancellable *cancellable,
GError **err);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]