[tracker/direct-access: 40/121] libtracker-sparql: Finished basic abstract base class API



commit 349385552905beb2536e12e2c1a0582a7cce5a2d
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Jul 13 15:21:43 2010 +0100

    libtracker-sparql: Finished basic abstract base class API
    
    These are to be implemented by direct and bus modules

 src/libtracker-sparql/tracker-connection.vala |   26 +++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-connection.vala b/src/libtracker-sparql/tracker-connection.vala
index f774b2c..ffe457c 100644
--- a/src/libtracker-sparql/tracker-connection.vala
+++ b/src/libtracker-sparql/tracker-connection.vala
@@ -18,6 +18,32 @@
  */
 
 public abstract class Tracker.Sparql.Connection : Object {
+	// Query
 	public abstract Cursor query (string sparql, Cancellable? cancellable = null) throws GLib.Error;
 	public async abstract Cursor query_async (string sparql, Cancellable? cancellable = null) throws GLib.Error;
+
+	// Update
+	public virtual void update (string sparql, Cancellable? cancellable = null) throws GLib.Error {
+		warning ("Interface 'update' not implemented");
+	}
+	public async virtual void update_async (string sparql, int? priority = GLib.Priority.DEFAULT, Cancellable? cancellable = null) {
+		warning ("Interface 'update_async' not implemented");
+	}
+
+	// Only applies to update_async with the right priority. 
+	// Priority is used to identify batch updates.
+	public virtual void update_commit (Cancellable? cancellable = null) throws GLib.Error {
+		warning ("Interface 'update_commit' not implemented");
+	}
+	public async virtual void update_commit_async (Cancellable? cancellable = null) {
+		warning ("Interface 'update_commit_async' not implemented");
+	}
+	
+	// Import
+	public virtual void import (string uri, Cancellable? cancellable = null) throws GLib.Error {
+		warning ("Interface 'import' not implemented");
+	}
+	public async virtual void import_async (string uri, Cancellable? cancellable = null) {
+		warning ("Interface 'import_async' not implemented");
+	}
 }



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