]> git.sur5r.net Git - glabels/blobdiff - glabels2/src/merge-vcard.c
2009-09-17 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / src / merge-vcard.c
index c0eb1449667bc9184f1c2c01f52c2d8ff207f3ca..69d205ddcf511d1c66c227f6a5145e5d6d63ed8a 100644 (file)
@@ -1,27 +1,23 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
 /*
- *  (GLABELS) Label and Business Card Creation program for GNOME
- *
- *  merge_vcard.c:  vcard merge backend module
- *
- *  Copyright (C) 2001  Jim Evins <evins@snaught.com>.
+ *  merge-vcard.c
+ *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
  *  and
  *  Copyright (C) 2005  Austin Henry <ahenry@users.sourceforge.net>
  *
- *  This program is free software; you can redistribute it and/or modify
+ *  This file is part of gLabels.
+ *
+ *  gLabels is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
+ *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
- *  This program is distributed in the hope that it will be useful,
+ *  gLabels 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 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include <config.h>
 
 
 #include "merge-vcard.h"
-#include <libebook/e-contact.h>
 
+#include <libebook/e-contact.h>
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
 
 #include "debug.h"
 
+
 /*===========================================*/
 /* Private types                             */
 /*===========================================*/
@@ -54,6 +51,7 @@ enum {
         ARG_0,
 };
 
+
 /*===========================================*/
 /* Private globals                           */
 /*===========================================*/
@@ -85,12 +83,12 @@ static void           gl_merge_vcard_copy            (glMerge          *dst_merg
 static char *         parse_next_vcard               (FILE             *fp);
 
 
-\f
 /*****************************************************************************/
 /* Boilerplate object stuff.                                                 */
 /*****************************************************************************/
 G_DEFINE_TYPE (glMergeVCard, gl_merge_vcard, GL_TYPE_MERGE);
 
+
 static void
 gl_merge_vcard_class_init (glMergeVCardClass *class)
 {
@@ -116,6 +114,7 @@ gl_merge_vcard_class_init (glMergeVCardClass *class)
         gl_debug (DEBUG_MERGE, "END");
 }
 
+
 static void
 gl_merge_vcard_init (glMergeVCard *merge_vcard)
 {
@@ -126,6 +125,7 @@ gl_merge_vcard_init (glMergeVCard *merge_vcard)
         gl_debug (DEBUG_MERGE, "END");
 }
 
+
 static void
 gl_merge_vcard_finalize (GObject *object)
 {
@@ -142,6 +142,7 @@ gl_merge_vcard_finalize (GObject *object)
         gl_debug (DEBUG_MERGE, "END");
 }
 
+
 /*--------------------------------------------------------------------------*/
 /* Set argument.                                                            */
 /*--------------------------------------------------------------------------*/
@@ -162,6 +163,7 @@ gl_merge_vcard_set_property (GObject      *object,
         }
 }
 
+
 /*--------------------------------------------------------------------------*/
 /* Get argument.                                                            */
 /*--------------------------------------------------------------------------*/
@@ -183,7 +185,7 @@ gl_merge_vcard_get_property (GObject     *object,
 
 }
 
-/* TODO */
+
 /*--------------------------------------------------------------------------*/
 /* Get key list.                                                            */
 /*--------------------------------------------------------------------------*/
@@ -209,7 +211,7 @@ gl_merge_vcard_get_key_list (glMerge *merge)
         return key_list;
 }
 
-/* TODO? */
+
 /*--------------------------------------------------------------------------*/
 /* Get "primary" key.                                                       */
 /*--------------------------------------------------------------------------*/
@@ -220,6 +222,7 @@ gl_merge_vcard_get_primary_key (glMerge *merge)
         return g_strdup ("full_name");
 }
 
+
 /*--------------------------------------------------------------------------*/
 /* Open merge source.                                                       */
 /*--------------------------------------------------------------------------*/
@@ -242,6 +245,7 @@ gl_merge_vcard_open (glMerge *merge)
         return;
 }
 
+
 /*--------------------------------------------------------------------------*/
 /* Close merge source.                                                      */
 /*--------------------------------------------------------------------------*/
@@ -258,6 +262,7 @@ gl_merge_vcard_close (glMerge *merge)
         }
 }
 
+
 /*--------------------------------------------------------------------------*/
 /* Get next record from merge source, NULL if no records left (i.e EOF)     */
 /*--------------------------------------------------------------------------*/
@@ -317,6 +322,7 @@ gl_merge_vcard_get_record (glMerge *merge)
         return record;
 }
 
+
 /*---------------------------------------------------------------------------*/
 /* Copy merge_vcard specific fields.                                         */
 /*---------------------------------------------------------------------------*/
@@ -331,6 +337,7 @@ gl_merge_vcard_copy (glMerge *dst_merge,
         src_merge_vcard = GL_MERGE_VCARD (src_merge);
 }
 
+
 /*---------------------------------------------------------------------------*/
 /* PRIVATE: pull out a full VCard from the open file                         */
 /* Arguments:                                                                */
@@ -381,3 +388,14 @@ parse_next_vcard (FILE *fp)
 
 
 #endif /* HAVE_LIBEBOOK */
+
+
+
+/*
+ * Local Variables:       -- emacs
+ * mode: C                -- emacs
+ * c-basic-offset: 8      -- emacs
+ * tab-width: 8           -- emacs
+ * indent-tabs-mode: nil  -- emacs
+ * End:                   -- emacs
+ */