gnomemm r1818 - in libgdamm/trunk: . libgda/src



Author: jhs
Date: Sun Nov 30 17:43:44 2008
New Revision: 1818
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1818&view=rev

Log:
2008-11-30  Johannes Schmid  <jschmid openismus com>

	* libgda/src/column.hg:
	Make get_default_value() const
	* libgda/src/connection.ccg:
	* libgda/src/connection.hg:
	Added wrapper for update_meta_store(). (It omits the optional GdaMetaStore
	because I think you will most likely never need it)

Modified:
   libgdamm/trunk/ChangeLog
   libgdamm/trunk/libgda/src/column.hg
   libgdamm/trunk/libgda/src/connection.ccg
   libgdamm/trunk/libgda/src/connection.hg

Modified: libgdamm/trunk/libgda/src/column.hg
==============================================================================
--- libgdamm/trunk/libgda/src/column.hg	(original)
+++ libgdamm/trunk/libgda/src/column.hg	Sun Nov 30 17:43:44 2008
@@ -80,7 +80,7 @@
   _WRAP_METHOD(gint get_position() const, gda_column_get_position)
   _WRAP_METHOD(void set_position(gint position), gda_column_set_position)
 
-  _WRAP_METHOD(Value get_default_value(), gda_column_get_default_value)
+  _WRAP_METHOD(Value get_default_value() const, gda_column_get_default_value)
   
   _WRAP_METHOD(void set_default_value(const Value& default_value), gda_column_set_default_value)
 

Modified: libgdamm/trunk/libgda/src/connection.ccg
==============================================================================
--- libgdamm/trunk/libgda/src/connection.ccg	(original)
+++ libgdamm/trunk/libgda/src/connection.ccg	Sun Nov 30 17:43:44 2008
@@ -198,6 +198,25 @@
   return statement_execute_select (stmt, set);
 }
 
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
+bool Connection::update_meta_store()
+#else
+bool Connection::update_meta_store(std::auto_ptr<Glib::Error>& err)
+#endif
+{
+  GError* gerror = 0;
+  bool retvalue = gda_connection_update_meta_store(gobj(), &(gerror));
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
+  if(gerror)
+    ::Glib::Error::throw_exception(gerror);
+#else
+  if(gerror)
+    error = ::Glib::Error::throw_exception(gerror);
+#endif //GLIBMM_EXCEPTIONS_ENABLED
+  
+  return retvalue;  
+}
+
 } //namespace Gda
 
 } //namespace Gnome

Modified: libgdamm/trunk/libgda/src/connection.hg
==============================================================================
--- libgdamm/trunk/libgda/src/connection.hg	(original)
+++ libgdamm/trunk/libgda/src/connection.hg	Sun Nov 30 17:43:44 2008
@@ -173,8 +173,12 @@
   _WRAP_METHOD(Glib::RefPtr<SqlParser> create_parser(), gda_connection_create_parser)
 
   _WRAP_METHOD(Glib::ustring get_provider_name() const, gda_connection_get_provider_name)
-  _IGNORE(gda_connection_update_meta_store)
-  //_WRAP_METHOD(bool update_meta_store (MetaContext* context), gda_connection_update_meta_store, errthrow)
+  _WRAP_METHOD_DOCS_ONLY(gda_connection_update_meta_store)
+#ifdef GLIBMM_EXCEPTIONS_ENABLED
+  bool update_meta_store();
+#else
+  bool update_meta_store(std::auto_ptr<Glib::Error>& err);
+#endif
   
   _WRAP_METHOD(bool statement_prepare(const Glib::RefPtr<Statement>& stmt), gda_connection_statement_prepare, errthrow)
 



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