// Generated by gtkmmproc -- DO NOT MODIFY!


#include <libgdamm/dictdatabase.h>
#include <libgdamm/private/dictdatabase_p.h>

/* $Id: dictdatabase.ccg,v 1.3 2006/11/08 00:52:25 murrayc Exp $ */
// -*- C++ -*- // this is for the .ccg, I realize gensig puts one in

/* dictdatabase.cc
 * 
 * Copyright 2006 libgdamm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <libgdamm/dict.h>
#include <libgda/gda-dict-database.h>
//#include <libgdamm/connection.h>
#include <libgda/gda-enum-types.h>

namespace Gnome
{


} /* namespace Gnome */


namespace
{


static void DictDatabase_signal_table_added_callback(GdaDictDatabase* self, GdaDictTable* p0,void* data)
{
  using namespace Gnome::Gda;
  typedef sigc::slot< void,const Glib::RefPtr<DictTable>& > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        (*static_cast<SlotType*>(slot))(Glib::wrap(p0)
);
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }
}

static const Glib::SignalProxyInfo DictDatabase_signal_table_added_info =
{
  "table_added",
  (GCallback) &DictDatabase_signal_table_added_callback,
  (GCallback) &DictDatabase_signal_table_added_callback
};


static void DictDatabase_signal_table_removed_callback(GdaDictDatabase* self, GdaDictTable* p0,void* data)
{
  using namespace Gnome::Gda;
  typedef sigc::slot< void,const Glib::RefPtr<DictTable>& > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        (*static_cast<SlotType*>(slot))(Glib::wrap(p0)
);
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }
}

static const Glib::SignalProxyInfo DictDatabase_signal_table_removed_info =
{
  "table_removed",
  (GCallback) &DictDatabase_signal_table_removed_callback,
  (GCallback) &DictDatabase_signal_table_removed_callback
};


static void DictDatabase_signal_table_updated_callback(GdaDictDatabase* self, GdaDictTable* p0,void* data)
{
  using namespace Gnome::Gda;
  typedef sigc::slot< void,const Glib::RefPtr<DictTable>& > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        (*static_cast<SlotType*>(slot))(Glib::wrap(p0)
);
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }
}

static const Glib::SignalProxyInfo DictDatabase_signal_table_updated_info =
{
  "table_updated",
  (GCallback) &DictDatabase_signal_table_updated_callback,
  (GCallback) &DictDatabase_signal_table_updated_callback
};


static void DictDatabase_signal_field_added_callback(GdaDictDatabase* self, GdaDictField* p0,void* data)
{
  using namespace Gnome::Gda;
  typedef sigc::slot< void,const Glib::RefPtr<DictField>& > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        (*static_cast<SlotType*>(slot))(Glib::wrap(p0)
);
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }
}

static const Glib::SignalProxyInfo DictDatabase_signal_field_added_info =
{
  "field_added",
  (GCallback) &DictDatabase_signal_field_added_callback,
  (GCallback) &DictDatabase_signal_field_added_callback
};


static void DictDatabase_signal_field_removed_callback(GdaDictDatabase* self, GdaDictField* p0,void* data)
{
  using namespace Gnome::Gda;
  typedef sigc::slot< void,const Glib::RefPtr<DictField>& > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        (*static_cast<SlotType*>(slot))(Glib::wrap(p0)
);
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }
}

static const Glib::SignalProxyInfo DictDatabase_signal_field_removed_info =
{
  "field_removed",
  (GCallback) &DictDatabase_signal_field_removed_callback,
  (GCallback) &DictDatabase_signal_field_removed_callback
};


static void DictDatabase_signal_field_updated_callback(GdaDictDatabase* self, GdaDictField* p0,void* data)
{
  using namespace Gnome::Gda;
  typedef sigc::slot< void,const Glib::RefPtr<DictField>& > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        (*static_cast<SlotType*>(slot))(Glib::wrap(p0)
);
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }
}

