// Generated by gtkmmproc -- DO NOT MODIFY!

//Allow us to use g_settings_backend_get_type.
//TODO: Find out if we should be able to implement backends outside of gio.
//And if not, add an option to _CLASS_INTERFACE to avoid using it.
#define G_SETTINGS_ENABLE_BACKEND 1
#include <gio/gsettingsbackend.h>
#include <gio/gio.h>
 

#include <giomm/settingsbackend.h>
#include <giomm/private/settingsbackend_p.h>

// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-

/* Copyright (C) 2007 The giomm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

namespace Gio
{

} //namespace Gio

namespace
{
} // anonymous namespace


namespace Glib
{

Glib::RefPtr<Gio::SettingsBackend> wrap(GSettingsBackend* object, bool take_copy)
{
  return Glib::RefPtr<Gio::SettingsBackend>( dynamic_cast<Gio::SettingsBackend*> (Glib::wrap_auto_interface<Gio::SettingsBackend> ((GObject*)(object), take_copy)) );
  //We use dynamic_cast<> in case of multiple inheritance.
}

} // namespace Glib


namespace Gio
{


/* The *_Class implementation: */

const Glib::Interface_Class& SettingsBackend_Class::init()
{
  if(!gtype_) // create the GType if necessary
  {
    // Glib::Interface_Class has to know the interface init function
    // in order to add interfaces to implementing types.
    class_init_func_ = &SettingsBackend_Class::iface_init_function;

    // We can not derive from another interface, and it is not necessary anyway.
    gtype_ = g_settings_backend_get_type();
  }

  return *this;
}

void SettingsBackend_Class::iface_init_function(void* g_iface, void*)
{
  BaseClassType *const klass = static_cast<BaseClassType*>(g_iface);

  //This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect.
  //This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc
  g_assert(klass != 0); 


}


Glib::ObjectBase* SettingsBackend_Class::wrap_new(GObject* object)
{
  return new SettingsBackend((GSettingsBackend*)(object));
}


/* The implementation: */

SettingsBackend::SettingsBackend()
:
  Glib::Interface(settingsbackend_class_.init())
{}

SettingsBackend::SettingsBackend(GSettingsBackend* castitem)
:
  Glib::Interface((GObject*)(castitem))
{}

SettingsBackend::SettingsBackend(const Glib::Interface_Class& interface_class)
: Glib::Interface(interface_class)
{
}

SettingsBackend::~SettingsBackend()
{}

// static
void SettingsBackend::add_interface(GType gtype_implementer)
{
  settingsbackend_class_.init().add_interface(gtype_implementer);
}

SettingsBackend::CppClassType SettingsBackend::settingsbackend_class_; // initialize static member

GType SettingsBackend::get_type()
{
  return settingsbackend_class_.init().get_type();
}


GType SettingsBackend::get_base_type()
{
  return g_settings_backend_get_type();
}


void SettingsBackend::backend_changed(const Glib::ustring& key, gpointer origin_tag)
{
g_settings_backend_changed(gobj(), key.c_str(), origin_tag); 
}

void SettingsBackend::path_changed(const Glib::ustring& path, gpointer origin_tag)
{
g_settings_backend_path_changed(gobj(), path.c_str(), origin_tag); 
}

void SettingsBackend::path_writable_changed(const Glib::ustring& path)
{
g_settings_backend_path_writable_changed(gobj(), path.c_str()); 
}

void SettingsBackend::writable_changed(const Glib::ustring& key)
{
g_settings_backend_writable_changed(gobj(), key.c_str()); 
}

void SettingsBackend::changed_tree(GTree * tree, gpointer origin_tag)
{
g_settings_backend_changed_tree(gobj(), tree, origin_tag); 
}


} // namespace Gio


