00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGDAMM_PROVIDERINFO_H 00004 #define _LIBGDAMM_PROVIDERINFO_H 00005 00006 00007 #include <glibmm.h> 00008 00009 /* $Id: providerinfo.hg,v 1.4 2006/05/08 10:18:53 murrayc Exp $ */ 00010 // -*- C++ -*- // 00011 00012 /* providerinfo.h 00013 * 00014 * Copyright 2003 libgdamm Development Team 00015 * 00016 * This library is free software; you can redistribute it and/or 00017 * modify it under the terms of the GNU Library General Public 00018 * License as published by the Free Software Foundation; either 00019 * version 2 of the License, or (at your option) any later version. 00020 * 00021 * This library is distributed in the hope that it will be useful, 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00024 * Library General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU Library General Public 00027 * License along with this library; if not, write to the Free 00028 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00029 */ 00030 00031 #include <libgdamm/parameterlist.h> 00032 #include <glibmm/object.h> 00033 #include <libgda/gda-config.h> 00034 00035 00036 namespace Gnome 00037 { 00038 00039 namespace Gda 00040 { 00041 00042 //TODO: 00043 class ProviderInfo 00044 { 00045 public: 00046 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00047 typedef ProviderInfo CppObjectType; 00048 typedef GdaProviderInfo BaseObjectType; 00049 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00050 00051 ProviderInfo(); 00052 00053 // Use make_a_copy=true when getting it directly from a struct. 00054 explicit ProviderInfo(GdaProviderInfo* castitem, bool make_a_copy = false); 00055 00056 ProviderInfo(const ProviderInfo& src); 00057 ProviderInfo& operator=(const ProviderInfo& src); 00058 00059 ~ProviderInfo(); 00060 00061 GdaProviderInfo* gobj() { return gobject_; } 00062 const GdaProviderInfo* gobj() const { return gobject_; } 00063 00065 GdaProviderInfo* gobj_copy() const; 00066 00067 protected: 00068 GdaProviderInfo* gobject_; 00069 00070 private: 00071 00072 public: 00073 00074 Glib::ustring get_id() const; 00075 Glib::ustring get_location() const; 00076 Glib::ustring get_description() const; 00077 00078 Glib::RefPtr<ParameterList> get_gda_params(); 00079 Glib::RefPtr<const ParameterList> get_gda_params() const; 00080 00081 00082 }; 00083 00084 } // namespace Gda 00085 } // namespace Gnome 00086 00087 00088 namespace Glib 00089 { 00090 00096 Gnome::Gda::ProviderInfo wrap(GdaProviderInfo* object, bool take_copy = false); 00097 00098 } // namespace Glib 00099 00100 00101 #endif /* _LIBGDAMM_PROVIDERINFO_H */ 00102