[evolution-kolab/ek-wip-porting: 6/6] all: added C mode indentation hint line to all files
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab/ek-wip-porting: 6/6] all: added C mode indentation hint line to all files
- Date: Wed, 30 Nov 2011 11:23:59 +0000 (UTC)
commit 5c2c74980f6063c1396e78842b29fc75e6f46251
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Thu Nov 24 16:09:14 2011 +0100
all: added C mode indentation hint line to all files
* added where missing a comment (first line of file)
with indentation hints for editors which like that
* removed trailing whitespace
src/camel/camel-kolab-imapx-folder.c | 9 ++-
src/camel/camel-kolab-imapx-folder.h | 7 +-
src/camel/camel-kolab-imapx-metadata-db.c | 63 +++++++++---------
src/camel/camel-kolab-imapx-metadata-db.h | 7 +-
src/camel/camel-kolab-imapx-metadata.c | 35 +++++-----
src/camel/camel-kolab-imapx-metadata.h | 7 +-
src/camel/camel-kolab-imapx-store.c | 69 ++++++++++----------
src/camel/camel-kolab-imapx-store.h | 7 +-
src/camel/camel-kolab-imapx-transport.c | 7 +-
src/camel/camel-kolab-imapx-transport.h | 8 +-
src/camel/camel-kolab-session.c | 23 ++++---
src/camel/camel-kolab-session.h | 1 +
src/camel/camel-kolab-stream.c | 9 ++-
src/camel/camel-kolab-stream.h | 1 +
src/libekolab/kolab-folder-summary.c | 15 ++--
src/libekolab/kolab-folder-summary.h | 7 +-
src/libekolab/kolab-mail-info-db-record.c | 21 +++---
src/libekolab/kolab-mail-info-db-record.h | 9 ++-
src/libekolab/kolab-mail-summary.c | 45 +++++++------
src/libekolab/kolab-mail-summary.h | 9 ++-
src/libekolab/kolab-types.h | 13 ++--
.../main/src/evolution/contact-e-to-i.c | 17 +++--
.../main/src/evolution/contact-i-to-e.c | 1 +
.../main/src/evolution/event-e-to-i.c | 3 +-
.../main/src/evolution/event-i-to-e.c | 3 +-
.../main/src/evolution/evolution-util.c | 3 +-
.../main/src/evolution/evolution-util.h | 1 +
src/libekolabconv/main/src/evolution/evolution.h | 1 +
src/libekolabconv/main/src/evolution/note-e-to-i.c | 3 +-
src/libekolabconv/main/src/evolution/note-i-to-e.c | 3 +-
.../main/src/evolution/priv-common-e-to-i.c | 9 ++-
.../main/src/evolution/priv-common-i-to-e.c | 5 +-
.../main/src/evolution/priv-evolution-preserve.c | 7 +-
.../main/src/evolution/priv-evolution.h | 1 +
.../main/src/evolution/priv-incidence-e-to-i.c | 7 +-
.../main/src/evolution/priv-incidence-i-to-e.c | 5 +-
src/libekolabconv/main/src/evolution/task-e-to-i.c | 5 +-
src/libekolabconv/main/src/evolution/task-i-to-e.c | 3 +-
src/libekolabconv/main/src/kolab-conv.c | 17 +++--
src/libekolabconv/main/src/kolab-conv.h | 1 +
src/libekolabconv/main/src/kolab/contact-i-to-k.c | 1 +
src/libekolabconv/main/src/kolab/contact-k-to-i.c | 13 ++--
src/libekolabconv/main/src/kolab/event-i-to-k.c | 1 +
src/libekolabconv/main/src/kolab/event-k-to-i.c | 5 +-
src/libekolabconv/main/src/kolab/kolab-constants.h | 1 +
src/libekolabconv/main/src/kolab/kolab-util.c | 13 ++--
src/libekolabconv/main/src/kolab/kolab-util.h | 1 +
src/libekolabconv/main/src/kolab/kolab.h | 1 +
src/libekolabconv/main/src/kolab/note-i-to-k.c | 1 +
src/libekolabconv/main/src/kolab/note-k-to-i.c | 3 +-
.../main/src/kolab/priv-common-i-to-k.c | 3 +-
.../main/src/kolab/priv-common-k-to-i.c | 7 +-
.../main/src/kolab/priv-incidence-i-to-k.c | 3 +-
.../main/src/kolab/priv-incidence-k-to-i.c | 11 ++--
.../main/src/kolab/priv-kolab-preserve.c | 5 +-
src/libekolabconv/main/src/kolab/priv-kolab.h | 1 +
src/libekolabconv/main/src/kolab/task-i-to-k.c | 3 +-
src/libekolabconv/main/src/kolab/task-k-to-i.c | 7 +-
src/libekolabconv/main/src/logging.c | 1 +
src/libekolabconv/main/src/logging.h | 1 +
src/libekolabconv/main/src/structs/common.c | 1 +
src/libekolabconv/main/src/structs/common.h | 5 +-
src/libekolabconv/main/src/structs/contact.c | 1 +
src/libekolabconv/main/src/structs/contact.h | 1 +
src/libekolabconv/main/src/structs/event.c | 1 +
src/libekolabconv/main/src/structs/event.h | 1 +
src/libekolabconv/main/src/structs/incidence.c | 3 +-
src/libekolabconv/main/src/structs/incidence.h | 1 +
src/libekolabconv/main/src/structs/note.c | 1 +
src/libekolabconv/main/src/structs/note.h | 1 +
src/libekolabconv/main/src/structs/task.c | 1 +
src/libekolabconv/main/src/structs/task.h | 1 +
src/libekolabconv/main/src/util.c | 1 +
src/libekolabconv/main/src/util.h | 1 +
src/libekolabconv/test/src/email-parser.c | 5 +-
src/libekolabconv/test/src/email-parser.h | 1 +
src/libekolabconv/test/src/main.c | 7 +-
src/libekolabconv/test/src/main.h | 1 +
src/libekolabconv/test/src/test-convert-setup.h | 1 +
.../test/src/test-evolution-contact.c | 1 +
src/libekolabconv/test/src/test-evolution-event.c | 7 +-
src/libekolabconv/test/src/test-evolution-note.c | 1 +
src/libekolabconv/test/src/test-evolution-task.c | 3 +-
src/libekolabconv/test/src/test-kolab-contact.c | 7 +-
src/libekolabconv/test/src/test-kolab-event.c | 15 ++--
src/libekolabconv/test/src/test-kolab-note.c | 1 +
src/libekolabconv/test/src/test-kolab-task.c | 15 ++--
src/libekolabconv/test/src/test-util.c | 17 +++--
src/libekolabconv/test/src/test-util.h | 1 +
src/libekolabconv/test/src/testbase.c | 9 ++-
src/libekolabconv/test/src/testbase.h | 1 +
src/libekolabutil/camel-system-headers.h | 7 +-
src/libekolabutil/kolab-util-camel.c | 1 +
src/libekolabutil/kolab-util-camel.h | 7 +-
src/libekolabutil/kolab-util-error.c | 7 +-
src/libekolabutil/kolab-util-error.h | 7 +-
src/libekolabutil/kolab-util-folder.c | 11 ++--
src/libekolabutil/kolab-util-folder.h | 7 +-
src/libekolabutil/kolab-util-glib.c | 17 +++--
src/libekolabutil/kolab-util-glib.h | 7 +-
src/libekolabutil/kolab-util-kconv.c | 17 +++--
src/libekolabutil/kolab-util-kconv.h | 7 +-
src/libekolabutil/kolab-util-sqlite.c | 51 +++++++-------
src/libekolabutil/kolab-util-sqlite.h | 7 +-
src/libekolabutil/kolab-util-types.h | 7 +-
105 files changed, 463 insertions(+), 359 deletions(-)
---
diff --git a/src/camel/camel-kolab-imapx-folder.c b/src/camel/camel-kolab-imapx-folder.c
index 5bd0746..5158b4a 100644
--- a/src/camel/camel-kolab-imapx-folder.c
+++ b/src/camel/camel-kolab-imapx-folder.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-imapx-folder.c
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#include <camel/providers/imapx/camel-imapx-folder.h>
@@ -36,7 +37,7 @@ camel_kolab_imapx_folder_get_uidvalidity (CamelFolder *folder,
{
guint64 uidvalidity;
GError *tmp_err = NULL;
-
+
g_assert (CAMEL_IS_FOLDER (folder));
g_return_val_if_fail (err == NULL || *err == NULL, 0);
diff --git a/src/camel/camel-kolab-imapx-folder.h b/src/camel/camel-kolab-imapx-folder.h
index 33cd88a..8a21ce2 100644
--- a/src/camel/camel-kolab-imapx-folder.h
+++ b/src/camel/camel-kolab-imapx-folder.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-imapx-folder.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#ifndef _CAMEL_KOLAB_IMAPX_FOLDER_H_
diff --git a/src/camel/camel-kolab-imapx-metadata-db.c b/src/camel/camel-kolab-imapx-metadata-db.c
index 849417f..9ef0a2f 100644
--- a/src/camel/camel-kolab-imapx-metadata-db.c
+++ b/src/camel/camel-kolab-imapx-metadata-db.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-imapx-metadata-db.c
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
/* TODO There is code duplication regarding SQLite in KolabImapxMetadataDb,
@@ -32,7 +33,7 @@
*
* A generalized approach could be to use some sort of persistent
* GHashTable, which would be mapped transparently onto a SQLite DB
- * (or an object oriented DB right away), with some constraints
+ * (or an object oriented DB right away), with some constraints
* applying to the hash table keys and values (as with marshalling
* of serializable objects). A GPersistentHashTable could be nested,
* binary data stored as GByteArray values and basic data types carry
@@ -101,13 +102,13 @@ static gint
kolab_db_table_exists_cb (void *data, gint ncols, gchar **coltext, gchar **colname)
{
CamelKolabIMAPXMetaDataDB *mdb = (CamelKolabIMAPXMetaDataDB *)data;
-
+
(void)ncols;
(void)coltext;
(void)colname;
mdb->ctr++;
-
+
return SQLITE_OK;
}
@@ -119,7 +120,7 @@ kolab_db_table_exists (CamelKolabIMAPXMetaDataDB *mdb,
{
gchar* sql_str;
gint sql_errno;
-
+
g_assert (mdb != NULL);
g_assert (mdb->db != NULL);
g_assert (name != NULL);
@@ -137,14 +138,14 @@ kolab_db_table_exists (CamelKolabIMAPXMetaDataDB *mdb,
(void*)mdb,
NULL);
sqlite3_free (sql_str);
-
+
if (sql_errno != SQLITE_OK) {
g_set_error (err,
KOLAB_CAMEL_KOLAB_ERROR,
KOLAB_CAMEL_KOLAB_ERROR_DB,
"%s: %s",
__func__, sqlite3_errmsg (mdb->db));
- return FALSE;
+ return FALSE;
}
if (mdb->ctr > 1) {
@@ -153,7 +154,7 @@ kolab_db_table_exists (CamelKolabIMAPXMetaDataDB *mdb,
KOLAB_CAMEL_KOLAB_ERROR,
KOLAB_CAMEL_KOLAB_ERROR_DB,
"%s: multiple table [%s], corrupted [%s]",
- __func__, name, mdb->path);
+ __func__, name, mdb->path);
return FALSE;
}
@@ -161,7 +162,7 @@ kolab_db_table_exists (CamelKolabIMAPXMetaDataDB *mdb,
*exists = FALSE;
else
*exists = TRUE;
-
+
return TRUE;
}
@@ -184,20 +185,20 @@ kolab_db_table_create (CamelKolabIMAPXMetaDataDB *mdb,
name,
CAMEL_KOLAB_IMAPX_SQLITE_COL_FOLDERNAME,
CAMEL_KOLAB_IMAPX_SQLITE_COL_FOLDERTYPE);
-
+
sql_errno = sqlite3_exec (mdb->db, sql_str, NULL, NULL, NULL);
sqlite3_free (sql_str);
-
+
if (sql_errno != SQLITE_OK) {
g_set_error (err,
KOLAB_CAMEL_KOLAB_ERROR,
KOLAB_CAMEL_KOLAB_ERROR_DB,
"%s: %s",
__func__, sqlite3_errmsg (mdb->db));
- return FALSE;
+ return FALSE;
}
- return TRUE;
+ return TRUE;
}
/*----------------------------------------------------------------------------*/
@@ -235,12 +236,12 @@ kolab_imapx_meta_data_db_open (CamelKolabIMAPXMetaDataDB *mdb,
g_assert (service != NULL);
g_assert (session != NULL);
g_return_val_if_fail (err == NULL || *err == NULL, FALSE);
-
+
if (mdb->db != NULL)
return TRUE;
/* inspired by construct() from camel-store.c */
-
+
store_db_path = g_build_filename (service->url->path,
CAMEL_KOLAB_IMAPX_METADATA_DB_FILE,
NULL);
@@ -290,7 +291,7 @@ kolab_imapx_meta_data_db_open (CamelKolabIMAPXMetaDataDB *mdb,
g_free (store_path);
tmp_db = kolab_db_open_trycreate (store_db_path);
-
+
if (tmp_db == NULL) {
g_set_error (err,
KOLAB_CAMEL_KOLAB_ERROR,
@@ -301,10 +302,10 @@ kolab_imapx_meta_data_db_open (CamelKolabIMAPXMetaDataDB *mdb,
g_free (store_db_path);
return FALSE;
}
-
+
g_free (store_db_path_prev);
}
-
+
mdb->db = tmp_db;
mdb->path = store_db_path;
mdb->ctr = 0;
@@ -318,7 +319,7 @@ kolab_imapx_meta_data_db_init (CamelKolabIMAPXMetaDataDB *mdb, GError **err)
GError *tmp_err = NULL;
gboolean sql_ok;
gboolean exists;
-
+
g_assert (mdb != NULL);
g_assert (mdb->db != NULL);
g_return_val_if_fail (err == NULL || *err == NULL, FALSE);
@@ -341,7 +342,7 @@ kolab_imapx_meta_data_db_init (CamelKolabIMAPXMetaDataDB *mdb, GError **err)
g_propagate_error (err, tmp_err);
return FALSE;
}
-
+
return TRUE;
}
@@ -363,7 +364,7 @@ kolab_imapx_meta_data_db_close (CamelKolabIMAPXMetaDataDB *mdb, GError **err)
return FALSE;
}
}
-
+
if (mdb->path)
g_free (mdb->path);
@@ -379,7 +380,7 @@ kolab_imapx_meta_data_db_folder_update (CamelKolabIMAPXMetaDataDB *mdb,
{
gchar *sql_str;
gint sql_errno;
-
+
g_assert (mdb != NULL);
g_assert (mdb->db != NULL);
g_assert (folder_name != NULL);
@@ -399,9 +400,9 @@ kolab_imapx_meta_data_db_folder_update (CamelKolabIMAPXMetaDataDB *mdb,
KOLAB_CAMEL_KOLAB_ERROR_DB,
"%s: %s",
__func__, sqlite3_errmsg (mdb->db));
- return FALSE;
+ return FALSE;
}
-
+
return TRUE;
}
@@ -421,7 +422,7 @@ kolab_imapx_meta_data_db_update (CamelKolabIMAPXMetaDataDB *mdb,
gchar *folder_name;
CamelKolabFolderMetaData *kfmd;
gboolean row_ok;
-
+
g_assert (mdb != NULL);
g_assert (mdb->db != NULL);
g_return_val_if_fail (err == NULL || *err == NULL, FALSE);
@@ -441,7 +442,7 @@ kolab_imapx_meta_data_db_update (CamelKolabIMAPXMetaDataDB *mdb,
g_propagate_error (err, tmp_err);
return FALSE;
}
- }
+ }
return TRUE;
}
@@ -455,7 +456,7 @@ kolab_imapx_meta_data_db_lookup (CamelKolabIMAPXMetaDataDB *mdb,
gchar *sql_str;
gint sql_errno;
sqlite3_stmt *sql_stmt;
-
+
g_assert (mdb != NULL);
g_assert (mdb->db != NULL);
g_assert (folder_name != NULL);
@@ -496,7 +497,7 @@ kolab_imapx_meta_data_db_lookup (CamelKolabIMAPXMetaDataDB *mdb,
"%s: %s",
__func__, sqlite3_errmsg (mdb->db));
kolab_folder_meta_data_free (kfmd);
- return NULL;
+ return NULL;
}
return kfmd;
@@ -540,7 +541,7 @@ kolab_imapx_meta_data_db_remove_folder (CamelKolabIMAPXMetaDataDB *mdb,
KOLAB_CAMEL_KOLAB_ERROR_DB,
"%s: %s",
__func__, sqlite3_errmsg (mdb->db));
- return FALSE;
+ return FALSE;
}
return TRUE;
diff --git a/src/camel/camel-kolab-imapx-metadata-db.h b/src/camel/camel-kolab-imapx-metadata-db.h
index dfdd03e..f148bd2 100644
--- a/src/camel/camel-kolab-imapx-metadata-db.h
+++ b/src/camel/camel-kolab-imapx-metadata-db.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-imapx-metadata-db.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#ifndef _CAMEL_KOLAB_IMAPX_METADATA_DB_H_
diff --git a/src/camel/camel-kolab-imapx-metadata.c b/src/camel/camel-kolab-imapx-metadata.c
index c617035..6b3e3d3 100644
--- a/src/camel/camel-kolab-imapx-metadata.c
+++ b/src/camel/camel-kolab-imapx-metadata.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-imapx-metadata.c
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#include <string.h>
@@ -115,7 +116,7 @@ kolab_folder_map_get_type_id (const gchar *typestring, GError **err)
__func__);
return KOLAB_FOLDER_TYPE_INVAL;
}
-
+
id = *((KolabFolderTypeID*)map_entry);
return id;
}
@@ -177,7 +178,7 @@ kolab_folder_meta_data_new_from_imapx_annotation (CamelIMAPXMetaAnnotation *man,
}
kfmd = kolab_folder_meta_data_new ();
-
+
ma = __KOLAB_imapx_meta_data_get_attrib_from_annotation (man, spec);
__KOLAB_imapx_meta_data_spec_free (spec);
@@ -211,7 +212,7 @@ kolab_folder_meta_data_new_from_imapx_annotation (CamelIMAPXMetaAnnotation *man,
g_propagate_error (err, tmp_err);
return NULL;
}
-
+
return kfmd;
}
@@ -319,11 +320,11 @@ kolab_meta_data_addreplace_from_imapx (CamelKolabIMAPXMetaData *kmd,
gchar *folder_name;
CamelIMAPXMetaAnnotation *man;
CamelKolabFolderMetaData *kfmd;
-
+
g_assert (kmd != NULL);
g_assert (md != NULL);
g_assert (server != NULL);
-
+
g_hash_table_iter_init (&mbox_iter, md->mboxes);
while (g_hash_table_iter_next (&mbox_iter, &mbox_key, &mbox_value)) {
folder_name = (gchar*) mbox_key;
@@ -351,7 +352,7 @@ kolab_meta_data_addreplace_from_imapx (CamelKolabIMAPXMetaData *kmd,
gboolean
kolab_imapx_meta_data_query_all_folder_types (CamelService *service,
GError **err)
-{
+{
CamelIMAPXServer *server;
CamelIMAPXMetaDataSpec *spec;
@@ -399,7 +400,7 @@ kolab_imapx_meta_data_get_foldertype (CamelKolabIMAPXMetaData *kmd,
GError **err)
{
/* TODO better error reporting */
-
+
CamelIMAPXServer *server;
CamelStore *store;
CamelIMAPXMetaData *md;
@@ -473,7 +474,7 @@ kolab_imapx_meta_data_get_foldertype (CamelKolabIMAPXMetaData *kmd,
}
__KOLAB_imapx_meta_data_spec_free (spec);
camel_exception_free (tmp_ex);
-
+
/* create kolab "flat" data structure */
kolab_meta_data_addreplace_from_imapx (kmd, md, server);
__KOLAB_imapx_meta_data_free (md);
@@ -491,12 +492,12 @@ kolab_imapx_meta_data_get_foldertype (CamelKolabIMAPXMetaData *kmd,
return KOLAB_FOLDER_TYPE_INVAL;
}
}
-
+
/* final hash table lookup */
kfmd = g_hash_table_lookup (kmd->kolab_metadata, folder_name);
if (kfmd != NULL)
return kfmd->folder_type;
-
+
return KOLAB_FOLDER_TYPE_UNKNOWN;
}
@@ -548,7 +549,7 @@ kolab_imapx_meta_data_set_foldertype (CamelKolabIMAPXMetaData *kmd,
kolab_gerror_propagate_from_camelexception (err, tmp_ex, KOLAB_CAMEL_KOLAB_ERROR);
return FALSE;
}
-
+
/* create local CamelIMAPXMetaData for setting type */
acc = CAMEL_IMAPX_METADATA_ACCESS_SHARED;
ma = __KOLAB_imapx_meta_attrib_new ();
@@ -596,7 +597,7 @@ kolab_imapx_meta_data_set_foldertype (CamelKolabIMAPXMetaData *kmd,
g_propagate_error (err, tmp_err);
return FALSE;
}
-
+
return TRUE;
}
@@ -608,7 +609,7 @@ kolab_imapx_meta_data_remove (CamelKolabIMAPXMetaData *kmd,
GError *tmp_err = NULL;
gboolean db_ok;
gboolean mem_ok;
-
+
/* remove from local cache only, let the imap daemon
* take care of the server side.
* Handle removal of non-existent folder names gracefully
@@ -638,6 +639,6 @@ kolab_imapx_meta_data_remove (CamelKolabIMAPXMetaData *kmd,
if (!mem_ok)
g_warning ("%s: [%s] not in mem cache",
__func__, folder_name);
-
+
return TRUE;
}
diff --git a/src/camel/camel-kolab-imapx-metadata.h b/src/camel/camel-kolab-imapx-metadata.h
index c89a4fb..b87ed9c 100644
--- a/src/camel/camel-kolab-imapx-metadata.h
+++ b/src/camel/camel-kolab-imapx-metadata.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-imapx-metadata.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
/* ANNOTATEMORE / METADATA (RFC 5464) (Kolab specifics) */
diff --git a/src/camel/camel-kolab-imapx-store.c b/src/camel/camel-kolab-imapx-store.c
index aeb319d..2e3a799 100644
--- a/src/camel/camel-kolab-imapx-store.c
+++ b/src/camel/camel-kolab-imapx-store.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-imapx-store.c
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#include <libekolabutil/camel-system-headers.h>
@@ -49,7 +50,7 @@ kolab_imapx_construct (CamelService *service,
CamelProvider *provider,
CamelURL *url,
CamelException *ex)
-{
+{
CamelKolabIMAPXStore *store = NULL;
gboolean metadata_ok = FALSE;
CamelException *tmp_ex = NULL;
@@ -93,7 +94,7 @@ kolab_imapx_construct (CamelService *service,
/* default folder context (for use in Evo) */
store->folder_context = KOLAB_FOLDER_CONTEXT_EMAIL;
-
+
g_debug ("%s: metadata db initialized", __func__);
}
@@ -125,7 +126,7 @@ static gboolean
kolab_imapx_disconnect (CamelService *service,
gboolean clean,
CamelException *ex)
-{
+{
CamelException *tmp_ex = NULL;
gboolean parent_ok = FALSE;
@@ -143,7 +144,7 @@ kolab_imapx_disconnect (CamelService *service,
if (ex != NULL)
camel_exception_xfer (ex, tmp_ex);
}
-
+
camel_exception_free (tmp_ex);
return parent_ok;
}
@@ -176,7 +177,7 @@ kolab_imapx_folder_get_foldertype (CamelService *service,
}
static CamelFolderInfo*
-kolab_imapx_folder_info_build_restricted (CamelService *service,
+kolab_imapx_folder_info_build_restricted (CamelService *service,
const CamelFolderInfo *fi,
CamelKolabIMAPXMetaData *kmd,
const gboolean do_care[])
@@ -189,7 +190,7 @@ kolab_imapx_folder_info_build_restricted (CamelService *service,
g_assert (CAMEL_IS_SERVICE (service));
self = (CamelKolabIMAPXStore *)service;
-
+
if (fi == NULL)
return NULL;
@@ -236,7 +237,7 @@ kolab_imapx_folder_info_build_restricted (CamelService *service,
return next_fi;
}
-
+
static CamelFolderInfo*
kolab_imapx_get_folder_info (CamelStore *store,
const gchar *top,
@@ -298,7 +299,7 @@ kolab_imapx_create_folder (CamelStore *store,
CamelException *tmp_ex = NULL;
gboolean metadata_ok = FALSE;
gchar *full_name = NULL;
-
+
g_assert (CAMEL_IS_STORE (store));
/* 'parent_name' may be NULL */
g_assert (folder_name != NULL);
@@ -328,7 +329,7 @@ kolab_imapx_create_folder (CamelStore *store,
ikstore->folder_create_type,
&tmp_err);
g_free (full_name);
-
+
if (!metadata_ok) {
g_warning ("%s: setting type [%i] for [%s] on server failed.",
__func__, ikstore->folder_create_type, full_name);
@@ -336,7 +337,7 @@ kolab_imapx_create_folder (CamelStore *store,
kolab_camelexception_propagate_from_gerror (ex, tmp_err);
return NULL;
}
-
+
k_fi = kolab_imapx_folder_info_build_restricted (service,
fi,
ikstore->kmd,
@@ -354,7 +355,7 @@ kolab_imapx_delete_folder (CamelStore *store,
CamelException *tmp_ex = NULL;
GError *tmp_err = NULL;
gboolean metadata_ok = FALSE;
-
+
g_assert (CAMEL_IS_STORE (store));
g_assert (folder_name != NULL);
g_assert (ex != NULL);
@@ -398,10 +399,10 @@ camel_kolab_imapx_store_class_init (CamelKolabIMAPXStoreClass *klass)
parent_class = CAMEL_IMAPX_STORE_CLASS (camel_type_get_global_classfuncs (__KOLAB_camel_imapx_store_get_type ()));
parent_service_class = CAMEL_SERVICE_CLASS (parent_class);
parent_store_class = CAMEL_STORE_CLASS (parent_class);
-
+
/* camel_service_class->construct = parent_service_class->construct; */
camel_service_class->construct = kolab_imapx_construct;
-
+
camel_service_class->query_auth_types = parent_service_class->query_auth_types;
camel_service_class->get_name = parent_service_class->get_name;
@@ -423,15 +424,15 @@ camel_kolab_imapx_store_class_init (CamelKolabIMAPXStoreClass *klass)
camel_store_class->get_folder_info = kolab_imapx_get_folder_info;
camel_store_class->can_refresh_folder = parent_store_class->can_refresh_folder;
-
+
/* camel_store_class->create_folder = parent_store_class->create_folder; */
camel_store_class->create_folder = kolab_imapx_create_folder;
-
+
camel_store_class->rename_folder = parent_store_class->rename_folder;
/* camel_store_class->delete_folder = parent_store_class->delete_folder; */
camel_store_class->delete_folder = kolab_imapx_delete_folder;
-
+
camel_store_class->subscribe_folder = parent_store_class->subscribe_folder;
camel_store_class->unsubscribe_folder = parent_store_class->unsubscribe_folder;
camel_store_class->folder_subscribed = parent_store_class->folder_subscribed;
@@ -449,7 +450,7 @@ camel_kolab_imapx_store_init (gpointer object,
gint ii = 0;
g_assert (klass != NULL);
-
+
ikstore = CAMEL_KOLAB_IMAPX_STORE (object);
ikstore->kmd = kolab_imapx_meta_data_new ();
@@ -489,7 +490,7 @@ camel_kolab_imapx_store_finalize (CamelObject* object)
while (! g_mutex_trylock (store->kolab_finfo_lock));
g_mutex_unlock (store->kolab_finfo_lock);
g_mutex_free (store->kolab_finfo_lock);
-
+
/* TODO rework - there should not be I/O in finalize() */
/*------- metadata db -------*/
@@ -542,13 +543,13 @@ kolab_imapx_store_set_folder_creation_type (CamelKolabIMAPXStore *store,
KolabFolderTypeID type_id)
{
g_assert (CAMEL_IS_KOLAB_IMAPX_STORE (store));
-
+
/* TODO error reporting */
/* check that the given folder type id lies within the configured folder context */
if (! kolab_util_folder_type_match_with_context_id (type_id, store->folder_context))
return FALSE;
-
+
store->folder_create_type = type_id;
return TRUE;
@@ -559,16 +560,16 @@ kolab_imapx_store_set_folder_context (CamelKolabIMAPXStore *store,
KolabFolderContextID context)
{
gint ii = 0;
-
+
g_assert (CAMEL_IS_KOLAB_IMAPX_STORE (store));
g_assert ((context > KOLAB_FOLDER_CONTEXT_INVAL) &&
(context < KOLAB_FOLDER_LAST_CONTEXT));
-
+
for (ii = 0; ii < KOLAB_FOLDER_LAST_TYPE; ii++)
store->folder_types_do_care[ii] = FALSE;
store->folder_context = context;
-
+
switch (context) {
case KOLAB_FOLDER_CONTEXT_EMAIL:
store->folder_types_do_care[KOLAB_FOLDER_TYPE_UNKNOWN] = TRUE;
@@ -596,7 +597,7 @@ kolab_imapx_store_set_folder_context (CamelKolabIMAPXStore *store,
/* can't happen */
g_assert_not_reached ();
}
-
+
return TRUE;
}
@@ -606,7 +607,7 @@ kolab_imapx_store_get_folder_type (CamelKolabIMAPXStore *store,
GError **err)
{
/* TODO merge this with kolab_imapx_folder_get_foldertype() */
-
+
KolabFolderTypeID folder_type = KOLAB_FOLDER_TYPE_INVAL;
GError *tmp_err = NULL;
@@ -623,7 +624,7 @@ kolab_imapx_store_get_folder_type (CamelKolabIMAPXStore *store,
g_propagate_error (err, tmp_err);
return KOLAB_FOLDER_TYPE_INVAL;
}
-
+
return folder_type;
}
@@ -633,7 +634,7 @@ kolab_imapx_store_logout_sync (CamelKolabIMAPXStore *store)
CamelIMAPXServer *iserver = NULL;
gboolean ok = FALSE;
CamelException *tmp_ex = NULL;
-
+
g_assert (CAMEL_IS_KOLAB_IMAPX_STORE (store));
tmp_ex = camel_exception_new ();
@@ -657,7 +658,7 @@ kolab_imapx_store_logout_sync (CamelKolabIMAPXStore *store)
if (! ok) {
g_debug ("%s: %s",
__func__,
- camel_exception_get_description (tmp_ex));
+ camel_exception_get_description (tmp_ex));
}
camel_exception_free (tmp_ex);
}
@@ -666,16 +667,16 @@ GList*
kolab_imapx_store_resect_folder_list (CamelKolabIMAPXStore *store)
{
GList *folder_list = NULL;
-
+
g_assert (CAMEL_IS_KOLAB_IMAPX_STORE (store));
g_mutex_lock (store->kolab_finfo_lock);
folder_list = store->folder_names_do_care;
store->folder_names_do_care = NULL;
-
+
g_mutex_unlock (store->kolab_finfo_lock);
-
+
return folder_list;
}
diff --git a/src/camel/camel-kolab-imapx-store.h b/src/camel/camel-kolab-imapx-store.h
index 039499e..7092425 100644
--- a/src/camel/camel-kolab-imapx-store.h
+++ b/src/camel/camel-kolab-imapx-store.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-imapx-store.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#ifndef _CAMEL_KOLAB_IMAPX_STORE_H_
diff --git a/src/camel/camel-kolab-imapx-transport.c b/src/camel/camel-kolab-imapx-transport.c
index 9bf7ec3..1131808 100644
--- a/src/camel/camel-kolab-imapx-transport.c
+++ b/src/camel/camel-kolab-imapx-transport.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-imapx-transport.c
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#include "camel-kolab-imapx-transport.h"
diff --git a/src/camel/camel-kolab-imapx-transport.h b/src/camel/camel-kolab-imapx-transport.h
index f496558..8ce614c 100644
--- a/src/camel/camel-kolab-imapx-transport.h
+++ b/src/camel/camel-kolab-imapx-transport.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-imapx-transport.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#ifndef _CAMEL_KOLAB_IMAPX_TRANSPORT_H_
@@ -64,4 +65,3 @@ G_END_DECLS
#endif /* _CAMEL_KOLAB_IMAPX_TRANSPORT_H_ */
/*----------------------------------------------------------------------------*/
-
\ No newline at end of file
diff --git a/src/camel/camel-kolab-session.c b/src/camel/camel-kolab-session.c
index 517f4eb..363ae63 100644
--- a/src/camel/camel-kolab-session.c
+++ b/src/camel/camel-kolab-session.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-session.c
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
/*
@@ -62,7 +63,7 @@ static void
camel_kolab_session_init (CamelKolabSession *self)
{
g_assert (CAMEL_KOLAB_IS_SESSION (self));
-
+
self->data_dir = NULL;
self->config_dir = NULL;
self->nss_tok_pwd = NULL;
@@ -102,7 +103,7 @@ camel_kolab_session_class_init (CamelKolabSessionClass *klass)
camel_session_class->thread_wait = parent_class->thread_wait;
camel_session_class->thread_status = parent_class->thread_status;
- camel_session_class->forward_to = parent_class->forward_to;
+ camel_session_class->forward_to = parent_class->forward_to;
/* virtual method override */
camel_session_class->get_password = camel_kolab_session_get_password;
@@ -173,7 +174,7 @@ camel_kolab_session_forget_password (CamelSession *self,
(void)domain;
(void)item;
(void)ex;
-
+
if (myself->passwd != NULL)
g_free (myself->passwd);
@@ -228,7 +229,7 @@ camel_kolab_session_new (void)
CamelKolabSession *session = NULL;
session = CAMEL_KOLAB_SESSION (camel_object_new (CAMEL_KOLAB_SESSION_TYPE));
-
+
/* init the EAccount setup */
/* e_account_writable (NULL, E_ACCOUNT_SOURCE_SAVE_PASSWD); */
@@ -249,7 +250,7 @@ camel_kolab_session_bringup (CamelKolabSession *self,
* objects for the backends will store their files in their
* own respective directories
*/
-
+
/* TODO check whether this is The Right Way to
* initialize the session parent
*/
@@ -264,7 +265,7 @@ camel_kolab_session_bringup (CamelKolabSession *self,
camel_session_construct (CAMEL_SESSION (self), self->data_dir);
/* TODO junk settings */
-
+
/* setup further NSS bits here */
PK11_SetPasswordFunc (pk11_password);
@@ -302,7 +303,7 @@ camel_kolab_session_set_data_dir (CamelKolabSession *self,
if (self->data_dir != NULL)
g_free (self->data_dir);
-
+
self->data_dir = datadir;
}
@@ -322,7 +323,7 @@ camel_kolab_session_set_config_dir (CamelKolabSession *self,
if (self->config_dir != NULL)
g_free (self->config_dir);
-
+
self->config_dir = configdir;
}
diff --git a/src/camel/camel-kolab-session.h b/src/camel/camel-kolab-session.h
index d73daa7..8506591 100644
--- a/src/camel/camel-kolab-session.h
+++ b/src/camel/camel-kolab-session.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-session.h
*
diff --git a/src/camel/camel-kolab-stream.c b/src/camel/camel-kolab-stream.c
index 59be8a5..b0153ae 100644
--- a/src/camel/camel-kolab-stream.c
+++ b/src/camel/camel-kolab-stream.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-stream.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#ifdef HAVE_CONFIG_H
@@ -49,7 +50,7 @@ camel_kolab_stream_new_filestream (const gchar* filename,
if (stream == NULL)
g_debug ("%s: CamelStreamFs is NULL", __func__);
-
+
return stream;
}
diff --git a/src/camel/camel-kolab-stream.h b/src/camel/camel-kolab-stream.h
index 05ea061..a774194 100644
--- a/src/camel/camel-kolab-stream.h
+++ b/src/camel/camel-kolab-stream.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-kolab-stream.h
*
diff --git a/src/libekolab/kolab-folder-summary.c b/src/libekolab/kolab-folder-summary.c
index 68b8595..5f5e899 100644
--- a/src/libekolab/kolab-folder-summary.c
+++ b/src/libekolab/kolab-folder-summary.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-folder-summary.c
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#include <libekolabutil/kolab-util-folder.h>
@@ -53,7 +54,7 @@ kolab_folder_summary_new (void)
KOLAB_FOLDER_TYPE_INVAL;
summary->sdata_uint[KOLAB_FOLDER_SUMMARY_UINT_FIELD_FOLDER_CONTEXT] = \
KOLAB_FOLDER_CONTEXT_INVAL;
-
+
return summary;
}
@@ -86,10 +87,10 @@ void
kolab_folder_summary_free (KolabFolderSummary *summary)
{
guint ii = 0;
-
+
if (summary == NULL)
return;
-
+
for (ii = 0; ii < KOLAB_FOLDER_SUMMARY_CHAR_LAST_FIELD; ii++) {
if (summary->sdata_char[ii] != NULL)
g_free (summary->sdata_char[ii]);
@@ -113,7 +114,7 @@ gboolean
kolab_folder_summary_check (const KolabFolderSummary *summary)
{
g_assert (summary != NULL);
-
+
/* TODO implement me */
return TRUE;
diff --git a/src/libekolab/kolab-folder-summary.h b/src/libekolab/kolab-folder-summary.h
index 23cf449..6b409fb 100644
--- a/src/libekolab/kolab-folder-summary.h
+++ b/src/libekolab/kolab-folder-summary.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-folder-summary.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
/**
diff --git a/src/libekolab/kolab-mail-info-db-record.c b/src/libekolab/kolab-mail-info-db-record.c
index 7ea23eb..1b7fec2 100644
--- a/src/libekolab/kolab-mail-info-db-record.c
+++ b/src/libekolab/kolab-mail-info-db-record.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-mail-record.c
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#include "kolab-mail-info-db-record.h"
@@ -49,7 +50,7 @@ kolab_mail_info_db_record_new (void)
= KOLAB_FOLDER_TYPE_INVAL;
record->rdata_uint[KOLAB_MAIL_INFO_DB_RECORD_UINT_FIELD_IMAP_FOLDER_CONTEXT] \
= KOLAB_FOLDER_CONTEXT_INVAL;
-
+
return record;
}
@@ -66,13 +67,13 @@ kolab_mail_info_db_record_clone (const KolabMailInfoDbRecord *record)
/* standard mail summary */
new_record->summary = kolab_mail_summary_clone (record->summary);
-
+
/* extra data */
for (ii = 0; ii < KOLAB_MAIL_INFO_DB_RECORD_CHAR_LAST_FIELD; ii++)
new_record->rdata_char[ii] = g_strdup(record->rdata_char[ii]);
for (ii = 0; ii < KOLAB_MAIL_INFO_DB_RECORD_UINT_LAST_FIELD; ii++)
new_record->rdata_uint[ii] = record->rdata_uint[ii];
-
+
return new_record;
}
@@ -80,10 +81,10 @@ void
kolab_mail_info_db_record_free (KolabMailInfoDbRecord *record)
{
gint ii = 0;
-
+
if (record == NULL)
return;
-
+
kolab_mail_summary_free (record->summary);
for (ii = 0; ii < KOLAB_MAIL_INFO_DB_RECORD_CHAR_LAST_FIELD; ii++) {
if (record->rdata_char[ii] != NULL)
@@ -188,7 +189,7 @@ void
kolab_mail_info_db_record_dump (const KolabMailInfoDbRecord *record)
{
const KolabMailSummary *summary = NULL;
-
+
g_debug ("\n%s: **** InfoDB Record Begin ****", __func__);
if (record == NULL) {
@@ -197,7 +198,7 @@ kolab_mail_info_db_record_dump (const KolabMailInfoDbRecord *record)
}
summary = record->summary;
-
+
if (summary == NULL) {
g_debug ("%s: Record summary is NULL", __func__);
goto db_record_skip;
diff --git a/src/libekolab/kolab-mail-info-db-record.h b/src/libekolab/kolab-mail-info-db-record.h
index 8fd231b..5d4cfca 100644
--- a/src/libekolab/kolab-mail-info-db-record.h
+++ b/src/libekolab/kolab-mail-info-db-record.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-mail-record.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
/**
@@ -83,7 +84,7 @@ typedef struct _KolabMailInfoDbRecord KolabMailInfoDbRecord;
struct _KolabMailInfoDbRecord {
/* standard mail summary */
KolabMailSummary *summary;
-
+
/* extra data */
gchar *rdata_char[KOLAB_MAIL_INFO_DB_RECORD_CHAR_LAST_FIELD];
guint rdata_uint[KOLAB_MAIL_INFO_DB_RECORD_UINT_LAST_FIELD];
diff --git a/src/libekolab/kolab-mail-summary.c b/src/libekolab/kolab-mail-summary.c
index 30269ed..5812b51 100644
--- a/src/libekolab/kolab-mail-summary.c
+++ b/src/libekolab/kolab-mail-summary.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-mail-summary.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#include <libical/ical.h>
@@ -72,7 +73,7 @@ kolab_mail_summary_new (void)
/* documenting folder context/type initial setting */
summary->sdata_uint[KOLAB_MAIL_SUMMARY_UINT_FIELD_FOLDER_TYPE] = KOLAB_FOLDER_TYPE_INVAL;
summary->sdata_uint[KOLAB_MAIL_SUMMARY_UINT_FIELD_FOLDER_CONTEXT] = KOLAB_FOLDER_CONTEXT_INVAL;
-
+
return summary;
}
@@ -80,7 +81,7 @@ KolabMailSummary*
kolab_mail_summary_new_from_ecalcomponent (ECalComponent *ecalcomp)
{
KolabMailSummary *summary = NULL;
-
+
if (ecalcomp == NULL) {
g_warning ("%s: ECalComponent is NULL, doing nothing", __func__);
return NULL;
@@ -88,7 +89,7 @@ kolab_mail_summary_new_from_ecalcomponent (ECalComponent *ecalcomp)
g_assert (E_IS_CAL_COMPONENT (ecalcomp));
summary = kolab_mail_summary_new ();
-
+
/* CHAR summary fields
* If a field is unset in ECalComponent, it's KolabMailSummary
* counterpart gets deleted (if it was set before)
@@ -139,10 +140,10 @@ kolab_mail_summary_new_from_ecalcomponent (ECalComponent *ecalcomp)
if (dt != NULL) {
kolab_mail_summary_set_char_field (summary,
KOLAB_MAIL_SUMMARY_CHAR_FIELD_E_DTSTART,
- g_strdup (dt));
+ g_strdup (dt));
kolab_mail_summary_set_char_field (summary,
KOLAB_MAIL_SUMMARY_CHAR_FIELD_E_DTSTART_TZID,
- g_strdup (ecdt->tzid));
+ g_strdup (ecdt->tzid));
} else {
kolab_mail_summary_set_char_field (summary,
KOLAB_MAIL_SUMMARY_CHAR_FIELD_E_DTSTART,
@@ -154,7 +155,7 @@ kolab_mail_summary_new_from_ecalcomponent (ECalComponent *ecalcomp)
e_cal_component_free_datetime (ecdt);
g_free (ecdt);
}
-
+
{ /* DTEND */
ECalComponentDateTime *ecdt = g_new0 (ECalComponentDateTime, 1);
const gchar *dt = NULL;
@@ -166,7 +167,7 @@ kolab_mail_summary_new_from_ecalcomponent (ECalComponent *ecalcomp)
if (dt != NULL) {
kolab_mail_summary_set_char_field (summary,
KOLAB_MAIL_SUMMARY_CHAR_FIELD_E_DTEND,
- g_strdup (dt));
+ g_strdup (dt));
kolab_mail_summary_set_char_field (summary,
KOLAB_MAIL_SUMMARY_CHAR_FIELD_E_DTEND_TZID,
g_strdup (ecdt->tzid));
@@ -181,10 +182,10 @@ kolab_mail_summary_new_from_ecalcomponent (ECalComponent *ecalcomp)
e_cal_component_free_datetime (ecdt);
g_free (ecdt);
}
-
+
/* UINT summary fields
*/
-
+
{ /* CLASSIFICATION */
ECalComponentClassification eccl = 0;
e_cal_component_get_classification (ecalcomp, &eccl);
@@ -236,7 +237,7 @@ kolab_mail_summary_new_from_ecalcomponent (ECalComponent *ecalcomp)
0);
}
}
-
+
/* BOOL summary fields
*/
@@ -261,15 +262,15 @@ kolab_mail_summary_new_from_ecalcomponent (ECalComponent *ecalcomp)
bval = e_cal_component_has_recurrences (ecalcomp);
kolab_mail_summary_set_bool_field (summary,
KOLAB_MAIL_SUMMARY_BOOL_FIELD_E_HAS_RECURRENCE,
- bval);
+ bval);
}
-
+
{ /* HAS_ALARMS */
gboolean bval = FALSE;
bval = e_cal_component_has_alarms (ecalcomp);
kolab_mail_summary_set_bool_field (summary,
KOLAB_MAIL_SUMMARY_BOOL_FIELD_E_HAS_ALARMS,
- bval);
+ bval);
}
return summary;
@@ -279,7 +280,7 @@ KolabMailSummary*
kolab_mail_summary_new_from_econtact (EContact *econtact)
{
KolabMailSummary *summary = NULL;
-
+
if (econtact == NULL) {
g_warning ("%s: EContact is NULL, doing nothing", __func__);
return NULL;
@@ -287,7 +288,7 @@ kolab_mail_summary_new_from_econtact (EContact *econtact)
g_assert (E_IS_CONTACT (econtact));
summary = kolab_mail_summary_new ();
-
+
/* CHAR summary fields
* If a field is unset in ECalComponent, it's KolabMailSummary
* counterpart gets deleted (if it was set before)
@@ -368,7 +369,7 @@ kolab_mail_summary_update_eds_data (KolabMailSummary *summary,
const KolabMailSummary *src_summary)
{
gint ii = 0;
-
+
g_assert (summary != NULL);
g_assert (src_summary != NULL);
@@ -390,7 +391,7 @@ kolab_mail_summary_update_eds_data (KolabMailSummary *summary,
/* update bool fields */
for (ii = KOLAB_MAIL_SUMMARY_BOOL_FIELD_E_HAS_ATTENDEES; ii < KOLAB_MAIL_SUMMARY_BOOL_LAST_FIELD; ii++)
summary->sdata_bool[ii] = src_summary->sdata_bool[ii];
-
+
}
@@ -464,14 +465,14 @@ kolab_mail_summary_equal (const KolabMailSummary *summary1,
const KolabMailSummary *summary2)
{
guint ii = 0;
-
+
if ((summary1 == NULL) && (summary2 == NULL))
return TRUE;
if ((summary1 == NULL) && (summary2 != NULL))
return FALSE;
if ((summary1 != NULL) && (summary2 == NULL))
return FALSE;
-
+
for (ii = 0; ii < KOLAB_MAIL_SUMMARY_CHAR_LAST_FIELD; ii++) {
if (g_strcmp0 (summary1->sdata_char[ii], summary2->sdata_char[ii]) != 0)
return FALSE;
diff --git a/src/libekolab/kolab-mail-summary.h b/src/libekolab/kolab-mail-summary.h
index af79d03..c2f59a9 100644
--- a/src/libekolab/kolab-mail-summary.h
+++ b/src/libekolab/kolab-mail-summary.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-mail-summary.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
/**
@@ -140,7 +141,7 @@ enum {
/* LAST */
KOLAB_MAIL_SUMMARY_LAST_SQLCOL
};
-
+
typedef struct _KolabMailSummary KolabMailSummary;
struct _KolabMailSummary
{
diff --git a/src/libekolab/kolab-types.h b/src/libekolab/kolab-types.h
index 8b5e3b5..591161a 100644
--- a/src/libekolab/kolab-types.h
+++ b/src/libekolab/kolab-types.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-types.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#ifndef _KOLAB_TYPES_H_
@@ -55,7 +56,7 @@ typedef enum {
KOLAB_SYNC_STRATEGY_SERVER, /* always use server data set */
KOLAB_SYNC_STRATEGY_CLIENT, /* always use client data set */
KOLAB_SYNC_STRATEGY_DUPE, /* create duplicate (new UID) */
- KOLAB_SYNC_LAST_STRATEGY,
+ KOLAB_SYNC_LAST_STRATEGY,
KOLAB_SYNC_FIRST_STRATEGY = KOLAB_SYNC_STRATEGY_NEWEST,
KOLAB_SYNC_STRATEGY_DEFAULT = KOLAB_SYNC_STRATEGY_NEWEST
} KolabSyncStrategyID;
@@ -84,8 +85,8 @@ typedef enum {
* on a Kolab server. It utilizes certificates from PKCS #11 tokens. Access to
* PKCS #11 tokens is secured by means of a PIN. Intention of the concepts of
* client certificates and security tokens is, to increase security. This
- * implementation serves as a feasability study concerning PKCS #11 deployment
- * and the implementation of Kolab EPlugin stores the PIN in plain within the
+ * implementation serves as a feasability study concerning PKCS #11 deployment
+ * and the implementation of Kolab EPlugin stores the PIN in plain within the
* associated esource entry. THIS IS BY NO MEANS SECURE! It is intended as a
* simple workaround of limitations of current (2.30) implementation of
* evolution. DO NOT USE IN PRODUCTION ENVIRONMENTS!
diff --git a/src/libekolabconv/main/src/evolution/contact-e-to-i.c b/src/libekolabconv/main/src/evolution/contact-e-to-i.c
index 86c5621..14cc88a 100644
--- a/src/libekolabconv/main/src/evolution/contact-e-to-i.c
+++ b/src/libekolabconv/main/src/evolution/contact-e-to-i.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* contact-e-to-i.c
*
@@ -65,7 +66,7 @@ I_contact*
conv_EContact_to_I_contact (const EContact* e_contact, GError** error)
{
I_contact *i_contact = NULL;
-
+
g_assert(error != NULL && *error == NULL);
log_debug ("\nconv_EContact_to_I_contact(): convert EContact to I_contact struct.");
@@ -118,7 +119,7 @@ process_contact_e_to_i (I_contact* i_contact, const EContact *e_contact)
gchar *full_name = NULL;
EVCardAttribute *attribute = NULL;
gchar *value = NULL;
-
+
log_debug("read kolab store information");
kstore_hash = kolab_store_read_values (e_contact_dup, i_contact);
@@ -292,7 +293,7 @@ process_contact_e_to_i (I_contact* i_contact, const EContact *e_contact)
if (buffer) {
struct tm *t = NULL;
time_t *tt = NULL;
-
+
if (buffer[10] == 'T') /* get rid of 'T' in iso time stamp if neccessary */
buffer[10] = ' ';
@@ -317,7 +318,7 @@ process_contact_e_to_i (I_contact* i_contact, const EContact *e_contact)
if (attribute && value) {
struct tm *t2 = NULL;
time_t *tt2 = NULL;
-
+
if (value[10] == 'T') /* get rid of 'T' in iso time stamp if neccessary */
value[10] = ' ';
@@ -344,7 +345,7 @@ process_contact_e_to_i (I_contact* i_contact, const EContact *e_contact)
if (e_contact_photo && e_contact_photo->type == E_CONTACT_PHOTO_TYPE_INLINED) {
gchar *d = NULL;
-
+
/* Bin_attachment *photo; */
/* photo = (Bin_attachment *) malloc ( sizeof(Bin_attachment) ); */
i_contact->photo = g_new0(Kolab_conv_mail_part, 1);
@@ -465,7 +466,7 @@ add_phone_numbers (const EContact *e_contact, I_contact* i_contact, GHashTable *
if (!strcmp (EVC_TEL, e_vcard_attribute_get_name (a)))
{
gchar* value = NULL;
-
+
GList *params = e_vcard_attribute_get_param (a, EVC_TYPE);
GList *param;
GList *type_list = NULL;
@@ -499,7 +500,7 @@ add_phone_numbers (const EContact *e_contact, I_contact* i_contact, GHashTable *
if (eparam != NULL) {
GList* xml_str_list = NULL;
-
+
gchar *id_str = (gchar*)eparam;
gint id = strtol(id_str, (gchar**)0, 10);
gint *id_ptr = g_new0(gint, 1);
@@ -733,7 +734,7 @@ kolab_store_restore_subnode_xml(I_contact *i_contact, gpointer parent_ptr,
{
gchar *e_value = NULL;
GList *e_attr_list = NULL;
-
+
log_debug("get vcard attributes for econtact field");
e_value = e_contact_get ((EContact*) e_contact, e_field); /* params cannot be accessed here */
diff --git a/src/libekolabconv/main/src/evolution/contact-i-to-e.c b/src/libekolabconv/main/src/evolution/contact-i-to-e.c
index dbb4f22..c864afe 100644
--- a/src/libekolabconv/main/src/evolution/contact-i-to-e.c
+++ b/src/libekolabconv/main/src/evolution/contact-i-to-e.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* contact-i-to-e.c
*
diff --git a/src/libekolabconv/main/src/evolution/event-e-to-i.c b/src/libekolabconv/main/src/evolution/event-e-to-i.c
index 240f96e..71a4280 100644
--- a/src/libekolabconv/main/src/evolution/event-e-to-i.c
+++ b/src/libekolabconv/main/src/evolution/event-e-to-i.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* event-e-to-i.c
*
@@ -80,7 +81,7 @@ process_event_e_to_i(const ECalComponentWithTZ *ectz, I_event *i_event, GError *
ECalComponent *e_cal_comp = NULL;
ECalComponentTransparency *e_transp = NULL;
ECalComponentDateTime *e_end_date = NULL;
-
+
g_assert(error != NULL && *error == NULL);
e_cal_comp = ectz->maincomp;
/* log_debug("\nconvert_ECalComponent_to_ievent is called..."); */
diff --git a/src/libekolabconv/main/src/evolution/event-i-to-e.c b/src/libekolabconv/main/src/evolution/event-i-to-e.c
index 20a8a72..7365186 100644
--- a/src/libekolabconv/main/src/evolution/event-i-to-e.c
+++ b/src/libekolabconv/main/src/evolution/event-i-to-e.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* event-i-to-e.c
*
@@ -58,7 +59,7 @@ conv_I_event_to_ECalComponentWithTZ (I_event **i_event_ptr, GError **error)
ECalComponent* e_cal_comp = NULL;
I_event *i_event = NULL;
ECalComponentWithTZ *ectz = NULL;
-
+
g_assert(error != NULL && *error == NULL);
log_debug ("\nconv_I_event_to_ECalComponentWithTZ(): convert I_event to ECalcomponentWithTZ.");
diff --git a/src/libekolabconv/main/src/evolution/evolution-util.c b/src/libekolabconv/main/src/evolution/evolution-util.c
index c4c3250..42284ab 100644
--- a/src/libekolabconv/main/src/evolution/evolution-util.c
+++ b/src/libekolabconv/main/src/evolution/evolution-util.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* evolution-util.c
*
@@ -163,7 +164,7 @@ localtime_to_utc(ECalComponentDateTime *date_time, ECalComponent *local_tz)
{
icaltimezone *ical_tz = NULL;
icaltimezone *utc = NULL;
-
+
if (date_time->value->is_utc || local_tz == NULL) /* local_tz == UTC */
return;
diff --git a/src/libekolabconv/main/src/evolution/evolution-util.h b/src/libekolabconv/main/src/evolution/evolution-util.h
index ecc9f15..974c678 100644
--- a/src/libekolabconv/main/src/evolution/evolution-util.h
+++ b/src/libekolabconv/main/src/evolution/evolution-util.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* evolution-util.h
*
diff --git a/src/libekolabconv/main/src/evolution/evolution.h b/src/libekolabconv/main/src/evolution/evolution.h
index e0af070..2809f05 100644
--- a/src/libekolabconv/main/src/evolution/evolution.h
+++ b/src/libekolabconv/main/src/evolution/evolution.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* evolution.h
*
diff --git a/src/libekolabconv/main/src/evolution/note-e-to-i.c b/src/libekolabconv/main/src/evolution/note-e-to-i.c
index df248b4..86dd192 100644
--- a/src/libekolabconv/main/src/evolution/note-e-to-i.c
+++ b/src/libekolabconv/main/src/evolution/note-e-to-i.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* note-e-to-i.c
*
@@ -38,7 +39,7 @@ I_note*
conv_ECalComponentWithTZ_to_I_note (const ECalComponentWithTZ *e_note, GError **error)
{
I_note *i_note = NULL;
-
+
g_assert(error != NULL && *error == NULL);
log_debug ("\nconv_ECalComponentWithTZ_to_I_note(): convert ECalcomponentWithTZ to I_note struct.");
diff --git a/src/libekolabconv/main/src/evolution/note-i-to-e.c b/src/libekolabconv/main/src/evolution/note-i-to-e.c
index 126b704..7f237af 100644
--- a/src/libekolabconv/main/src/evolution/note-i-to-e.c
+++ b/src/libekolabconv/main/src/evolution/note-i-to-e.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* note-i-to-e.c
*
@@ -39,7 +40,7 @@ conv_I_note_to_ECalComponentWithTZ (I_note **i_note_ptr, GError **error)
ECalComponent *e_cal_comp = NULL;
ECalComponentWithTZ *ectz = NULL;
I_note *i_note = NULL;
-
+
g_assert(error != NULL && *error == NULL);
log_debug ("\nconv_I_note_to_ECalComponentWithTZ(): convert I_note struct to ECalcomponentWithTZ.");
diff --git a/src/libekolabconv/main/src/evolution/priv-common-e-to-i.c b/src/libekolabconv/main/src/evolution/priv-common-e-to-i.c
index 4f24e43..7a986c2 100644
--- a/src/libekolabconv/main/src/evolution/priv-common-e-to-i.c
+++ b/src/libekolabconv/main/src/evolution/priv-common-e-to-i.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* priv-common-e-to-i.c
*
@@ -49,7 +50,7 @@ get_vtimezone (const ECalComponentWithTZ *ectz)
icalproperty *dtstamp = NULL;
icalproperty *uid = NULL;
gchar *ical_str = NULL;
-
+
if (ectz == NULL || ectz->maincomp == NULL || ectz->timezone == NULL)
return NULL;
@@ -132,7 +133,7 @@ add_e_attachment_parameters(icalproperty *prop, I_common *i_common, gboolean inl
for (i = 0; i < pc; i++) {
icalparameter_kind kind;
icalparameter_value xvalue;
-
+
para = i == 0 ? icalproperty_get_first_parameter(prop, ICAL_ANY_PARAMETER) :
icalproperty_get_next_parameter(prop, ICAL_ANY_PARAMETER);
@@ -153,7 +154,7 @@ add_e_attachment_parameters(icalproperty *prop, I_common *i_common, gboolean inl
if (binary) { /* if not a linked attachment add data to struct */
Kolab_conv_mail_part *mpart = g_new0(Kolab_conv_mail_part, 1);
gchar* pname = NULL;
-
+
if (label != NULL) {
if (inln)
i_common->inline_attachment_names = g_list_append(
@@ -189,7 +190,7 @@ conv_common_e_to_i (const ECalComponentWithTZ *ectz, I_common *i_common)
struct icaltimetype *createdDate;
icalcomponent *icomp = NULL;
icalproperty *prop = NULL;
-
+
i_common->vtimezone = get_vtimezone(ectz);
sensitivity_e_to_i(ectz->maincomp, i_common);
link_attachments_e_to_i(ectz->maincomp, i_common);
diff --git a/src/libekolabconv/main/src/evolution/priv-common-i-to-e.c b/src/libekolabconv/main/src/evolution/priv-common-i-to-e.c
index 78cb651..f1a8785 100644
--- a/src/libekolabconv/main/src/evolution/priv-common-i-to-e.c
+++ b/src/libekolabconv/main/src/evolution/priv-common-i-to-e.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* priv-common-i-to-e.c
*
@@ -138,7 +139,7 @@ kolab_attachment_store_i_to_e (ECalComponent* e_cal_comp, I_common *icommon)
Kolab_conv_mail_part *mpart = ((Kolab_conv_mail_part *) list->data);
icalproperty *prop;
icalparameter *param;
-
+
/* check if the name of the attachment is stored in the inline */
/* attachment names list */
GList *names = icommon->inline_attachment_names;
@@ -154,7 +155,7 @@ kolab_attachment_store_i_to_e (ECalComponent* e_cal_comp, I_common *icommon)
if (hidden) {
gchar *b64enc = NULL;
icalvalue *ival = NULL;
-
+
prop = icalproperty_new_x("");
icalproperty_set_x_name(prop, ICONTACT_KOLAB_STORE_ATTACHMENT);
b64enc = g_base64_encode ((guchar*) mpart->data, mpart->length);
diff --git a/src/libekolabconv/main/src/evolution/priv-evolution-preserve.c b/src/libekolabconv/main/src/evolution/priv-evolution-preserve.c
index 20bd784..56344fe 100644
--- a/src/libekolabconv/main/src/evolution/priv-evolution-preserve.c
+++ b/src/libekolabconv/main/src/evolution/priv-evolution-preserve.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* priv-evolution-preserve.c
*
@@ -128,7 +129,7 @@ void
i_evo_store_add_cal_note(I_common *i_common, const ECalComponentWithTZ *ectz)
{
icalcomponent *icomp;
-
+
i_evo_store_add_cal(i_common, ectz);
icomp = e_cal_component_get_icalcomponent (ectz->maincomp);
@@ -224,7 +225,7 @@ e_kolab_store_get_fields(const ECalComponentWithTZ *ectz, I_common *i_common) {
guchar *b64enc = NULL;
gpointer parent_ptr = NULL;
const gchar *id_str = NULL;
-
+
pname = (gchar*) icalproperty_get_x(prop);
b64enc = g_base64_decode (pname, &outlen);
@@ -254,7 +255,7 @@ e_kolab_store_add_field_group(ECalComponentWithTZ *ectz, I_common *i_common, gpo
icalparameter *para = icalparameter_new_encoding(ICAL_ENCODING_BASE64);
gchar *b64enc = NULL;
icalvalue *ival = NULL;
-
+
icalproperty_set_x_name(prop, ICONTACT_KOLAB_STORE);
icalproperty_add_parameter(prop, para);
if (parent_ptr != i_common) { /* sub element field? => store id */
diff --git a/src/libekolabconv/main/src/evolution/priv-evolution.h b/src/libekolabconv/main/src/evolution/priv-evolution.h
index d7e1cd1..4347229 100644
--- a/src/libekolabconv/main/src/evolution/priv-evolution.h
+++ b/src/libekolabconv/main/src/evolution/priv-evolution.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* priv-evolution.h
*
diff --git a/src/libekolabconv/main/src/evolution/priv-incidence-e-to-i.c b/src/libekolabconv/main/src/evolution/priv-incidence-e-to-i.c
index 0d8d044..75cfecc 100644
--- a/src/libekolabconv/main/src/evolution/priv-incidence-e-to-i.c
+++ b/src/libekolabconv/main/src/evolution/priv-incidence-e-to-i.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* priv-incidence-e-to-i.c
*
@@ -135,7 +136,7 @@ conv_incidence_e_to_i (const ECalComponentWithTZ *ectz, I_incidence *i_incidence
ECalComponentText *text = NULL;
alarm = new_alarm(I_ALARM_TYPE_PROCEDURE);
-
+
/* set program */
e_cal_component_alarm_get_attach (ecalcomp_alarm, &attach);
alarm->proc_param->program = g_string_new(icalattach_get_url(attach));
@@ -149,7 +150,7 @@ conv_incidence_e_to_i (const ECalComponentWithTZ *ectz, I_incidence *i_incidence
if (alarm->type == I_ALARM_TYPE_EMAIL) {
ECalComponentText *text = NULL;
GSList *attendee_list = NULL;
-
+
alarm = new_alarm(I_ALARM_TYPE_EMAIL);
/* set mail text */
@@ -162,7 +163,7 @@ conv_incidence_e_to_i (const ECalComponentWithTZ *ectz, I_incidence *i_incidence
e_cal_component_alarm_get_attendee_list(ecalcomp_alarm, &attendee_list);
for (; attendee_list; attendee_list = attendee_list->next) {
gchar* value = NULL;
-
+
ECalComponentAttendee *ca = (ECalComponentAttendee *) attendee_list->data;
value = ca->value;
diff --git a/src/libekolabconv/main/src/evolution/priv-incidence-i-to-e.c b/src/libekolabconv/main/src/evolution/priv-incidence-i-to-e.c
index f39e414..c53d0a7 100644
--- a/src/libekolabconv/main/src/evolution/priv-incidence-i-to-e.c
+++ b/src/libekolabconv/main/src/evolution/priv-incidence-i-to-e.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* priv-incidence-i-to-e.c
*
@@ -54,7 +55,7 @@ conv_incidence_i_to_e(ECalComponentWithTZ *ectz, I_incidence *i_incidence)
conv_common_i_to_e(ectz, i_incidence->common);
alarm_i_to_e(ectz, i_incidence);
-
+
if (i_incidence->location)
e_cal_component_set_location(ectz->maincomp, i_incidence->location->str);
@@ -395,7 +396,7 @@ recurrence_fields_i_to_e(ECalComponentWithTZ *ectz, I_incidence *i_incidence)
GList *excl_list = NULL;
GSList *recur_list = NULL;
struct icalrecurrencetype *rec_type = NULL;
-
+
if(i_incidence->recurrence == NULL)
return;
diff --git a/src/libekolabconv/main/src/evolution/task-e-to-i.c b/src/libekolabconv/main/src/evolution/task-e-to-i.c
index 62beb27..a31221d 100644
--- a/src/libekolabconv/main/src/evolution/task-e-to-i.c
+++ b/src/libekolabconv/main/src/evolution/task-e-to-i.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* task-e-to-i.c
*
@@ -56,7 +57,7 @@ I_task*
conv_ECalComponentWithTZ_to_I_task (const ECalComponentWithTZ *ectz, GError **error)
{
I_task *i_task = NULL;
-
+
g_assert(error != NULL && *error == NULL);
log_debug ("\nconv_ECalComponentWithTZ_to_I_task(): convert ECalComponentWithTZ to I_task.");
@@ -69,7 +70,7 @@ conv_ECalComponentWithTZ_to_I_task (const ECalComponentWithTZ *ectz, GError **er
gint *priority = NULL;
gint *percent = NULL;
icalproperty_status *prop = NULL;
-
+
/* log_debug("\nconvert_ECalComponent_to_itask is called..."); */
if (e_cal_comp == NULL || e_cal_component_get_vtype (e_cal_comp) != E_CAL_COMPONENT_TODO)
return i_task;
diff --git a/src/libekolabconv/main/src/evolution/task-i-to-e.c b/src/libekolabconv/main/src/evolution/task-i-to-e.c
index 9be2fef..d98fa80 100644
--- a/src/libekolabconv/main/src/evolution/task-i-to-e.c
+++ b/src/libekolabconv/main/src/evolution/task-i-to-e.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* task-i-to-e.c
*
@@ -62,7 +63,7 @@ conv_I_task_to_ECalComponentWithTZ (I_task **i_task_ptr, GError **error)
ECalComponent *e_cal_comp = NULL;
ECalComponentWithTZ *ectz = NULL;
I_task *i_task = NULL;
-
+
g_assert(error != NULL && *error == NULL);
log_debug ("\nconv_ECalComponentWithTZ_to_I_task(): convert ECalComponentWithTZ to I_task.");
diff --git a/src/libekolabconv/main/src/kolab-conv.c b/src/libekolabconv/main/src/kolab-conv.c
index 9f52f21..0daeaf3 100644
--- a/src/libekolabconv/main/src/kolab-conv.c
+++ b/src/libekolabconv/main/src/kolab-conv.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* kolab-conv.c
*
@@ -266,7 +267,7 @@ kolabconv_kcontact_to_econtact (const Kolab_conv_mail* kmail, GError** error)
{
EContact *econtact = NULL;
I_contact *icontact = NULL;
-
+
log_kolab_mail("input data:", kmail);
/* create icontact */
icontact = conv_kolab_conv_mail_to_I_contact(kmail, error);
@@ -295,7 +296,7 @@ kolabconv_econtact_to_kcontact (const EContact* econtact, GError** error)
{
Kolab_conv_mail *kmail = NULL;
I_contact *icontact = NULL;
-
+
log_evolution_vcard("input data:", econtact);
/* create icontact */
icontact = conv_EContact_to_I_contact(econtact, error);
@@ -323,7 +324,7 @@ kolabconv_kevent_to_eevent (const Kolab_conv_mail* kmail, GError** error)
{
ECalComponentWithTZ *eevent = NULL;
I_event *ievent = NULL;
-
+
log_kolab_mail("input data:", kmail);
/* create internal pim struct */
ievent = conv_kolab_conv_mail_to_I_event(kmail, error);
@@ -352,7 +353,7 @@ kolabconv_eevent_to_kevent (const ECalComponentWithTZ* ecalcomp, GError** error)
{
Kolab_conv_mail *kmail = NULL;
I_event *ievent = NULL;
-
+
log_evolution_ical("input data:", ecalcomp);
/* create internal pim struct */
ievent = conv_ECalComponentWithTZ_to_I_event(ecalcomp, error);
@@ -380,7 +381,7 @@ kolabconv_ktask_to_etask (const Kolab_conv_mail* kmail, GError** error)
{
ECalComponentWithTZ *etask = NULL;
I_task *itask = NULL;
-
+
log_kolab_mail("input data:", kmail);
/* create internal pim struct */
itask = conv_kolab_conv_mail_to_I_task(kmail, error);
@@ -409,7 +410,7 @@ kolabconv_etask_to_ktask (const ECalComponentWithTZ* ecalcomp, GError** error)
{
Kolab_conv_mail *kmail = NULL;
I_task *itask = NULL;
-
+
log_evolution_ical("input data:", ecalcomp);
/* create internal pim struct */
itask = conv_ECalComponentWithTZ_to_I_task(ecalcomp, error);
@@ -437,7 +438,7 @@ kolabconv_knote_to_enote (const Kolab_conv_mail* kmail, GError** error)
{
ECalComponentWithTZ *enote = NULL;
I_note *inote = NULL;
-
+
log_kolab_mail("input data:", kmail);
/* create internal pim struct */
inote = conv_kolab_conv_mail_to_I_note(kmail, error);
@@ -466,7 +467,7 @@ kolabconv_enote_to_knote (const ECalComponentWithTZ* ecalcomp, GError** error)
{
Kolab_conv_mail *kmail = NULL;
I_note *inote = NULL;
-
+
log_evolution_ical("input data:", ecalcomp);
/* create internal pim struct */
inote = conv_ECalComponentWithTZ_to_I_note(ecalcomp, error);
diff --git a/src/libekolabconv/main/src/kolab-conv.h b/src/libekolabconv/main/src/kolab-conv.h
index 149b118..337cf7b 100644
--- a/src/libekolabconv/main/src/kolab-conv.h
+++ b/src/libekolabconv/main/src/kolab-conv.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* kolab-conv.h
*
diff --git a/src/libekolabconv/main/src/kolab/contact-i-to-k.c b/src/libekolabconv/main/src/kolab/contact-i-to-k.c
index b700c95..331c429 100644
--- a/src/libekolabconv/main/src/kolab/contact-i-to-k.c
+++ b/src/libekolabconv/main/src/kolab/contact-i-to-k.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* contact-i-to-k.c
*
diff --git a/src/libekolabconv/main/src/kolab/contact-k-to-i.c b/src/libekolabconv/main/src/kolab/contact-k-to-i.c
index 4f72a4d..9463620 100644
--- a/src/libekolabconv/main/src/kolab/contact-k-to-i.c
+++ b/src/libekolabconv/main/src/kolab/contact-k-to-i.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* contact-k-to-i.c
*
@@ -71,7 +72,7 @@ conv_kolab_conv_mail_to_I_contact (const Kolab_conv_mail* k_contact, GError** er
I_contact *i_contact = NULL;
xmlNodePtr node = NULL, n_ptr;
xmlDocPtr doc = NULL;
-
+
log_debug ("\nconv_kolab_conv_mail_to_I_contact(): convert Kolab_conv_mail to I_contact.");
if (*error != NULL)
@@ -160,7 +161,7 @@ static void
process_attachments_k_to_i (I_contact* i_contact, GError** error)
{
GList *attach = NULL;
-
+
g_assert(error != NULL && *error == NULL);
/* iteration of kolabXmlMailArray for adding attachments */
@@ -250,7 +251,7 @@ static gboolean
handle_picture_name (I_contact *i_contact, xmlNodePtr node)
{
gchar *picture_name = NULL;
-
+
if (strcmp ((gchar*) node->name, KLB_CNT_PICTURE) != 0)
return FALSE; /* Not a photo_name node */
@@ -282,7 +283,7 @@ handle_element_custom (I_contact *i_contact, const xmlNodePtr node)
gchar *delim = "\356\200\200"; /* î separator written by Kontact (=EE=84=A0) */
gchar **tokens = NULL;
gint i;
-
+
if (strcmp ((gchar*) node->name, KLBX_CNT_X_CUSTOM_LIST) != 0)
return FALSE;
@@ -413,7 +414,7 @@ handle_element_email (I_contact *i_contact, const xmlNodePtr node)
xmlNodePtr child = NULL;
xmlNodePtr child_contents = NULL;
Email *email = NULL;
-
+
if (strcmp ((gchar*) node->name, KLB_CNT_EMAIL_LIST) != 0)
return FALSE;
@@ -458,7 +459,7 @@ handle_element_address (I_contact *i_contact, const xmlNodePtr node)
xmlNodePtr text = NULL;
xmlNodePtr child = NULL;
xmlNodePtr child_contents = NULL;
-
+
if (strcmp ((gchar*) node->name, KLB_CNT_ADDRESS_LIST) != 0)
return FALSE;
diff --git a/src/libekolabconv/main/src/kolab/event-i-to-k.c b/src/libekolabconv/main/src/kolab/event-i-to-k.c
index 4f2a834..83f8ec6 100644
--- a/src/libekolabconv/main/src/kolab/event-i-to-k.c
+++ b/src/libekolabconv/main/src/kolab/event-i-to-k.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* event-i-to-k.c
*
diff --git a/src/libekolabconv/main/src/kolab/event-k-to-i.c b/src/libekolabconv/main/src/kolab/event-k-to-i.c
index 610bcab..eff2fcc 100644
--- a/src/libekolabconv/main/src/kolab/event-k-to-i.c
+++ b/src/libekolabconv/main/src/kolab/event-k-to-i.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* event-k-to-i.c
*
@@ -64,7 +65,7 @@ conv_kolab_conv_mail_to_I_event (const Kolab_conv_mail *k_event, GError **error)
I_event *ievent = NULL;
xmlNodePtr node = NULL, n;
xmlDocPtr doc = NULL;
-
+
log_debug ("\nconv_kolab_conv_mail_to_I_event(): convert Kolab_conv_mail to I_event.");
if (*error != NULL)
@@ -154,7 +155,7 @@ static gboolean
handle_element_show_time_as (I_event *i_event, xmlNodePtr node)
{
gchar *value = NULL;
-
+
if (g_strcmp0((gchar*) node->name, KLB_EVENT_SHOW_TIME_AS) != 0)
return FALSE;
diff --git a/src/libekolabconv/main/src/kolab/kolab-constants.h b/src/libekolabconv/main/src/kolab/kolab-constants.h
index c8c5c78..9c98a2e 100644
--- a/src/libekolabconv/main/src/kolab/kolab-constants.h
+++ b/src/libekolabconv/main/src/kolab/kolab-constants.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* kolab_constants.h
*
diff --git a/src/libekolabconv/main/src/kolab/kolab-util.c b/src/libekolabconv/main/src/kolab/kolab-util.c
index ab75307..c5ae1e6 100644
--- a/src/libekolabconv/main/src/kolab/kolab-util.c
+++ b/src/libekolabconv/main/src/kolab/kolab-util.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* kolab-util.c
*
@@ -136,7 +137,7 @@ util_get_kolab_xml_part(const Kolab_conv_mail *klb_mail, GList **other_parts, GE
{
xmlDocPtr doc = NULL;
guint i;
-
+
/* check input paramters */
if (klb_mail == NULL) {
g_set_error(error, KOLABCONV_ERROR_READ_KOLAB,
@@ -308,7 +309,7 @@ handle_element_integer (gchar* name, gint *store, xmlNodePtr node)
{
gchar *value = NULL;
gchar *p = NULL;
-
+
if (g_strcmp0 ((gchar *) node->name, name) != 0)
return FALSE;
@@ -326,7 +327,7 @@ handle_element_double (gchar* name, gdouble *store, xmlNodePtr node)
{
gchar *value = NULL;
gchar *p = NULL;
-
+
if (g_strcmp0 ((gchar *) node->name, name) != 0)
return FALSE;
@@ -370,7 +371,7 @@ gboolean
handle_element_date_or_datetime (gchar* name, Date_or_datetime** store, xmlNodePtr node)
{
gchar *value = NULL;
-
+
if (g_strcmp0 ((gchar *) node->name, name) != 0)
return FALSE;
@@ -408,7 +409,7 @@ handle_element_date_or_datetime (gchar* name, Date_or_datetime** store, xmlNodeP
} else {
struct tm t;
time_t tt;
-
+
/* convert string to 'struct tm' */
if (value[10] == 'T') /* remove 'T' in iso timestamp if neccessary */
value[10] = ' ';
@@ -434,7 +435,7 @@ handle_element_datetime (gchar* name, time_t** store, xmlNodePtr node)
{
gchar *value = NULL;
struct tm t;
-
+
if (g_strcmp0 ((gchar *) node->name, name) != 0)
return FALSE;
diff --git a/src/libekolabconv/main/src/kolab/kolab-util.h b/src/libekolabconv/main/src/kolab/kolab-util.h
index 0de3e4a..7a35961 100644
--- a/src/libekolabconv/main/src/kolab/kolab-util.h
+++ b/src/libekolabconv/main/src/kolab/kolab-util.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* kolab-util.h
*
diff --git a/src/libekolabconv/main/src/kolab/kolab.h b/src/libekolabconv/main/src/kolab/kolab.h
index e6287cf..5337cda 100644
--- a/src/libekolabconv/main/src/kolab/kolab.h
+++ b/src/libekolabconv/main/src/kolab/kolab.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* kolab.h
*
diff --git a/src/libekolabconv/main/src/kolab/note-i-to-k.c b/src/libekolabconv/main/src/kolab/note-i-to-k.c
index 7133c69..74dd6bd 100644
--- a/src/libekolabconv/main/src/kolab/note-i-to-k.c
+++ b/src/libekolabconv/main/src/kolab/note-i-to-k.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* note-i-to-k.c
*
diff --git a/src/libekolabconv/main/src/kolab/note-k-to-i.c b/src/libekolabconv/main/src/kolab/note-k-to-i.c
index 396a769..55e10de 100644
--- a/src/libekolabconv/main/src/kolab/note-k-to-i.c
+++ b/src/libekolabconv/main/src/kolab/note-k-to-i.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* note-k-to-i.c
*
@@ -88,7 +89,7 @@ conv_kolab_conv_mail_to_I_note (const Kolab_conv_mail *knote, GError **error)
I_note *i_note = NULL;
xmlDocPtr doc = NULL;
xmlNodePtr node = NULL, n;
-
+
log_debug ("\nconv_kolab_conv_mail_to_I_note(): convert Kolab_conv_mail to I_note.");
if (*error != NULL)
diff --git a/src/libekolabconv/main/src/kolab/priv-common-i-to-k.c b/src/libekolabconv/main/src/kolab/priv-common-i-to-k.c
index 1d1cc47..5228f0d 100644
--- a/src/libekolabconv/main/src/kolab/priv-common-i-to-k.c
+++ b/src/libekolabconv/main/src/kolab/priv-common-i-to-k.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* priv-common-i-to-k.c
*
@@ -122,7 +123,7 @@ void
common_i_to_k(xmlNodePtr root_node, I_common *i_common)
{
GList *lsl = NULL;
-
+
if (i_common == NULL)
return;
/* Construct children of root node. */
diff --git a/src/libekolabconv/main/src/kolab/priv-common-k-to-i.c b/src/libekolabconv/main/src/kolab/priv-common-k-to-i.c
index 774454d..6de4528 100644
--- a/src/libekolabconv/main/src/kolab/priv-common-k-to-i.c
+++ b/src/libekolabconv/main/src/kolab/priv-common-k-to-i.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* priv-common-k-to-i.c
*
@@ -45,7 +46,7 @@ static gboolean
handle_element_sensitivity (I_common *icommon, const xmlNodePtr node)
{
gchar *value = NULL;
-
+
if (strcmp ((gchar*) node->name, KLB_CMN_SENSITIVITY) != 0)
return FALSE;
@@ -71,7 +72,7 @@ static gboolean
handle_element_inline_attachment(I_common *icommon, const xmlNodePtr node)
{
gchar *value = NULL;
-
+
if (strcmp ((gchar*) node->name, KLB_CMN_INLINE_ATTACHMENT) != 0)
return FALSE;
@@ -88,7 +89,7 @@ static gboolean
handle_element_link_attachment(I_common *icommon, const xmlNodePtr node)
{
gchar *value = NULL;
-
+
if (strcmp ((gchar*) node->name, KLB_CMN_LINK_ATTACHMENT) != 0)
return FALSE;
diff --git a/src/libekolabconv/main/src/kolab/priv-incidence-i-to-k.c b/src/libekolabconv/main/src/kolab/priv-incidence-i-to-k.c
index 331d328..d99cc88 100644
--- a/src/libekolabconv/main/src/kolab/priv-incidence-i-to-k.c
+++ b/src/libekolabconv/main/src/kolab/priv-incidence-i-to-k.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* priv-incidence-i-to-k.c
*
@@ -44,7 +45,7 @@ conv_incidence_i_to_k(xmlNodePtr root_node, I_incidence *i_incidence)
{
xmlNodePtr node = NULL;
GList *iterator = NULL;
-
+
if (i_incidence == NULL)
return;
diff --git a/src/libekolabconv/main/src/kolab/priv-incidence-k-to-i.c b/src/libekolabconv/main/src/kolab/priv-incidence-k-to-i.c
index 40e6631..92a56a6 100644
--- a/src/libekolabconv/main/src/kolab/priv-incidence-k-to-i.c
+++ b/src/libekolabconv/main/src/kolab/priv-incidence-k-to-i.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* priv-incidence-k-to-i.c
*
@@ -378,7 +379,7 @@ static gboolean
handle_incidence_recurrence_weekdays (guint *weekdays, xmlNodePtr node)
{
gchar *value = NULL;
-
+
if (strcmp ((gchar *) node->name, KLB_INC_RCR_DAY) != 0)
return FALSE;
@@ -399,7 +400,7 @@ static gboolean
handle_incidence_recurrence_month (Month *month, xmlNodePtr node)
{
gchar *value = NULL;
-
+
if (strcmp ((gchar *) node->name, KLB_INC_RCR_MONTH) != 0)
return FALSE;
@@ -421,7 +422,7 @@ handle_incidence_recurrence_exclusion (GList **exclusion_list, xmlNodePtr node)
{
gchar *value = NULL;
GDate *date = NULL;
-
+
if (strcmp ((gchar *) node->name, KLB_INC_RCR_EXCLUSION) != 0)
return FALSE;
@@ -446,7 +447,7 @@ static gboolean
handle_incidence_recurrence_range (GDate **rdate, gint **rnumber, xmlNodePtr node)
{
gchar *rtype = NULL;
-
+
if (strcmp ((gchar *) node->name, KLB_INC_RCR_RANGE) != 0)
return FALSE;
@@ -534,7 +535,7 @@ handle_incidence_attendee(I_incidence *incidence, xmlNodePtr node)
{
Attendee *attendee = NULL;
xmlNodePtr n = NULL; /* used in for loop */
-
+
if (strcmp ((gchar*) node->name, KLB_INC_ATTENDEE) != 0)
return FALSE;
diff --git a/src/libekolabconv/main/src/kolab/priv-kolab-preserve.c b/src/libekolabconv/main/src/kolab/priv-kolab-preserve.c
index ec6264d..38dfbeb 100644
--- a/src/libekolabconv/main/src/kolab/priv-kolab-preserve.c
+++ b/src/libekolabconv/main/src/kolab/priv-kolab-preserve.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* priv-kolab-preserve.c
*
@@ -47,7 +48,7 @@ gboolean
k_evo_store_get_all(I_common *i_common, xmlNodePtr node, GError **error)
{
gchar *value = NULL;
-
+
g_assert(error != NULL && *error == NULL);
if (strcmp ((gchar*) node->name, KLB_CMN_EVO_STORE) != 0)
return FALSE;
@@ -100,7 +101,7 @@ void
i_kolab_store_get_xml_nodes(I_common *i_common, gpointer parent_ptr, xmlNodePtr parent_node)
{
GList* list = kolab_store_get_element_list(i_common, parent_ptr);
-
+
while (list != NULL) {
xmlNodePtr node = NULL; /* used in for loop */
gchar * xml_str = ((gchar *) list->data);
diff --git a/src/libekolabconv/main/src/kolab/priv-kolab.h b/src/libekolabconv/main/src/kolab/priv-kolab.h
index 48f2791..269169f 100644
--- a/src/libekolabconv/main/src/kolab/priv-kolab.h
+++ b/src/libekolabconv/main/src/kolab/priv-kolab.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* priv-kolab.h
*
diff --git a/src/libekolabconv/main/src/kolab/task-i-to-k.c b/src/libekolabconv/main/src/kolab/task-i-to-k.c
index 12ec47c..ec73375 100644
--- a/src/libekolabconv/main/src/kolab/task-i-to-k.c
+++ b/src/libekolabconv/main/src/kolab/task-i-to-k.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* task-i-to-k.c
*
@@ -72,7 +73,7 @@ i_task_to_xml (const I_task *i_task) {
if (i_task->priority >= 0 && i_task->priority <= 9) {
gchar *str = NULL;
-
+
/* if a detailed priority value exists and is valid */
/* set detailed priority */
diff --git a/src/libekolabconv/main/src/kolab/task-k-to-i.c b/src/libekolabconv/main/src/kolab/task-k-to-i.c
index 15a0580..ce8e212 100644
--- a/src/libekolabconv/main/src/kolab/task-k-to-i.c
+++ b/src/libekolabconv/main/src/kolab/task-k-to-i.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* task-k-to-i.c
*
@@ -55,7 +56,7 @@ conv_kolab_conv_mail_to_I_task (const Kolab_conv_mail *k_task, GError **error)
I_task *i_task = NULL;
xmlDocPtr doc = NULL;
xmlNodePtr node = NULL, n;
-
+
if (*error != NULL)
return NULL;
@@ -168,7 +169,7 @@ static gboolean
handle_element_status (I_task *i_task, xmlNodePtr node)
{
gchar *value = NULL;
-
+
if (strcmp ((gchar*) node->name, KLB_TASK_STATUS) != 0)
return FALSE;
@@ -198,7 +199,7 @@ handle_element_priority (gchar* name, gint *store, xmlNodePtr node)
{
gchar *value = NULL;
gchar *p = NULL;
-
+
if (g_strcmp0 ((gchar *) node->name, name) != 0)
return FALSE;
diff --git a/src/libekolabconv/main/src/logging.c b/src/libekolabconv/main/src/logging.c
index f963ca5..4a6d900 100644
--- a/src/libekolabconv/main/src/logging.c
+++ b/src/libekolabconv/main/src/logging.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* logging.c
*
diff --git a/src/libekolabconv/main/src/logging.h b/src/libekolabconv/main/src/logging.h
index c67e967..8a2428b 100644
--- a/src/libekolabconv/main/src/logging.h
+++ b/src/libekolabconv/main/src/logging.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* logging.h
*
diff --git a/src/libekolabconv/main/src/structs/common.c b/src/libekolabconv/main/src/structs/common.c
index 063ccfb..fda800f 100644
--- a/src/libekolabconv/main/src/structs/common.c
+++ b/src/libekolabconv/main/src/structs/common.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* common.c
*
diff --git a/src/libekolabconv/main/src/structs/common.h b/src/libekolabconv/main/src/structs/common.h
index ffd1ce4..eef376d 100644
--- a/src/libekolabconv/main/src/structs/common.h
+++ b/src/libekolabconv/main/src/structs/common.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* common.h
*
@@ -138,9 +139,9 @@ typedef struct{
GHashTable *kolab_store;
GList *kolab_attachment_store; /* hidden & inline attachments of type Kolab_conv_mail_part */
-
+
GList *inline_attachment_names; /* elements of type gchar*; names of the kolab_attachment_store elements which are inline and not hidden attachments */
-
+
GList *link_attachments; /* list of gchar* URLs */
gchar *evolution_store; /* elements of type char* */
diff --git a/src/libekolabconv/main/src/structs/contact.c b/src/libekolabconv/main/src/structs/contact.c
index e4cbc59..347bd86 100644
--- a/src/libekolabconv/main/src/structs/contact.c
+++ b/src/libekolabconv/main/src/structs/contact.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* contact.c
*
diff --git a/src/libekolabconv/main/src/structs/contact.h b/src/libekolabconv/main/src/structs/contact.h
index 0ece58c..e0ab2a8 100644
--- a/src/libekolabconv/main/src/structs/contact.h
+++ b/src/libekolabconv/main/src/structs/contact.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* contact.h
*
diff --git a/src/libekolabconv/main/src/structs/event.c b/src/libekolabconv/main/src/structs/event.c
index 2049ee6..ea22fb8 100644
--- a/src/libekolabconv/main/src/structs/event.c
+++ b/src/libekolabconv/main/src/structs/event.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* event.c
*
diff --git a/src/libekolabconv/main/src/structs/event.h b/src/libekolabconv/main/src/structs/event.h
index 4ae5f13..066a623 100644
--- a/src/libekolabconv/main/src/structs/event.h
+++ b/src/libekolabconv/main/src/structs/event.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* event.h
*
diff --git a/src/libekolabconv/main/src/structs/incidence.c b/src/libekolabconv/main/src/structs/incidence.c
index ef1b3ef..0812c9f 100644
--- a/src/libekolabconv/main/src/structs/incidence.c
+++ b/src/libekolabconv/main/src/structs/incidence.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* incidence.c
*
@@ -413,7 +414,7 @@ print_incidence (const I_incidence *i_incidence)
{
#ifndef KOLABCONV_DEBUG
(void)i_incidence;
-#else
+#else
if (i_incidence->common)
print_i_common (i_incidence->common);
if (i_incidence->summary)
diff --git a/src/libekolabconv/main/src/structs/incidence.h b/src/libekolabconv/main/src/structs/incidence.h
index c83fc3e..110d72b 100644
--- a/src/libekolabconv/main/src/structs/incidence.h
+++ b/src/libekolabconv/main/src/structs/incidence.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* incidence.h
*
diff --git a/src/libekolabconv/main/src/structs/note.c b/src/libekolabconv/main/src/structs/note.c
index bf1275b..58b7ac5 100644
--- a/src/libekolabconv/main/src/structs/note.c
+++ b/src/libekolabconv/main/src/structs/note.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* note.c
*
diff --git a/src/libekolabconv/main/src/structs/note.h b/src/libekolabconv/main/src/structs/note.h
index 41012e9..410471c 100644
--- a/src/libekolabconv/main/src/structs/note.h
+++ b/src/libekolabconv/main/src/structs/note.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* note.h
*
diff --git a/src/libekolabconv/main/src/structs/task.c b/src/libekolabconv/main/src/structs/task.c
index 0a48c27..5fe6ea4 100644
--- a/src/libekolabconv/main/src/structs/task.c
+++ b/src/libekolabconv/main/src/structs/task.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* task.c
*
diff --git a/src/libekolabconv/main/src/structs/task.h b/src/libekolabconv/main/src/structs/task.h
index 692784f..dcdbc45 100644
--- a/src/libekolabconv/main/src/structs/task.h
+++ b/src/libekolabconv/main/src/structs/task.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* task.h
*
diff --git a/src/libekolabconv/main/src/util.c b/src/libekolabconv/main/src/util.c
index c8a2467..69a1a71 100644
--- a/src/libekolabconv/main/src/util.c
+++ b/src/libekolabconv/main/src/util.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* util.c
*
diff --git a/src/libekolabconv/main/src/util.h b/src/libekolabconv/main/src/util.h
index 66d5e8d..bcae115 100644
--- a/src/libekolabconv/main/src/util.h
+++ b/src/libekolabconv/main/src/util.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* util.h
*
diff --git a/src/libekolabconv/test/src/email-parser.c b/src/libekolabconv/test/src/email-parser.c
index fd0cd3d..33d30e1 100644
--- a/src/libekolabconv/test/src/email-parser.c
+++ b/src/libekolabconv/test/src/email-parser.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* email-parser.c
*
@@ -74,7 +75,7 @@ find_email_attachments (GMimeObject *parent, GMimeObject *part, gpointer user_da
{
g_mime_objects_data *data = user_data;
(void)parent;
-
+
/* if (( parent->content_type->content type is text/plain or text/html) and (it's not an attachment)) */
data->g_mime_objects = g_list_append (data->g_mime_objects, (GMimeObject *) part);
}
@@ -423,7 +424,7 @@ write_kolab_email_file (const Kolab_conv_mail *mail, const gchar *filename, GErr
{
GMimeMessage *message = NULL;
GList *klb_mail_list = NULL;
-
+
(void)error;
g_mime_init (0);
diff --git a/src/libekolabconv/test/src/email-parser.h b/src/libekolabconv/test/src/email-parser.h
index 86ca702..70663c7 100644
--- a/src/libekolabconv/test/src/email-parser.h
+++ b/src/libekolabconv/test/src/email-parser.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* email-parser.h
*
diff --git a/src/libekolabconv/test/src/main.c b/src/libekolabconv/test/src/main.c
index 247385d..afe89bf 100644
--- a/src/libekolabconv/test/src/main.c
+++ b/src/libekolabconv/test/src/main.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* main.c
*
@@ -40,7 +41,7 @@ read_config_file()
GError *error = NULL;
GKeyFile *key_file = g_key_file_new();
gchar *log_file_name = NULL;
-
+
if (!g_key_file_load_from_file (key_file, TEST_CONFIG_FILE_NAME, G_KEY_FILE_NONE, &error)) {
g_error ( "error reading config file %s:\n%s", TEST_CONFIG_FILE_NAME, error->message);
exit(-1);
@@ -71,7 +72,7 @@ log_handler (const gchar *log_domain, GLogLevelFlags log_level,
(void)log_domain;
(void)user_data;
-
+
switch (log_level) {
case G_LOG_LEVEL_ERROR:
level = "ERROR";
@@ -112,7 +113,7 @@ int
main (int argc, char *argv[])
{
int success;
-
+
/* read values from test configuration file */
read_config_file();
diff --git a/src/libekolabconv/test/src/main.h b/src/libekolabconv/test/src/main.h
index 70412a0..37dc5ea 100644
--- a/src/libekolabconv/test/src/main.h
+++ b/src/libekolabconv/test/src/main.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* main.h
*
diff --git a/src/libekolabconv/test/src/test-convert-setup.h b/src/libekolabconv/test/src/test-convert-setup.h
index 30fd06e..f0b1ce9 100644
--- a/src/libekolabconv/test/src/test-convert-setup.h
+++ b/src/libekolabconv/test/src/test-convert-setup.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* test_convert_setup.h
*
diff --git a/src/libekolabconv/test/src/test-evolution-contact.c b/src/libekolabconv/test/src/test-evolution-contact.c
index c640676..7ba749f 100644
--- a/src/libekolabconv/test/src/test-evolution-contact.c
+++ b/src/libekolabconv/test/src/test-evolution-contact.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* test_evolution_contact.c
*
diff --git a/src/libekolabconv/test/src/test-evolution-event.c b/src/libekolabconv/test/src/test-evolution-event.c
index 99a0232..8d0179f 100644
--- a/src/libekolabconv/test/src/test-evolution-event.c
+++ b/src/libekolabconv/test/src/test-evolution-event.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* test_evolution_event.c
*
@@ -1100,9 +1101,9 @@ void
validate_evolution_event_b1(const I_event *ievent, gint stage)
{
Alarm *mail_alarm = NULL;
-
+
(void)stage;
-
+
/* resulting alarm should look like this in kolab:
<advanced-alarms>
<alarm type="email">
@@ -1146,7 +1147,7 @@ void
validate_evolution_event_b2(const I_event *ievent, gint stage)
{
(void)stage;
-
+
g_assert_cmpint(g_list_length(ievent->incidence->attendee), ==, 5);
assert_attendee_in_list(ievent->incidence->attendee, "Individual",
"h helwich tarent de", I_INC_STATUS_NONE, TRUE, FALSE, I_INC_ROLE_REQUIRED, I_INC_CUTYPE_INDIVIDUAL);
diff --git a/src/libekolabconv/test/src/test-evolution-note.c b/src/libekolabconv/test/src/test-evolution-note.c
index 46e7660..b0c8d0e 100644
--- a/src/libekolabconv/test/src/test-evolution-note.c
+++ b/src/libekolabconv/test/src/test-evolution-note.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* test_evolution_note.c
*
diff --git a/src/libekolabconv/test/src/test-evolution-task.c b/src/libekolabconv/test/src/test-evolution-task.c
index 84871d0..54943e3 100644
--- a/src/libekolabconv/test/src/test-evolution-task.c
+++ b/src/libekolabconv/test/src/test-evolution-task.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* test_evolution_task.c
*
@@ -577,6 +578,6 @@ void
validate_evolution_task_bug_3286514(const I_task *itask, gint stage)
{
(void)stage;
-
+
assert_equal_timestamp("2011-05-09 23:30:00", itask->completed_datetime);
}
diff --git a/src/libekolabconv/test/src/test-kolab-contact.c b/src/libekolabconv/test/src/test-kolab-contact.c
index 36a0e9d..ea99d8d 100644
--- a/src/libekolabconv/test/src/test-kolab-contact.c
+++ b/src/libekolabconv/test/src/test-kolab-contact.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* test-kolab-contact.c
*
@@ -357,7 +358,7 @@ void
validate_kolab_contact_201 (const I_contact *icontact, gint stage)
{
(void)stage;
-
+
assert(g_list_length(icontact->common->kolab_attachment_store) == 2);
assert_binary_attachment_equal(
@@ -563,9 +564,9 @@ void
validate_kolab_contact_500 (const I_contact *icontact, gint stage)
{
GList *list = NULL;
-
+
(void)stage;
-
+
assert_email_in_list (icontact->emails, "a1 b d", NULL);
assert_email_in_list (icontact->emails, "a2 b d", NULL);
assert_email_in_list (icontact->emails, "a3 b d", NULL);
diff --git a/src/libekolabconv/test/src/test-kolab-event.c b/src/libekolabconv/test/src/test-kolab-event.c
index 62cbb12..fc5ed82 100644
--- a/src/libekolabconv/test/src/test-kolab-event.c
+++ b/src/libekolabconv/test/src/test-kolab-event.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* test_kolab_event.c
*
@@ -189,7 +190,7 @@ validate_kolab_event_102(const I_event *ievent, gint stage)
void
validate_kolab_event_103(const I_event *ievent, gint stage)
{
- GList *list = NULL;
+ GList *list = NULL;
log_bitmask(stage);
@@ -273,7 +274,7 @@ validate_kolab_event_105(const I_event *ievent, gint stage)
log_bitmask(stage);
- /* common */
+ /* common */
validate_icommon(ievent->incidence->common,
"Toltec Connector Open Format (2.0)",
"TOLTEC.3B4BE7A2FD344DF8876CA05F1A33DA44",
@@ -2165,7 +2166,7 @@ validate_kolab_event_136(const I_event *ievent, gint stage)
{
gint rdate[3] = {25,10,2020};
GList *list = NULL;
-
+
log_bitmask(stage);
/* common */
@@ -3020,9 +3021,9 @@ void
validate_kolab_event_503(const I_event *ievent, gint stage)
{
Alarm *mail_alarm = NULL;
-
+
(void)stage;
-
+
/* advanced alarms */
g_assert_cmpint(g_list_length(ievent->incidence->advanced_alarm), ==, 2);
@@ -3065,9 +3066,9 @@ void
validate_kolab_event_504(const I_event *ievent, gint stage)
{
Alarm *mail_alarm = NULL;
-
+
(void)stage;
-
+
/* advanced alarms */
g_assert_cmpint(g_list_length(ievent->incidence->advanced_alarm), ==, 2);
diff --git a/src/libekolabconv/test/src/test-kolab-note.c b/src/libekolabconv/test/src/test-kolab-note.c
index b345f82..2034aa7 100644
--- a/src/libekolabconv/test/src/test-kolab-note.c
+++ b/src/libekolabconv/test/src/test-kolab-note.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* test_kolab_note.c
*
diff --git a/src/libekolabconv/test/src/test-kolab-task.c b/src/libekolabconv/test/src/test-kolab-task.c
index ce26dc5..5716114 100644
--- a/src/libekolabconv/test/src/test-kolab-task.c
+++ b/src/libekolabconv/test/src/test-kolab-task.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* test_kolab_task.c
*
@@ -1826,7 +1827,7 @@ void
validate_kolab_task_225(const I_task *itask, gint stage)
{
GList *list = NULL;
-
+
g_assert(itask != NULL);
g_assert(itask->incidence != NULL);
@@ -1886,7 +1887,7 @@ void
validate_kolab_task_226(const I_task *itask, gint stage)
{
GList *list = NULL;
-
+
g_assert(itask != NULL);
g_assert(itask->incidence != NULL);
@@ -2002,7 +2003,7 @@ void
validate_kolab_task_228(const I_task *itask, gint stage)
{
GList *list = NULL;
-
+
g_assert(itask != NULL);
g_assert(itask->incidence != NULL);
@@ -2229,7 +2230,7 @@ validate_kolab_task_232(const I_task *itask, gint stage)
{
gint rdate[3] = {24,8,2011};
GList *list = NULL;
-
+
g_assert(itask != NULL);
g_assert(itask->incidence != NULL);
@@ -2346,7 +2347,7 @@ void
validate_kolab_task_234(const I_task *itask, gint stage)
{
GList *list = NULL;
-
+
g_assert(itask != NULL);
g_assert(itask->incidence != NULL);
@@ -2364,7 +2365,7 @@ void
validate_kolab_task_235(const I_task *itask, gint stage)
{
GList *list = NULL;
-
+
g_assert(itask != NULL);
g_assert(itask->incidence != NULL);
@@ -2439,7 +2440,7 @@ void
validate_kolab_task_502(const I_task *itask, gint stage)
{
(void)stage;
-
+
/* advanced alarms */
assert_Alarm_in_list(itask->incidence->advanced_alarm,
diff --git a/src/libekolabconv/test/src/test-util.c b/src/libekolabconv/test/src/test-util.c
index 73095d2..f6188c2 100644
--- a/src/libekolabconv/test/src/test-util.c
+++ b/src/libekolabconv/test/src/test-util.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* test_util.c
*
@@ -34,7 +35,7 @@ void
assert_equal(gchar *expected, GString *value)
{
GString *expected_str = NULL;
-
+
g_debug("testing if string value '%s' is equal to expected value '%s'", value ? value->str : NULL, expected);
if (expected == NULL) {
g_assert(value == NULL);
@@ -77,7 +78,7 @@ assert_equal_gdate(gchar *expected, GDate *gdate)
{
gchar *gstr = NULL;
GString *gstr_new = NULL;
-
+
if (expected == NULL) {
g_assert(gdate == NULL);
return;
@@ -100,7 +101,7 @@ assert_equal_timestamp(gchar *expected, time_t *timestamp)
{
struct tm *ts = NULL;
gchar *tstr = NULL;
-
+
g_debug("timestamp: %lu", *timestamp);
ts = gmtime(timestamp);
@@ -124,7 +125,7 @@ void
assert_timestamp_not_older_than_10_seconds(time_t *timestamp)
{
time_t now = NULL;
-
+
g_debug("timestamp: %lu", *timestamp);
now = time(NULL);
@@ -144,7 +145,7 @@ assert_phone_in_list (GList *phone_nrs, gchar *nr_expected, Icontact_phone_type
gint found_type = 0; /* type found? */
gint matched_number = 0; /* numbers match? */
Phone_number *ret = NULL;
-
+
g_assert (phone_nrs != NULL);
while (phone_nrs != NULL) {
@@ -254,7 +255,7 @@ assert_address_in_list (GList *addresses,
gchar *country)
{
(void)type;
-
+
g_assert (addresses != NULL);
while (addresses != NULL) {
@@ -496,7 +497,7 @@ validate_iincidence(const I_incidence *iincidence, gchar *summary, gchar *locati
gchar* start_date, gint stage)
{
(void)stage;
-
+
g_assert(iincidence != NULL);
assert_equal(summary, iincidence->summary);
@@ -720,7 +721,7 @@ validate_kolab_store_xml(GList *elements, gint index, gchar *name)
GList *elem = g_list_nth(elements, index);
gchar *xml_str = NULL;
xmlDocPtr tree = NULL;
-
+
g_assert(elem != NULL);
xml_str = (gchar*)elem->data;
diff --git a/src/libekolabconv/test/src/test-util.h b/src/libekolabconv/test/src/test-util.h
index 4ce51cc..f174ac5 100644
--- a/src/libekolabconv/test/src/test-util.h
+++ b/src/libekolabconv/test/src/test-util.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* test_util.h
*
diff --git a/src/libekolabconv/test/src/testbase.c b/src/libekolabconv/test/src/testbase.c
index c990d72..82f6017 100644
--- a/src/libekolabconv/test/src/testbase.c
+++ b/src/libekolabconv/test/src/testbase.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* testbase.c
*
@@ -80,7 +81,7 @@ read_kolab_email_file_tested (const gchar* filename, gint *stage)
{
GError *error = NULL;
Kolab_conv_mail *mail = NULL;
-
+
/* read kolab mail file to the kolab mail struct */
g_message("reading email file %s to a kolab mail struct", filename);
mail = read_kolab_email_file (filename, &error);
@@ -121,7 +122,7 @@ create_evolution_vcard_tested (const ECalComponentWithTZ* epim, gint *stage)
icalcomponent *ical_vcal = NULL;
icalcomponent *ical_vtz = NULL;
gchar *ical_str = NULL;
-
+
g_log ("libekolabconv", G_LOG_LEVEL_MESSAGE,
"serializing evolution event to vCard 3.0 string");
ical_vevent = e_cal_component_get_icalcomponent (
@@ -166,7 +167,7 @@ static EContact*
process_evolution_vcard_tested_I_contact (const gchar* vcard_str, gint *stage)
{
EContact *econtact = NULL;
-
+
g_message("deserializing evolution contact from vCard 3.0 string");
econtact = e_contact_new_from_vcard(vcard_str);
*stage |= TEST_STAGE_FILE_TO_EVO;
@@ -183,7 +184,7 @@ process_evolution_vcard_tested (const gchar* vcard_str, icalcomponent_kind kind,
ECalComponent *etz = NULL;
ECalComponentWithTZ *ectz = NULL;
gboolean success = FALSE;
-
+
g_message("deserializing evolution instance from vCard 3.0 string");
ical_vcal = icalcomponent_new_from_string( vcard_str );
ical_vevent = icalcomponent_get_first_component ( ical_vcal, kind );
diff --git a/src/libekolabconv/test/src/testbase.h b/src/libekolabconv/test/src/testbase.h
index a0ccab3..e88e85d 100644
--- a/src/libekolabconv/test/src/testbase.h
+++ b/src/libekolabconv/test/src/testbase.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* testbase.h
*
diff --git a/src/libekolabutil/camel-system-headers.h b/src/libekolabutil/camel-system-headers.h
index 1ce7149..e40c52f 100644
--- a/src/libekolabutil/camel-system-headers.h
+++ b/src/libekolabutil/camel-system-headers.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* camel-system-headers.h
*
@@ -11,17 +12,17 @@
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#ifndef _CAMEL_SYSTEM_HEADERS_
diff --git a/src/libekolabutil/kolab-util-camel.c b/src/libekolabutil/kolab-util-camel.c
index 7950907..8a5db8e 100644
--- a/src/libekolabutil/kolab-util-camel.c
+++ b/src/libekolabutil/kolab-util-camel.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-util-camel.c
*
diff --git a/src/libekolabutil/kolab-util-camel.h b/src/libekolabutil/kolab-util-camel.h
index 8b01fa7..e924503 100644
--- a/src/libekolabutil/kolab-util-camel.h
+++ b/src/libekolabutil/kolab-util-camel.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-util-camel.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#ifndef _KOLAB_UTIL_CAMEL_H_
diff --git a/src/libekolabutil/kolab-util-error.c b/src/libekolabutil/kolab-util-error.c
index 2dc02b9..b2e0746 100644
--- a/src/libekolabutil/kolab-util-error.c
+++ b/src/libekolabutil/kolab-util-error.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-util-error.c
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#include "kolab-util-error.h"
diff --git a/src/libekolabutil/kolab-util-error.h b/src/libekolabutil/kolab-util-error.h
index df15d7c..fc4ade1 100644
--- a/src/libekolabutil/kolab-util-error.h
+++ b/src/libekolabutil/kolab-util-error.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-util-error.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#ifndef _KOLAB_UTIL_ERROR_H_
diff --git a/src/libekolabutil/kolab-util-folder.c b/src/libekolabutil/kolab-util-folder.c
index 0c5165b..31951a8 100644
--- a/src/libekolabutil/kolab-util-folder.c
+++ b/src/libekolabutil/kolab-util-folder.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-util-folder.c
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#include <glib.h>
@@ -57,7 +58,7 @@ kolab_util_folder_type_match_with_context_id (KolabFolderTypeID type_id,
(type_id < KOLAB_FOLDER_LAST_TYPE));
g_assert ((context_id > KOLAB_FOLDER_CONTEXT_INVAL) &&
(context_id < KOLAB_FOLDER_LAST_CONTEXT));
-
+
switch (context_id) {
case KOLAB_FOLDER_CONTEXT_EMAIL:
if ((type_id < KOLAB_FOLDER_TYPE_UNKNOWN) ||
@@ -77,7 +78,7 @@ kolab_util_folder_type_match_with_context_id (KolabFolderTypeID type_id,
default:
/* can't happen */
g_assert_not_reached ();
-
+
}
return TRUE;
}
diff --git a/src/libekolabutil/kolab-util-folder.h b/src/libekolabutil/kolab-util-folder.h
index 594935f..387b90d 100644
--- a/src/libekolabutil/kolab-util-folder.h
+++ b/src/libekolabutil/kolab-util-folder.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-util-folder.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with main.c; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#include <glib.h>
diff --git a/src/libekolabutil/kolab-util-glib.c b/src/libekolabutil/kolab-util-glib.c
index 23ac3a5..c66414b 100644
--- a/src/libekolabutil/kolab-util-glib.c
+++ b/src/libekolabutil/kolab-util-glib.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-util-glib.c
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#include <glib-object.h>
@@ -38,7 +39,7 @@ kolab_util_glib_init (void)
if (is_initialized == TRUE)
return;
-
+
g_thread_init (NULL);
g_type_init ();
@@ -63,7 +64,7 @@ kolab_util_glib_ghashtable_gdestroy (gpointer data)
if (data == NULL)
return;
-
+
tbl = (GHashTable *) data;
g_hash_table_destroy (tbl);
}
@@ -93,7 +94,7 @@ kolab_util_glib_ghashtable_new_from_str_glist (GList *list)
GHashTable *tbl = NULL;
GList *lst_ptr = NULL;
gchar *tmp_str = NULL;
-
+
if (list == NULL)
return NULL;
@@ -117,7 +118,7 @@ void
kolab_util_glib_glist_free_segment (GList *list)
{
GList *list_ptr = NULL;
-
+
if (list == NULL)
return;
@@ -143,7 +144,7 @@ void
kolab_util_glib_glist_gdestroy (gpointer data)
{
GList *list = NULL;
-
+
if (data == NULL)
return;
diff --git a/src/libekolabutil/kolab-util-glib.h b/src/libekolabutil/kolab-util-glib.h
index cee00e8..2133a44 100644
--- a/src/libekolabutil/kolab-util-glib.h
+++ b/src/libekolabutil/kolab-util-glib.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-util-glib.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#ifndef _KOLAB_UTIL_GLIB_H_
diff --git a/src/libekolabutil/kolab-util-kconv.c b/src/libekolabutil/kolab-util-kconv.c
index 13ce548..bc0b4e9 100644
--- a/src/libekolabutil/kolab-util-kconv.c
+++ b/src/libekolabutil/kolab-util-kconv.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-util-kconv.c
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#include <glib.h>
@@ -67,7 +68,7 @@ kolab_util_kconv_kconvmail_clone (const Kolab_conv_mail *kconvmail)
newpart->mime_type = g_strdup (kcmpart->mime_type);
newpart->length = kcmpart->length;
newpart->data = g_memdup (kcmpart->data,
- newpart->length);
+ newpart->length);
}
return newkcmail;
@@ -129,7 +130,7 @@ kolab_util_kconv_kconvmail_data_base64_decode (GList *kconvbase64)
gchar *base64_data = NULL;
guchar *part_data = NULL;
gsize part_len = 0;
-
+
kconvmailpart = &(kconvmail->mail_parts[ii]);
base64_data = kconvbase64_ptr->data;
@@ -154,7 +155,7 @@ kolab_util_kconv_kconvmail_data_base64_decode (GList *kconvbase64)
kconvbase64_ptr = g_list_next (kconvbase64_ptr);
}
-
+
return kconvmail;
}
@@ -182,7 +183,7 @@ kolab_util_kconv_kconvmail_checksum (const Kolab_conv_mail *kconvmail)
*/
checksum = g_checksum_new (G_CHECKSUM_SHA1);
-
+
for (ii = 0; ii < kconvmail->length; ii++) {
Kolab_conv_mail_part *kconvmailpart = NULL;
@@ -205,7 +206,7 @@ kolab_util_kconv_kconvmail_checksum (const Kolab_conv_mail *kconvmail)
checksum_str = g_strdup (g_checksum_get_string (checksum));
g_checksum_free (checksum);
-
+
return checksum_str;
}
diff --git a/src/libekolabutil/kolab-util-kconv.h b/src/libekolabutil/kolab-util-kconv.h
index c1a7ff9..78b8b07 100644
--- a/src/libekolabutil/kolab-util-kconv.h
+++ b/src/libekolabutil/kolab-util-kconv.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-util-kconv.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#ifndef _KOLAB_UTIL_KCONV_H_
diff --git a/src/libekolabutil/kolab-util-sqlite.c b/src/libekolabutil/kolab-util-sqlite.c
index cb2215e..696de58 100644
--- a/src/libekolabutil/kolab-util-sqlite.c
+++ b/src/libekolabutil/kolab-util-sqlite.c
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-util-sqlite.c
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#include "kolab-util-error.h"
@@ -40,13 +41,13 @@ kolab_util_sqlite_table_exists_cb (void *data,
gchar **colname)
{
KolabUtilSqliteDb *kdb = (KolabUtilSqliteDb *)data;
-
+
(void)ncols;
(void)coltext;
(void)colname;
kdb->ctr++;
-
+
return SQLITE_OK;
}
@@ -58,7 +59,7 @@ kolab_util_sqlite_open_trycreate (const gchar *path,
sqlite3 *db = NULL;
g_assert (path != NULL);
- g_return_val_if_fail (err == NULL || *err == NULL, NULL);
+ g_return_val_if_fail (err == NULL || *err == NULL, NULL);
sql3_err = sqlite3_open_v2 (path,
&db,
@@ -114,7 +115,7 @@ kolab_util_sqlite_exec_str_full (KolabUtilSqliteDb *kdb,
KOLAB_UTIL_ERROR_SQLITE_DB,
"%s: %s",
__func__, sqlite3_errmsg (kdb->db));
- return FALSE;
+ return FALSE;
}
return TRUE;
}
@@ -139,11 +140,11 @@ kolab_util_sqlite_db_free (KolabUtilSqliteDb *kdb,
gboolean ok = FALSE;
GError *tmp_err = NULL;
- g_return_val_if_fail (err == NULL || *err == NULL, FALSE);
-
+ g_return_val_if_fail (err == NULL || *err == NULL, FALSE);
+
if (kdb == NULL)
return TRUE;
-
+
ok = kolab_util_sqlite_db_close (kdb, &tmp_err);
if (! ok) {
g_propagate_error (err, tmp_err);
@@ -173,12 +174,12 @@ kolab_util_sqlite_db_open (KolabUtilSqliteDb *kdb,
g_assert (dbpath != NULL);
g_assert (filename != NULL);
g_return_val_if_fail (err == NULL || *err == NULL, FALSE);
-
+
if (kdb->db != NULL)
return TRUE;
/* inspired by construct() from camel-store.c */
-
+
store_db_path = g_build_filename (dbpath, filename, NULL);
if (store_db_path == NULL) {
g_set_error (err,
@@ -217,7 +218,7 @@ kolab_util_sqlite_db_open (KolabUtilSqliteDb *kdb,
g_error_free (tmp_err);
tmp_err = NULL;
}
-
+
return TRUE;
}
@@ -241,7 +242,7 @@ kolab_util_sqlite_db_close (KolabUtilSqliteDb *kdb,
}
kdb->db = NULL;
}
-
+
return TRUE;
}
@@ -253,7 +254,7 @@ kolab_util_sqlite_table_exists (KolabUtilSqliteDb *kdb,
gchar* sql_str = NULL;
gboolean ok = FALSE;
GError *tmp_err = NULL;
-
+
g_assert (kdb != NULL);
g_assert (kdb->db != NULL);
g_assert (name != NULL);
@@ -281,13 +282,13 @@ kolab_util_sqlite_table_exists (KolabUtilSqliteDb *kdb,
KOLAB_UTIL_ERROR,
KOLAB_UTIL_ERROR_SQLITE_DB,
"%s: multiple table [%s], corrupted [%s]",
- __func__, name, kdb->path);
+ __func__, name, kdb->path);
return FALSE;
}
if (kdb->ctr == 0)
return FALSE;
-
+
return TRUE;
}
@@ -299,7 +300,7 @@ kolab_util_sqlite_table_drop (KolabUtilSqliteDb *kdb,
gchar* sql_str = NULL;
gboolean ok = FALSE;
GError *tmp_err = NULL;
-
+
g_assert (kdb != NULL);
g_assert (kdb->db != NULL);
g_assert (name != NULL);
@@ -314,7 +315,7 @@ kolab_util_sqlite_table_drop (KolabUtilSqliteDb *kdb,
g_propagate_error (err, tmp_err);
return FALSE;
}
-
+
return TRUE;
}
@@ -344,7 +345,7 @@ kolab_util_sqlite_table_get_rowcount (KolabUtilSqliteDb *kdb,
g_propagate_error (err, tmp_err);
return -1;
}
-
+
/* get row count from db */
sql_errno = sqlite3_step (sql_stmt);
if (sql_errno != SQLITE_ROW) {
@@ -399,7 +400,7 @@ kolab_util_sqlite_prep_stmt (KolabUtilSqliteDb *kdb,
KOLAB_UTIL_ERROR_SQLITE_DB,
"%s: %s",
__func__, sqlite3_errmsg (kdb->db));
- return FALSE;
+ return FALSE;
}
return TRUE;
}
@@ -424,7 +425,7 @@ kolab_util_sqlite_fnlz_stmt (KolabUtilSqliteDb *kdb,
KOLAB_UTIL_ERROR_SQLITE_DB,
"%s: %s",
__func__, sqlite3_errmsg (kdb->db));
- return FALSE;
+ return FALSE;
}
return TRUE;
}
@@ -445,7 +446,7 @@ kolab_util_sqlite_transaction_start (KolabUtilSqliteDb *kdb,
g_propagate_error (err, tmp_err);
return FALSE;
}
-
+
return TRUE;
}
@@ -465,7 +466,7 @@ kolab_util_sqlite_transaction_commit (KolabUtilSqliteDb *kdb,
g_propagate_error (err, tmp_err);
return FALSE;
}
-
+
return TRUE;
}
@@ -485,7 +486,7 @@ kolab_util_sqlite_transaction_abort (KolabUtilSqliteDb *kdb,
g_propagate_error (err, tmp_err);
return FALSE;
}
-
+
return TRUE;
}
diff --git a/src/libekolabutil/kolab-util-sqlite.h b/src/libekolabutil/kolab-util-sqlite.h
index 7d04215..9072359 100644
--- a/src/libekolabutil/kolab-util-sqlite.h
+++ b/src/libekolabutil/kolab-util-sqlite.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-util-sqlite.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#ifndef _KOLAB_UTIL_SQLITE_H_
diff --git a/src/libekolabutil/kolab-util-types.h b/src/libekolabutil/kolab-util-types.h
index 1995a7a..ed5a3b8 100644
--- a/src/libekolabutil/kolab-util-types.h
+++ b/src/libekolabutil/kolab-util-types.h
@@ -1,3 +1,4 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/***************************************************************************
* kolab-util-types.h
*
@@ -11,17 +12,17 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
-
+
/*----------------------------------------------------------------------------*/
#ifndef _KOLAB_UTIL_TYPES_H_
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]