diff options
author | David Robillard <d@drobilla.net> | 2007-11-30 07:38:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-11-30 07:38:42 +0000 |
commit | 58af61933fe938c404b8fcd916b3939257663cdd (patch) | |
tree | d8dc1d63966756cc652178359f2b00982109a29f /src/libs/gui/LoadRemotePatchWindow.cpp | |
parent | 61e1e6e1442e97365db33b6071f8710a68987d64 (diff) | |
download | ingen-58af61933fe938c404b8fcd916b3939257663cdd.tar.gz ingen-58af61933fe938c404b8fcd916b3939257663cdd.tar.bz2 ingen-58af61933fe938c404b8fcd916b3939257663cdd.zip |
Split redland C++ wrappers out from Raul.
git-svn-id: http://svn.drobilla.net/lad/ingen@927 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/LoadRemotePatchWindow.cpp')
-rw-r--r-- | src/libs/gui/LoadRemotePatchWindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libs/gui/LoadRemotePatchWindow.cpp b/src/libs/gui/LoadRemotePatchWindow.cpp index 4c529d40..d4a9329f 100644 --- a/src/libs/gui/LoadRemotePatchWindow.cpp +++ b/src/libs/gui/LoadRemotePatchWindow.cpp @@ -18,7 +18,7 @@ #include <sys/types.h> #include <dirent.h> #include <boost/optional/optional.hpp> -#include <raul/RDFQuery.hpp> +#include <redlandmm/Query.hpp> #include "client/PatchModel.hpp" #include "interface/EngineInterface.hpp" #include "module/World.hpp" @@ -67,19 +67,19 @@ LoadRemotePatchWindow::present(SharedPtr<PatchModel> patch, GraphObject::Variabl set_patch(patch); _initial_data = data; - RDF::Model model(*App::instance().world()->rdf_world, + Redland::Model model(*App::instance().world()->rdf_world, "http://rdf.drobilla.net/ingen_patches/index.ttl", "http://rdf.drobilla.net/ingen_patches/"); - RDF::Query query(*App::instance().world()->rdf_world, Glib::ustring( + Redland::Query query(*App::instance().world()->rdf_world, Glib::ustring( "SELECT DISTINCT ?name ?uri WHERE {" " ?uri a ingen:Patch ;" " doap:name ?name ." "}")); - RDF::Query::Results results = query.run(*App::instance().world()->rdf_world, model); + Redland::Query::Results results = query.run(*App::instance().world()->rdf_world, model); - for (RDF::Query::Results::iterator i = results.begin(); i != results.end(); ++i) { + for (Redland::Query::Results::iterator i = results.begin(); i != results.end(); ++i) { Gtk::TreeModel::iterator iter = _liststore->append(); (*iter)[_columns._col_name] = (*i)["name"].to_string(); (*iter)[_columns._col_uri] = (*i)["uri"].to_string(); |