// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _LIBGDAMM_PROVIDERINFO_H
#define _LIBGDAMM_PROVIDERINFO_H


#include <glibmm.h>

/* $Id: providerinfo.hg,v 1.4 2006/05/08 10:18:53 murrayc Exp $ */
// -*- C++ -*- //

/* providerinfo.h
 *
 * Copyright 2003 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/parameterlist.h>
#include <glibmm/object.h>
#include <libgda/gda-config.h>


namespace Gnome
{

namespace Gda
{

//TODO: 
class ProviderInfo
{
  public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
  typedef ProviderInfo CppObjectType;
  typedef GdaProviderInfo BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */

  ProviderInfo();

  // Use make_a_copy=true when getting it directly from a struct.
  explicit ProviderInfo(GdaProviderInfo* castitem, bool make_a_copy = false);

  ProviderInfo(const ProviderInfo& src);
  ProviderInfo& operator=(const ProviderInfo& src);

  ~ProviderInfo();

  GdaProviderInfo*       gobj()       { return gobject_; }
  const GdaProviderInfo* gobj() const { return gobject_; }

  ///Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
  GdaProviderInfo* gobj_copy() const;

protected:
  GdaProviderInfo* gobject_;

private:

public:

   Glib::ustring get_id() const;
    Glib::ustring get_location() const;
    Glib::ustring get_description() const;
   
  Glib::RefPtr<ParameterList> get_gda_params();
  Glib::RefPtr<const ParameterList> get_gda_params() const;


};

} // namespace Gda
} // namespace Gnome


namespace Glib
{

  /** A Glib::wrap() method for this object.
   * 
   * @param object The C instance.
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
   * @result A C++ instance that wraps this C instance.
   *
   * @relates Gnome::Gda::ProviderInfo
   */
Gnome::Gda::ProviderInfo wrap(GdaProviderInfo* object, bool take_copy = false);

} // namespace Glib


#endif /* _LIBGDAMM_PROVIDERINFO_H */