static const Glib::SignalProxyInfo DictDatabase_signal_field_updated_info =
{
  "field_updated",
  (GCallback) &DictDatabase_signal_field_updated_callback,
  (GCallback) &DictDatabase_signal_field_updated_callback
};


static void DictDatabase_signal_constraint_added_callback(GdaDictDatabase* self, GdaDictConstraint* p0,void* data)
{
  using namespace Gnome::Gda;
  typedef sigc::slot< void,const Glib::RefPtr<DictConstraint>& > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        (*static_cast<SlotType*>(slot))(Glib::wrap(p0)
);
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }
}

static const Glib::SignalProxyInfo DictDatabase_signal_constraint_added_info =
{
  "constraint_added",
  (GCallback) &DictDatabase_signal_constraint_added_callback,
  (GCallback) &DictDatabase_signal_constraint_added_callback
};


static void DictDatabase_signal_constraint_removed_callback(GdaDictDatabase* self, GdaDictConstraint* p0,void* data)
{
  using namespace Gnome::Gda;
  typedef sigc::slot< void,const Glib::RefPtr<DictConstraint>& > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        (*static_cast<SlotType*>(slot))(Glib::wrap(p0)
);
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }
}

static const Glib::SignalProxyInfo DictDatabase_signal_constraint_removed_info =
{
  "constraint_removed",
  (GCallback) &DictDatabase_signal_constraint_removed_callback,
  (GCallback) &DictDatabase_signal_constraint_removed_callback
};


static void DictDatabase_signal_constraint_updated_callback(GdaDictDatabase* self, GdaDictConstraint* p0,void* data)
{
  using namespace Gnome::Gda;
  typedef sigc::slot< void,const Glib::RefPtr<DictConstraint>& > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        (*static_cast<SlotType*>(slot))(Glib::wrap(p0)
);
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }
}

static const Glib::SignalProxyInfo DictDatabase_signal_constraint_updated_info =
{
  "constraint_updated",
  (GCallback) &DictDatabase_signal_constraint_updated_callback,
  (GCallback) &DictDatabase_signal_constraint_updated_callback
};


