evolution-3.6.4/modules/backup-restore/e-mail-config-restore-ready-page.c

No issues found

Incomplete coverage

Tool Failure ID Location Function Message Data
clang-analyzer no-output-found e-mail-config-restore-ready-page.c Message(text='Unable to locate XML output from invoke-clang-analyzer') None
clang-analyzer no-output-found e-mail-config-restore-ready-page.c Message(text='Unable to locate XML output from invoke-clang-analyzer') None
Failure running clang-analyzer ('no-output-found')
Message
Unable to locate XML output from invoke-clang-analyzer
Failure running clang-analyzer ('no-output-found')
Message
Unable to locate XML output from invoke-clang-analyzer
 1 /*
 2  * e-mail-config-restore-ready-page.c
 3  *
 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.
 8  *
 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.
13  *
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/>
16  *
17  */
18 
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. */
23 
24 #include "e-mail-config-restore-ready-page.h"
25 
26 #include <config.h>
27 #include <glib/gi18n-lib.h>
28 
29 /* Forward Declarations */
30 static void	e_mail_config_restore_ready_page_interface_init
31 					(EMailConfigPageInterface *interface);
32 
33 G_DEFINE_DYNAMIC_TYPE_EXTENDED (
34 	EMailConfigRestoreReadyPage,
35 	e_mail_config_restore_ready_page,
36 	GTK_TYPE_BOX,
37 	0,
38 	G_IMPLEMENT_INTERFACE_DYNAMIC (
39 		E_TYPE_MAIL_CONFIG_PAGE,
40 		e_mail_config_restore_ready_page_interface_init))
41 
42 static void
43 e_mail_config_restore_ready_page_class_init (EMailConfigRestoreReadyPageClass *class)
44 {
45 }
46 
47 static void
48 e_mail_config_restore_ready_page_class_finalize (EMailConfigRestoreReadyPageClass *class)
49 {
50 }
51 
52 static void
53 e_mail_config_restore_ready_page_interface_init (EMailConfigPageInterface *interface)
54 {
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;
59 }
60 
61 static void
62 e_mail_config_restore_ready_page_init (EMailConfigRestoreReadyPage *page)
63 {
64 }
65 
66 void
67 e_mail_config_restore_ready_page_type_register (GTypeModule *type_module)
68 {
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);
73 }
74 
75 EMailConfigPage *
76 e_mail_config_restore_ready_page_new (void)
77 {
78 	return g_object_new (E_TYPE_MAIL_CONFIG_RESTORE_READY_PAGE, NULL);
79 }