aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook-migrate.h
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2004-01-07 05:43:07 +0800
committerChris Toshok <toshok@src.gnome.org>2004-01-07 05:43:07 +0800
commit38941f937253e2c208e0165267bd9f61a075988c (patch)
tree5cef0437cfcc6a95c4a73a59de268a60a3b73b67 /addressbook/gui/component/addressbook-migrate.h
parent10fdfe795f82850d8e6dcf1923bc6780eced0763 (diff)
downloadgsoc2013-evolution-38941f937253e2c208e0165267bd9f61a075988c.tar
gsoc2013-evolution-38941f937253e2c208e0165267bd9f61a075988c.tar.gz
gsoc2013-evolution-38941f937253e2c208e0165267bd9f61a075988c.tar.bz2
gsoc2013-evolution-38941f937253e2c208e0165267bd9f61a075988c.tar.lz
gsoc2013-evolution-38941f937253e2c208e0165267bd9f61a075988c.tar.xz
gsoc2013-evolution-38941f937253e2c208e0165267bd9f61a075988c.tar.zst
gsoc2013-evolution-38941f937253e2c208e0165267bd9f61a075988c.zip
add addressbook-migrate.[ch].
2004-01-06 Chris Toshok <toshok@ximian.com> * gui/component/Makefile.am (libevolution_addressbook_la_SOURCES): add addressbook-migrate.[ch]. * gui/component/addressbook-component.c (addressbook_component_init): remove the source creation from here, it's in the migration code now. (impl_upgradeFromVersion): new function, call the addressbook-migration stuff. (addressbook_component_class_init): fill in epv->upgradeFromVersion, and call smime_component_init. (addressbook_component_peek_base_directory): new function. (addressbook_component_peek_source_list): same. * gui/component/addressbook-component.h: add prototypes for _peek_base_directory and _peek_source_list. * gui/component/addressbook-migrate.[ch]: add migration code to convert stuff from 1.x over to 1.5/2.0. svn path=/trunk/; revision=24079
Diffstat (limited to 'addressbook/gui/component/addressbook-migrate.h')
-rw-r--r--addressbook/gui/component/addressbook-migrate.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/addressbook/gui/component/addressbook-migrate.h b/addressbook/gui/component/addressbook-migrate.h
new file mode 100644
index 0000000000..15512e2183
--- /dev/null
+++ b/addressbook/gui/component/addressbook-migrate.h
@@ -0,0 +1,29 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * Copyright (C) 2004, Novell, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ *
+ * 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
+ * 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.
+ *
+ * Author: Chris Toshok (toshok@ximian.com)
+ */
+
+#ifndef _ADDRESSBOOK_MIGRATE_H_
+#define _ADDRESSBOOK_MIGRATE_H_
+
+#include "addressbook-component.h"
+
+int addressbook_migrate (AddressbookComponent *component);
+
+#endif /* _ADDRESSBOOK_MIGRATE_H_ */