[tracker/direct-access] libtracker-direct: Update to libtracker-sparql changes



commit 476cfdca340f52901e72a800ecf830a5f0cd58e0
Author: Jürg Billeter <j bitron ch>
Date:   Mon Jul 5 18:31:36 2010 +0200

    libtracker-direct: Update to libtracker-sparql changes

 src/libtracker-direct/tracker-connection.vala |   33 ++++--------------------
 1 files changed, 6 insertions(+), 27 deletions(-)
---
diff --git a/src/libtracker-direct/tracker-connection.vala b/src/libtracker-direct/tracker-connection.vala
index a5a61cb..74f582a 100644
--- a/src/libtracker-direct/tracker-connection.vala
+++ b/src/libtracker-direct/tracker-connection.vala
@@ -17,10 +17,8 @@
  * Boston, MA  02110-1301, USA.
  */
 
-public class Tracker.Direct.Connection : GLib.Object, Tracker.Sparql.Cursor {
-	private int _n_columns = 0;
-
-	Connection () {
+public class Tracker.Direct.Connection : GLib.Object, Tracker.Sparql.Connection {
+	public Connection () {
 
 	}
 
@@ -28,27 +26,8 @@ public class Tracker.Direct.Connection : GLib.Object, Tracker.Sparql.Cursor {
 		// Clean up connection
 	}
 
-	public int n_columns { 
-		get { return _n_columns; }
-	}
-
-	public bool get_value (uint column, out GLib.Value value) {
-		return false;
-	}
-
-	public bool get_string (uint column, out string value) {
-		return false;
-	}
-
-	public bool get_double (uint column, out double value) {
-		return false;
-	}
-
-	public bool iter_next () {
-		return false;
-	}
-
-	public bool rewind () {
-		return false;
+	public Cursor query (string sparql) throws GLib.Error {
+		var query_object = new Sparql.Query (sparql);
+		return query_object.execute_cursor ();
 	}
-}
\ No newline at end of file
+}



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