gnomemm r1800 - in libgdamm/trunk: . examples/simple libgda/src
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1800 - in libgdamm/trunk: . examples/simple libgda/src
- Date: Tue, 18 Nov 2008 10:59:38 +0000 (UTC)
Author: jhs
Date: Tue Nov 18 10:59:37 2008
New Revision: 1800
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1800&view=rev
Log:
2008-11-18 Johannes Schmid <jschmid openismus com>
* examples/simple/main.cc:
Use more simplified API
* libgda/src/connection.hg:
Added default arguments
* libgda/src/datamodeliter.hg:
Wrapped missing methods
Modified:
libgdamm/trunk/ChangeLog
libgdamm/trunk/examples/simple/main.cc
libgdamm/trunk/libgda/src/connection.hg
libgdamm/trunk/libgda/src/datamodeliter.hg
Modified: libgdamm/trunk/examples/simple/main.cc
==============================================================================
--- libgdamm/trunk/examples/simple/main.cc (original)
+++ libgdamm/trunk/examples/simple/main.cc Tue Nov 18 10:59:37 2008
@@ -35,7 +35,7 @@
Glib::ustring remain;
try
{
- stmt = parser->parse_string (sql, remain);
+ stmt = parser->parse_string (sql);
}
catch(const Glib::Error& err)
{
@@ -80,11 +80,10 @@
display_products_contents (const Glib::RefPtr<Gda::Connection>& cnc, const Glib::RefPtr<Gda::SqlParser>& parser)
{
const Glib::ustring sql = "SELECT ref, name, price FROM products";
- Glib::ustring remain;
Glib::RefPtr<Gda::Statement> stmt;
try
{
- stmt = parser->parse_string (sql, remain);
+ stmt = parser->parse_string (sql);
}
catch(const Glib::Error& err)
{
Modified: libgdamm/trunk/libgda/src/connection.hg
==============================================================================
--- libgdamm/trunk/libgda/src/connection.hg (original)
+++ libgdamm/trunk/libgda/src/connection.hg Tue Nov 18 10:59:37 2008
@@ -76,7 +76,7 @@
static Glib::RefPtr<Connection> open_from_string (const Glib::ustring& provider_name,
const Glib::ustring& cnc_string,
const Glib::ustring& auth_string,
- ConnectionOptions options);
+ ConnectionOptions options = CONNECTION_OPTIONS_NONE);
#else
static Glib::RefPtr<Connection> open_from_string (const Glib::ustring& provider_name,
const Glib::ustring& cnc_string,
Modified: libgdamm/trunk/libgda/src/datamodeliter.hg
==============================================================================
--- libgdamm/trunk/libgda/src/datamodeliter.hg (original)
+++ libgdamm/trunk/libgda/src/datamodeliter.hg Tue Nov 18 10:59:37 2008
@@ -76,12 +76,16 @@
_WRAP_METHOD(bool is_valid() const, gda_data_model_iter_is_valid)
_WRAP_METHOD(bool move_next(), gda_data_model_iter_move_next)
_WRAP_METHOD(bool move_prev(), gda_data_model_iter_move_prev)
+ _WRAP_METHOD(bool move_at_row(int row), gda_data_model_iter_move_at_row)
_WRAP_METHOD(int get_row() const, gda_data_model_iter_get_row)
_WRAP_METHOD(void invalidate_contents(), gda_data_model_iter_invalidate_contents)
+
+ _WRAP_METHOD(Glib::RefPtr<Holder> get_holder_for_field (int col), gda_data_model_iter_get_holder_for_field)
_WRAP_METHOD(Value get_value_at(int col) const, gda_data_model_iter_get_value_at)
_WRAP_METHOD(Value get_value_for_field(const Glib::ustring& field_name) const, gda_data_model_iter_get_value_for_field)
-
+ _WRAP_METHOD(bool set_value_at(int col, const Value& value), gda_data_model_iter_set_value_at, errthrow)
+
_WRAP_PROPERTY("current-row", int)
_WRAP_PROPERTY("data-model", Glib::RefPtr<DataModel>)
_WRAP_PROPERTY("forced-model", Glib::RefPtr<DataModel>)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]