static const Glib::SignalProxyInfo DictDatabase_signal_data_update_started_info =
{
  "data_update_started",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


static void DictDatabase_signal_update_progress_callback(GdaDictDatabase* self, const gchar* p0,guint p1,guint p2,void* data)
{
  using namespace Gnome::Gda;
  typedef sigc::slot< void,const Glib::ustring&,guint,guint > SlotType;

  // Do not try to call a signal on a disassociated wrapper.
  if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
  {
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    try
    {
    #endif //GLIBMM_EXCEPTIONS_ENABLED
      if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
        (*static_cast<SlotType*>(slot))(Glib::convert_const_gchar_ptr_to_ustring(p0)
, p1, p2);
    #ifdef GLIBMM_EXCEPTIONS_ENABLED
    }
    catch(...)
    {
      Glib::exception_handlers_invoke();
    }
    #endif //GLIBMM_EXCEPTIONS_ENABLED
  }
}

static const Glib::SignalProxyInfo DictDatabase_signal_update_progress_info =
{
  "update_progress",
  (GCallback) &DictDatabase_signal_update_progress_callback,
  (GCallback) &DictDatabase_signal_update_progress_callback
};


static const Glib::SignalProxyInfo DictDatabase_signal_data_update_finished_info =
{
  "data_update_finished",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


} // anonymous namespace


namespace Glib
{

Glib::RefPtr<Gnome::Gda::DictDatabase> wrap(GdaDictDatabase* object, bool take_copy)
{
  return Glib::RefPtr<Gnome::Gda::DictDatabase>( dynamic_cast<Gnome::Gda::DictDatabase*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
  //We use dynamic_cast<> in case of multiple inheritance.
}

} /* namespace Glib */


namespace Gnome
{

namespace Gda
{


/* The *_Class implementation: */

const Glib::Class& DictDatabase_Class::init()
{
  if(!gtype_) // create the GType if necessary
  {
    // Glib::Class has to know the class init function to clone custom types.
    class_init_func_ = &DictDatabase_Class::class_init_function;

    // This is actually just optimized away, apparently with no harm.
    // Make sure that the parent type has been created.
    //CppClassParent::CppObjectType::get_type();

    // Create the wrapper type, with the same class/instance size as the base type.
    register_derived_type(gda_dict_database_get_type());

    // Add derived versions of interfaces, if the C type implements any interfaces:
  XmlStorage::add_interface(get_type());

  }

  return *this;
}

void DictDatabase_Class::class_init_function(void* g_class, void* class_data)
{
  BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
  CppClassParent::class_init_function(klass, class_data);

#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED

#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
  klass->table_added = &table_added_callback;
  klass->table_removed = &table_removed_callback;
  klass->table_updated = &table_updated_callback;
  klass->field_added = &field_added_callback;
  klass->field_removed = &field_removed_callback;
  klass->field_updated = &field_updated_callback;
  klass->constraint_added = &constraint_added_callback;
  klass->constraint_removed = &constraint_removed_callback;
  klass->constraint_updated = &constraint_updated_callback;
  klass->data_update_started = &data_update_started_callback;
  klass->update_progress = &update_progress_callback;
  klass->data_update_finished = &data_update_finished_callback;
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}

#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED

#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
void DictDatabase_Class::table_added_callback(GdaDictDatabase* self, GdaDictTable* p0)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_table_added(Glib::wrap(p0)
);
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->table_added)
    (*base->table_added)(self, p0);
}
void DictDatabase_Class::table_removed_callback(GdaDictDatabase* self, GdaDictTable* p0)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_table_removed(Glib::wrap(p0)
);
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->table_removed)
    (*base->table_removed)(self, p0);
}
void DictDatabase_Class::table_updated_callback(GdaDictDatabase* self, GdaDictTable* p0)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_table_updated(Glib::wrap(p0)
);
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->table_updated)
    (*base->table_updated)(self, p0);
}
void DictDatabase_Class::field_added_callback(GdaDictDatabase* self, GdaDictField* p0)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_field_added(Glib::wrap(p0)
);
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->field_added)
    (*base->field_added)(self, p0);
}
void DictDatabase_Class::field_removed_callback(GdaDictDatabase* self, GdaDictField* p0)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_field_removed(Glib::wrap(p0)
);
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->field_removed)
    (*base->field_removed)(self, p0);
}
void DictDatabase_Class::field_updated_callback(GdaDictDatabase* self, GdaDictField* p0)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_field_updated(Glib::wrap(p0)
);
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->field_updated)
    (*base->field_updated)(self, p0);
}
void DictDatabase_Class::constraint_added_callback(GdaDictDatabase* self, GdaDictConstraint* p0)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_constraint_added(Glib::wrap(p0)
);
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->constraint_added)
    (*base->constraint_added)(self, p0);
}
void DictDatabase_Class::constraint_removed_callback(GdaDictDatabase* self, GdaDictConstraint* p0)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_constraint_removed(Glib::wrap(p0)
);
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->constraint_removed)
    (*base->constraint_removed)(self, p0);
}
void DictDatabase_Class::constraint_updated_callback(GdaDictDatabase* self, GdaDictConstraint* p0)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_constraint_updated(Glib::wrap(p0)
);
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->constraint_updated)
    (*base->constraint_updated)(self, p0);
}
void DictDatabase_Class::data_update_started_callback(GdaDictDatabase* self)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_data_update_started();
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->data_update_started)
    (*base->data_update_started)(self);
}
void DictDatabase_Class::update_progress_callback(GdaDictDatabase* self, const gchar* p0, guint p1, guint p2)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_update_progress(Glib::convert_const_gchar_ptr_to_ustring(p0)
, p1, p2);
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->update_progress)
    (*base->update_progress)(self, p0, p1, p2);
}
void DictDatabase_Class::data_update_finished_callback(GdaDictDatabase* self)
{
  Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
      Glib::ObjectBase::_get_current_wrapper((GObject*)self));

  // Non-gtkmmproc-generated custom classes implicitly call the default
  // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
  // generated classes can use this optimisation, which avoids the unnecessary
  // parameter conversions if there is no possibility of the virtual function
  // being overridden:
  if(obj_base && obj_base->is_derived_())
  {
    CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
    if(obj) // This can be NULL during destruction.
    {
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      try // Trap C++ exceptions which would normally be lost because this is a C callback.
      {
      #endif //GLIBMM_EXCEPTIONS_ENABLED
        // Call the virtual member method, which derived classes might override.
        obj->on_data_update_finished();
        return;
      #ifdef GLIBMM_EXCEPTIONS_ENABLED
      }
      catch(...)
      {
        Glib::exception_handlers_invoke();
      }
      #endif //GLIBMM_EXCEPTIONS_ENABLED
    }
  }
  
  BaseClassType *const base = static_cast<BaseClassType*>(
        g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
    );

  // Call the original underlying C function:
  if(base && base->data_update_finished)
    (*base->data_update_finished)(self);
}
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED


