2
* e-mail-config-restore-ready-page.c
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) version 3.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with the program; if not, see <http://www.gnu.org/licenses/>
19
/* NOTE: This page is never actually shown to the user. It works as a
20
* placeholder, visible only when the user chooses a backup file
21
* to restore. As soon as we arrive on this page we execl() the
22
* "evolution-backup" tool, and the startup wizard disappears. */
24
#include "e-mail-config-restore-ready-page.h"
27
#include <glib/gi18n-lib.h>
29
/* Forward Declarations */
30
static void e_mail_config_restore_ready_page_interface_init
31
(EMailConfigPageInterface *interface);
33
G_DEFINE_DYNAMIC_TYPE_EXTENDED (
34
EMailConfigRestoreReadyPage,
35
e_mail_config_restore_ready_page,
38
G_IMPLEMENT_INTERFACE_DYNAMIC (
39
E_TYPE_MAIL_CONFIG_PAGE,
40
e_mail_config_restore_ready_page_interface_init))
43
e_mail_config_restore_ready_page_class_init (EMailConfigRestoreReadyPageClass *class)
48
e_mail_config_restore_ready_page_class_finalize (EMailConfigRestoreReadyPageClass *class)
53
e_mail_config_restore_ready_page_interface_init (EMailConfigPageInterface *interface)
55
/* Keep the title identical to EMailConfigRestorePage
56
* so it's only shown once in the assistant sidebar. */
57
interface->title = _("Restore from Backup");
58
interface->sort_order = E_MAIL_CONFIG_RESTORE_READY_PAGE_SORT_ORDER;
62
e_mail_config_restore_ready_page_init (EMailConfigRestoreReadyPage *page)
67
e_mail_config_restore_ready_page_type_register (GTypeModule *type_module)
69
/* XXX G_DEFINE_DYNAMIC_TYPE declares a static type registration
70
* function, so we have to wrap it with a public function in
71
* order to register types from a separate compilation unit. */
72
e_mail_config_restore_ready_page_register_type (type_module);
76
e_mail_config_restore_ready_page_new (void)
78
return g_object_new (E_TYPE_MAIL_CONFIG_RESTORE_READY_PAGE, NULL);