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



commit 9ac9e28f2ebce7e46a49a12a7bfcc7907e623892
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]