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


#include <glibmm.h>

/* $Id: datasourceinfo.hg,v 1.3 2005/08/23 06:23:22 murrayc Exp $ */
// -*- C++ -*- //

/* datasourceinfo.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 <glibmm/object.h>


#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GdaDataSourceInfo GdaDataSourceInfo;
#endif //DOXYGEN_SHOULD_SKIP_THIS

namespace Gnome
{

namespace Gda
{

//TODO:
class DataSourceInfo
{
  public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
  typedef DataSourceInfo CppObjectType;
  typedef GdaDataSourceInfo BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */


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

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

  ~DataSourceInfo();

  GdaDataSourceInfo*       gobj()       { return gobject_; }
  const GdaDataSourceInfo* 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.
  GdaDataSourceInfo* gobj_copy() const;

protected:
  GdaDataSourceInfo* gobject_;

private:

  
public:

  DataSourceInfo();

  operator bool() const;

  
   Glib::ustring get_name() const;
    Glib::ustring get_provider() const;
    Glib::ustring get_cnc_string() const;
    Glib::ustring get_description() const;
    Glib::ustring get_username() const;
    Glib::ustring get_password() const;
 
  void set_name(const Glib::ustring& value);
  void set_provider(const Glib::ustring& value);
  void set_cnc_string(const Glib::ustring& value);
  void set_description(const Glib::ustring& value);
  void set_username(const Glib::ustring& value);
  void set_password(const Glib::ustring& value);


};

} // 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::DataSourceInfo
   */
Gnome::Gda::DataSourceInfo wrap(GdaDataSourceInfo* object, bool take_copy = false);

} // namespace Glib


#endif /* _LIBGDAMM_DATASOURCEINFO_H */