Glib::ObjectBase* DictDatabase_Class::wrap_new(GObject* object)
{
  return new DictDatabase((GdaDictDatabase*)object);
}


/* The implementation: */

GdaDictDatabase* DictDatabase::gobj_copy()
{
  reference();
  return gobj();
}

DictDatabase::DictDatabase(const Glib::ConstructParams& construct_params)
:
  Gda::Object(construct_params)
{

}

DictDatabase::DictDatabase(GdaDictDatabase* castitem)
:
  Gda::Object((GdaObject*)(castitem))
{}

DictDatabase::~DictDatabase()
{}


DictDatabase::CppClassType DictDatabase::dictdatabase_class_; // initialize static member

GType DictDatabase::get_type()
{
  return dictdatabase_class_.init().get_type();
}

GType DictDatabase::get_base_type()
{
  return gda_dict_database_get_type();
}


DictDatabase::DictDatabase()
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(0),
  Gda::Object(Glib::ConstructParams(dictdatabase_class_.init()))
{
  

}

Glib::RefPtr<DictDatabase> DictDatabase::create()
{
  return Glib::RefPtr<DictDatabase>( new DictDatabase() );
}
Glib::RefPtr<Dict> DictDatabase::get_dict()
{

  Glib::RefPtr<Dict> retvalue = Glib::wrap(gda_dict_database_get_dict(gobj()));
  if(retvalue)
    retvalue->reference(); //The function does not do a ref for us.
  return retvalue;

}

Glib::RefPtr<const Dict> DictDatabase::get_dict() const
{
  return const_cast<DictDatabase*>(this)->get_dict();
}

