[tracker/rss-enclosures] libtracker-sparql: Renamed 'import' method to 'load'



commit e372abab4feb238305dbb0edf9c131de1b1a4b66
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Aug 10 10:24:51 2010 +0100

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

 .../libtracker-sparql-sections.txt                 |    6 +++---
 src/libtracker-sparql/tracker-connection.vala      |   14 +++++++-------
 src/libtracker-sparql/tracker-plugin-loader.vala   |    8 ++++----
 3 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt b/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
index dadb3a3..dbb1073 100644
--- a/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
+++ b/docs/reference/libtracker-sparql/libtracker-sparql-sections.txt
@@ -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
diff --git a/src/libtracker-sparql/tracker-connection.vala b/src/libtracker-sparql/tracker-connection.vala
index 3b229eb..d2abc20 100644
--- a/src/libtracker-sparql/tracker-connection.vala
+++ b/src/libtracker-sparql/tracker-connection.vala
@@ -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");
 	}
 
 	/**
diff --git a/src/libtracker-sparql/tracker-plugin-loader.vala b/src/libtracker-sparql/tracker-plugin-loader.vala
index c8bf878..0e1e733 100644
--- a/src/libtracker-sparql/tracker-plugin-loader.vala
+++ b/src/libtracker-sparql/tracker-plugin-loader.vala
@@ -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 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]