[tracker/libtracker-sparql: 39/44] libtracker-sparql: Add priority parameter to sync methods as well



commit e30fba87625528ecca3014f8ee1ac4b1acbf2386
Author: Jürg Billeter <j bitron ch>
Date:   Mon Aug 9 12:10:40 2010 +0200

    libtracker-sparql: Add priority parameter to sync methods as well

 src/libtracker-sparql/tracker-connection.vala    |    6 ++++--
 src/libtracker-sparql/tracker-plugin-loader.vala |    8 ++++----
 2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-connection.vala b/src/libtracker-sparql/tracker-connection.vala
index c85c9cf..c358d11 100644
--- a/src/libtracker-sparql/tracker-connection.vala
+++ b/src/libtracker-sparql/tracker-connection.vala
@@ -238,13 +238,14 @@ public abstract class Tracker.Sparql.Connection : Object {
 	 * tracker_sparql_connection_update:
 	 * @self: a #TrackerSparqlConnection
 	 * @sparql: string containing the SPARQL update query
+	 * @priority: the priority for the operation
 	 * @cancellable: a #GCancellable used to cancel the operation
 	 * @error: #GError for error reporting.
 	 *
 	 * Executes a SPARQL update on the store. The API call is completely
 	 * synchronous, so it may block.
 	 */
-	public virtual void update (string sparql, Cancellable? cancellable = null) throws Sparql.Error {
+	public virtual void update (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error {
 		warning ("Interface 'update' not implemented");
 	}
 
@@ -277,6 +278,7 @@ public abstract class Tracker.Sparql.Connection : Object {
 	 * tracker_sparql_connection_update_blank:
 	 * @self: a #TrackerSparqlConnection
 	 * @sparql: string containing the SPARQL update query
+	 * @priority: the priority for the operation
 	 * @cancellable: a #GCancellable used to cancel the operation
 	 * @error: #GError for error reporting.
 	 *
@@ -287,7 +289,7 @@ public abstract class Tracker.Sparql.Connection : Object {
 	 * Returns: a #GVariant with the generated URNs, which should be freed with
 	 * g_variant_unref() when no longer used.
 	 */
-	public virtual GLib.Variant? update_blank (string sparql, Cancellable? cancellable = null) throws Sparql.Error {
+	public virtual GLib.Variant? update_blank (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error {
 		warning ("Interface 'update_blank' not implemented");
 		return null;
 	}
diff --git a/src/libtracker-sparql/tracker-plugin-loader.vala b/src/libtracker-sparql/tracker-plugin-loader.vala
index eb26663..1c95a72 100644
--- a/src/libtracker-sparql/tracker-plugin-loader.vala
+++ b/src/libtracker-sparql/tracker-plugin-loader.vala
@@ -55,12 +55,12 @@ class Tracker.Sparql.PluginLoader : Connection {
 		}
 	}
 
-	public override void update (string sparql, Cancellable? cancellable = null) throws Sparql.Error {
-		bus.update (sparql, cancellable);
+	public override void update (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error {
+		bus.update (sparql, priority, cancellable);
 	}
 
-	public override GLib.Variant? update_blank (string sparql, Cancellable? cancellable = null) throws Sparql.Error {
-		return bus.update_blank (sparql, cancellable);
+	public override GLib.Variant? update_blank (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error {
+		return bus.update_blank (sparql, priority, cancellable);
 	}
 
 	public async override void update_async (string sparql, int priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) throws Sparql.Error {



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