556
556
db = bf->priv->file_db;
557
557
query = e_data_book_view_get_card_query (book_view);
559
if ( ! strcmp (query, "(contains \"x-evolution-any-field\" \"\")")) {
559
if ( !strcmp (query, "(contains \"x-evolution-any-field\" \"\")")) {
560
560
e_data_book_view_notify_status_message (book_view, _("Loading..."));
561
561
allcontacts = TRUE;
901
901
static EBookBackendSyncStatus
902
e_book_backend_file_get_supported_auth_methods (EBookBackendSync *backend,
908
return GNOME_Evolution_Addressbook_Success;
911
static EBookBackendSyncStatus
902
912
e_book_backend_file_get_supported_fields (EBookBackendSync *backend,
1178
1188
/* the database didn't exist, so we create the
1179
1189
directory then the .db */
1180
1190
db->close (db, 0);
1181
rv = g_mkdir_with_parents (dirname, 0777);
1191
rv = g_mkdir_with_parents (dirname, 0700);
1182
1192
if (rv == -1 && errno != EEXIST) {
1183
1193
g_warning ("failed to make directory %s: %s", dirname, g_strerror (errno));
1184
1194
g_free (dirname);
1499
1509
backend_class = E_BOOK_BACKEND_CLASS (klass);
1501
1511
/* Set the virtual methods. */
1502
backend_class->load_source = e_book_backend_file_load_source;
1503
backend_class->get_static_capabilities = e_book_backend_file_get_static_capabilities;
1504
backend_class->start_book_view = e_book_backend_file_start_book_view;
1505
backend_class->stop_book_view = e_book_backend_file_stop_book_view;
1506
backend_class->cancel_operation = e_book_backend_file_cancel_operation;
1507
backend_class->set_mode = e_book_backend_file_set_mode;
1508
backend_class->sync = e_book_backend_file_sync;
1509
sync_class->remove_sync = e_book_backend_file_remove;
1510
sync_class->create_contact_sync = e_book_backend_file_create_contact;
1511
sync_class->remove_contacts_sync = e_book_backend_file_remove_contacts;
1512
sync_class->modify_contact_sync = e_book_backend_file_modify_contact;
1513
sync_class->get_contact_sync = e_book_backend_file_get_contact;
1514
sync_class->get_contact_list_sync = e_book_backend_file_get_contact_list;
1515
sync_class->get_changes_sync = e_book_backend_file_get_changes;
1516
sync_class->authenticate_user_sync = e_book_backend_file_authenticate_user;
1517
sync_class->get_supported_fields_sync = e_book_backend_file_get_supported_fields;
1518
sync_class->get_required_fields_sync = e_book_backend_file_get_required_fields;
1512
backend_class->load_source = e_book_backend_file_load_source;
1513
backend_class->get_static_capabilities = e_book_backend_file_get_static_capabilities;
1514
backend_class->start_book_view = e_book_backend_file_start_book_view;
1515
backend_class->stop_book_view = e_book_backend_file_stop_book_view;
1516
backend_class->cancel_operation = e_book_backend_file_cancel_operation;
1517
backend_class->set_mode = e_book_backend_file_set_mode;
1518
backend_class->sync = e_book_backend_file_sync;
1519
sync_class->remove_sync = e_book_backend_file_remove;
1520
sync_class->create_contact_sync = e_book_backend_file_create_contact;
1521
sync_class->remove_contacts_sync = e_book_backend_file_remove_contacts;
1522
sync_class->modify_contact_sync = e_book_backend_file_modify_contact;
1523
sync_class->get_contact_sync = e_book_backend_file_get_contact;
1524
sync_class->get_contact_list_sync = e_book_backend_file_get_contact_list;
1525
sync_class->get_changes_sync = e_book_backend_file_get_changes;
1526
sync_class->authenticate_user_sync = e_book_backend_file_authenticate_user;
1527
sync_class->get_supported_auth_methods_sync = e_book_backend_file_get_supported_auth_methods;
1528
sync_class->get_supported_fields_sync = e_book_backend_file_get_supported_fields;
1529
sync_class->get_required_fields_sync = e_book_backend_file_get_required_fields;
1520
1531
object_class->dispose = e_book_backend_file_dispose;
1521
1532
object_class->finalize = e_book_backend_file_finalize;