#ifdef GLIBMM_EXCEPTIONS_ENABLED
bool DictDatabase::update_dbms_data(GType limit_to_type, const Glib::ustring& limit_obj_name)
#else
bool DictDatabase::update_dbms_data(GType limit_to_type, const Glib::ustring& limit_obj_name, std::auto_ptr<Glib::Error>& error)
#endif //GLIBMM_EXCEPTIONS_ENABLED
{
  GError* gerror = 0;
  bool retvalue = gda_dict_database_update_dbms_data(gobj(), limit_to_type, limit_obj_name.c_str(), &(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;

}

void DictDatabase::stop_update_dbms_data() const
{
gda_dict_database_stop_update_dbms_data(const_cast<GdaDictDatabase*>(gobj())); 
}

Glib::SListHandle<Glib::RefPtr<DictTable> > DictDatabase::get_tables()
{
  return Glib::SListHandle<Glib::RefPtr<DictTable> >(gda_dict_database_get_tables(gobj()), Glib::OWNERSHIP_SHALLOW);
}

Glib::SListHandle<Glib::RefPtr<const DictTable> > DictDatabase::get_tables() const
{
  return Glib::SListHandle<Glib::RefPtr<const DictTable> >(gda_dict_database_get_tables(const_cast<GdaDictDatabase*>(gobj())), Glib::OWNERSHIP_SHALLOW);
}

Glib::RefPtr<DictTable> DictDatabase::get_table_by_name(const Glib::ustring& name)
{

  Glib::RefPtr<DictTable> retvalue = Glib::wrap(gda_dict_database_get_table_by_name(gobj(), name.c_str()));
  if(retvalue)
    retvalue->reference(); //The function does not do a ref for us.
  return retvalue;

}

Glib::RefPtr<const DictTable> DictDatabase::get_table_by_name(const Glib::ustring& name) const
{
  return const_cast<DictDatabase*>(this)->get_table_by_name(name);
}

Glib::RefPtr<DictTable> DictDatabase::get_table_by_xml_id(const Glib::ustring& xml_id)
{

  Glib::RefPtr<DictTable> retvalue = Glib::wrap(gda_dict_database_get_table_by_xml_id(gobj(), xml_id.c_str()));
  if(retvalue)
    retvalue->reference(); //The function does not do a ref for us.
  return retvalue;

}

Glib::RefPtr<const DictTable> DictDatabase::get_table_by_xml_id(const Glib::ustring& xml_id) const
{
  return const_cast<DictDatabase*>(this)->get_table_by_xml_id(xml_id);
}

Glib::RefPtr<DictField> DictDatabase::get_field_by_name(const Glib::ustring& fullname)
{

  Glib::RefPtr<DictField> retvalue = Glib::wrap(gda_dict_database_get_field_by_name(gobj(), fullname.c_str()));
  if(retvalue)
    retvalue->reference(); //The function does not do a ref for us.
  return retvalue;

}

Glib::RefPtr<const DictField> DictDatabase::get_field_by_name(const Glib::ustring& fullname) const
{

  Glib::RefPtr<const DictField> retvalue = Glib::wrap(gda_dict_database_get_field_by_name(const_cast<GdaDictDatabase*>(gobj()), fullname.c_str()));
  if(retvalue)
    retvalue->reference(); //The function does not do a ref for us.
  return retvalue;

}

Glib::RefPtr<DictField> DictDatabase::get_field_by_xml_id(const Glib::ustring& xml_id)
{
  return const_cast<DictDatabase*>(this)->get_field_by_xml_id(xml_id);
}

Glib::RefPtr<const DictField> DictDatabase::get_field_by_xml_id(const Glib::ustring& xml_id) const
{
  return const_cast<DictDatabase*>(this)->get_field_by_xml_id(xml_id);
}

void DictDatabase::add_constraint(const Glib::RefPtr<DictConstraint>& cstr)
{
gda_dict_database_add_constraint(gobj(), Glib::unwrap(cstr)); 
}

Glib::SListHandle<Glib::RefPtr<DictConstraint> > DictDatabase::get_all_constraints()
{
  return Glib::SListHandle<Glib::RefPtr<DictConstraint> >(gda_dict_database_get_all_constraints(gobj()), Glib::OWNERSHIP_SHALLOW);
}

Glib::SListHandle<Glib::RefPtr<const DictConstraint> > DictDatabase::get_all_constraints() const
{
  return Glib::SListHandle<Glib::RefPtr<const DictConstraint> >(gda_dict_database_get_all_constraints(const_cast<GdaDictDatabase*>(gobj())), Glib::OWNERSHIP_SHALLOW);
}

Glib::SListHandle<Glib::RefPtr<DictConstraint> > DictDatabase::get_all_fk_constraints()
{
  return Glib::SListHandle<Glib::RefPtr<DictConstraint> >(gda_dict_database_get_all_fk_constraints(gobj()), Glib::OWNERSHIP_SHALLOW);
}

Glib::SListHandle<Glib::RefPtr<const DictConstraint> > DictDatabase::get_all_fk_constraints() const
{
  return Glib::SListHandle<Glib::RefPtr<const DictConstraint> >(gda_dict_database_get_all_fk_constraints(const_cast<GdaDictDatabase*>(gobj())), Glib::OWNERSHIP_SHALLOW);
}

Glib::SListHandle<Glib::RefPtr<DictConstraint> > DictDatabase::get_table_constraints(const Glib::RefPtr<DictTable>& table)
{
  return Glib::SListHandle<Glib::RefPtr<DictConstraint> >(gda_dict_database_get_table_constraints(gobj(), Glib::unwrap(table)), Glib::OWNERSHIP_SHALLOW);
}

Glib::SListHandle<Glib::RefPtr<const DictConstraint> > DictDatabase::get_table_constraints(const Glib::RefPtr<DictTable>& table) const
{
  return Glib::SListHandle<Glib::RefPtr<const DictConstraint> >(gda_dict_database_get_table_constraints(const_cast<GdaDictDatabase*>(gobj()), Glib::unwrap(table)), Glib::OWNERSHIP_SHALLOW);
}

Glib::SListHandle<Glib::RefPtr<DictConstraint> > DictDatabase::get_tables_fk_constraints(const Glib::RefPtr<DictTable>& table1, const Glib::RefPtr<DictTable>& table2, bool table1_has_fk)
{
  return Glib::SListHandle<Glib::RefPtr<DictConstraint> >(gda_dict_database_get_tables_fk_constraints(gobj(), Glib::unwrap(table1), Glib::unwrap(table2), static_cast<int>(table1_has_fk)), Glib::OWNERSHIP_SHALLOW);
}

Glib::SListHandle<Glib::RefPtr<const DictConstraint> > DictDatabase::get_tables_fk_constraints(const Glib::RefPtr<DictTable>& table1, const Glib::RefPtr<DictTable>& table2, bool table1_has_fk) const
{
  return Glib::SListHandle<Glib::RefPtr<const DictConstraint> >(gda_dict_database_get_tables_fk_constraints(const_cast<GdaDictDatabase*>(gobj()), Glib::unwrap(table1), Glib::unwrap(table2), static_cast<int>(table1_has_fk)), Glib::OWNERSHIP_SHALLOW);
}


Glib::SignalProxy1< void,const Glib::RefPtr<DictTable>& > DictDatabase::signal_table_added()
{
  return Glib::SignalProxy1< void,const Glib::RefPtr<DictTable>& >(this, &DictDatabase_signal_table_added_info);
}


Glib::SignalProxy1< void,const Glib::RefPtr<DictTable>& > DictDatabase::signal_table_removed()
{
  return Glib::SignalProxy1< void,const Glib::RefPtr<DictTable>& >(this, &DictDatabase_signal_table_removed_info);
}


Glib::SignalProxy1< void,const Glib::RefPtr<DictTable>& > DictDatabase::signal_table_updated()
{
  return Glib::SignalProxy1< void,const Glib::RefPtr<DictTable>& >(this, &DictDatabase_signal_table_updated_info);
}


Glib::SignalProxy1< void,const Glib::RefPtr<DictField>& > DictDatabase::signal_field_added()
{
  return Glib::SignalProxy1< void,const Glib::RefPtr<DictField>& >(this, &DictDatabase_signal_field_added_info);
}


Glib::SignalProxy1< void,const Glib::RefPtr<DictField>& > DictDatabase::signal_field_removed()
{
  return Glib::SignalProxy1< void,const Glib::RefPtr<DictField>& >(this, &DictDatabase_signal_field_removed_info);
}


Glib::SignalProxy1< void,const Glib::RefPtr<DictField>& > DictDatabase::signal_field_updated()
{
  return Glib::SignalProxy1< void,const Glib::RefPtr<DictField>& >(this, &DictDatabase_signal_field_updated_info);
}


Glib::SignalProxy1< void,const Glib::RefPtr<DictConstraint>& > DictDatabase::signal_constraint_added()
{
  return Glib::SignalProxy1< void,const Glib::RefPtr<DictConstraint>& >(this, &DictDatabase_signal_constraint_added_info);
}


Glib::SignalProxy1< void,const Glib::RefPtr<DictConstraint>& > DictDatabase::signal_constraint_removed()
{
  return Glib::SignalProxy1< void,const Glib::RefPtr<DictConstraint>& >(this, &DictDatabase_signal_constraint_removed_info);
}


Glib::SignalProxy1< void,const Glib::RefPtr<DictConstraint>& > DictDatabase::signal_constraint_updated()
{
  return Glib::SignalProxy1< void,const Glib::RefPtr<DictConstraint>& >(this, &DictDatabase_signal_constraint_updated_info);
}


Glib::SignalProxy0< void > DictDatabase::signal_data_update_started()
{
  return Glib::SignalProxy0< void >(this, &DictDatabase_signal_data_update_started_info);
}


Glib::SignalProxy3< void,const Glib::ustring&,guint,guint > DictDatabase::signal_update_progress()
{
  return Glib::SignalProxy3< void,const Glib::ustring&,guint,guint >(this, &DictDatabase_signal_update_progress_info);
}


Glib::SignalProxy0< void > DictDatabase::signal_data_update_finished()
{
  return Glib::SignalProxy0< void >(this, &DictDatabase_signal_data_update_finished_info);
}


#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
void Gnome::Gda::DictDatabase::on_table_added(const Glib::RefPtr<DictTable>& table)
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->table_added)
    (*base->table_added)(gobj(),Glib::unwrap(table));
}
void Gnome::Gda::DictDatabase::on_table_removed(const Glib::RefPtr<DictTable>& table)
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->table_removed)
    (*base->table_removed)(gobj(),Glib::unwrap(table));
}
void Gnome::Gda::DictDatabase::on_table_updated(const Glib::RefPtr<DictTable>& table)
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->table_updated)
    (*base->table_updated)(gobj(),Glib::unwrap(table));
}
void Gnome::Gda::DictDatabase::on_field_added(const Glib::RefPtr<DictField>& field)
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->field_added)
    (*base->field_added)(gobj(),Glib::unwrap(field));
}
void Gnome::Gda::DictDatabase::on_field_removed(const Glib::RefPtr<DictField>& field)
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->field_removed)
    (*base->field_removed)(gobj(),Glib::unwrap(field));
}
void Gnome::Gda::DictDatabase::on_field_updated(const Glib::RefPtr<DictField>& field)
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->field_updated)
    (*base->field_updated)(gobj(),Glib::unwrap(field));
}
void Gnome::Gda::DictDatabase::on_constraint_added(const Glib::RefPtr<DictConstraint>& constraint)
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->constraint_added)
    (*base->constraint_added)(gobj(),Glib::unwrap(constraint));
}
void Gnome::Gda::DictDatabase::on_constraint_removed(const Glib::RefPtr<DictConstraint>& constraint)
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->constraint_removed)
    (*base->constraint_removed)(gobj(),Glib::unwrap(constraint));
}
void Gnome::Gda::DictDatabase::on_constraint_updated(const Glib::RefPtr<DictConstraint>& constraint)
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->constraint_updated)
    (*base->constraint_updated)(gobj(),Glib::unwrap(constraint));
}
void Gnome::Gda::DictDatabase::on_data_update_started()
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->data_update_started)
    (*base->data_update_started)(gobj());
}
void Gnome::Gda::DictDatabase::on_update_progress(const Glib::ustring& msg, guint now, guint total)
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->update_progress)
    (*base->update_progress)(gobj(),msg.c_str(),now,total);
}
void Gnome::Gda::DictDatabase::on_data_update_finished()
{
  BaseClassType *const base = static_cast<BaseClassType*>(
      g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
  );

  if(base && base->data_update_finished)
    (*base->data_update_finished)(gobj());
}
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED

#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED


} // namespace Gda

} // namespace Gnome


