Commit 4a1211a4 authored by Martyn Russell's avatar Martyn Russell Committed by Jürg Billeter

libtracker-sparql: Renamed 'import' method to 'load'

parent 6e0bf1f0
......@@ -80,9 +80,9 @@ tracker_sparql_connection_update_finish
tracker_sparql_connection_update_blank
tracker_sparql_connection_update_blank_async
tracker_sparql_connection_update_blank_finish
tracker_sparql_connection_import
tracker_sparql_connection_import_async
tracker_sparql_connection_import_finish
tracker_sparql_connection_load
tracker_sparql_connection_load_async
tracker_sparql_connection_load_finish
tracker_sparql_connection_statistics
tracker_sparql_connection_statistics_async
tracker_sparql_connection_statistics_finish
......
......@@ -325,7 +325,7 @@ public abstract class Tracker.Sparql.Connection : Object {
}
/**
* tracker_sparql_connection_import:
* tracker_sparql_connection_load:
* @self: a #TrackerSparqlConnection
* @file: a #GFile
* @cancellable: a #GCancellable used to cancel the operation
......@@ -334,12 +334,12 @@ public abstract class Tracker.Sparql.Connection : Object {
* Loads a Turtle file (TTL) into the store. The API call is completely
* synchronous, so it may block.
*/
public virtual void import (File file, Cancellable? cancellable = null) throws Sparql.Error {
warning ("Interface 'import' not implemented");
public virtual void load (File file, Cancellable? cancellable = null) throws Sparql.Error {
warning ("Interface 'load' not implemented");
}
/**
* tracker_sparql_connection_import_async:
* tracker_sparql_connection_load_async:
* @self: a #TrackerSparqlConnection
* @file: a #GFile
* @_callback_: user-defined #GAsyncReadyCallback to be called when
......@@ -351,15 +351,15 @@ public abstract class Tracker.Sparql.Connection : Object {
*/
/**
* tracker_sparql_connection_import_finish:
* tracker_sparql_connection_load_finish:
* @self: a #TrackerSparqlConnection
* @_res_: a #GAsyncResult with the result of the operation
* @error: #GError for error reporting.
*
* Finishes the asynchronous load of the Turtle file.
*/
public async virtual void import_async (File file, Cancellable? cancellable = null) throws Sparql.Error {
warning ("Interface 'import_async' not implemented");
public async virtual void load_async (File file, Cancellable? cancellable = null) throws Sparql.Error {
warning ("Interface 'load_async' not implemented");
}
/**
......
......@@ -71,12 +71,12 @@ class Tracker.Sparql.PluginLoader : Connection {
return yield bus.update_blank_async (sparql, priority, cancellable);
}
public override void import (File file, Cancellable? cancellable = null) throws Sparql.Error {
bus.import (file, cancellable);
public override void load (File file, Cancellable? cancellable = null) throws Sparql.Error {
bus.load (file, cancellable);
}
public async override void import_async (File file, Cancellable? cancellable = null) throws Sparql.Error {
yield bus.import_async (file, cancellable);
public async override void load_async (File file, Cancellable? cancellable = null) throws Sparql.Error {
yield bus.load_async (file, cancellable);
}
public override Cursor? statistics (Cancellable? cancellable = null) throws Sparql.Error {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment