00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGDAMM_DATASOURCEINFO_H 00004 #define _LIBGDAMM_DATASOURCEINFO_H 00005 00006 00007 #include <glibmm.h> 00008 00009 /* $Id: datasourceinfo.hg,v 1.3 2005/08/23 06:23:22 murrayc Exp $ */ 00010 // -*- C++ -*- // 00011 00012 /* datasourceinfo.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 <glibmm/object.h> 00032 00033 00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00035 typedef struct _GdaDataSourceInfo GdaDataSourceInfo; 00036 #endif //DOXYGEN_SHOULD_SKIP_THIS 00037 00038 namespace Gnome 00039 { 00040 00041 namespace Gda 00042 { 00043 00044 //TODO: 00045 class DataSourceInfo 00046 { 00047 public: 00048 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00049 typedef DataSourceInfo CppObjectType; 00050 typedef GdaDataSourceInfo BaseObjectType; 00051 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00052 00053 00054 // Use make_a_copy=true when getting it directly from a struct. 00055 explicit DataSourceInfo(GdaDataSourceInfo* castitem, bool make_a_copy = false); 00056 00057 DataSourceInfo(const DataSourceInfo& src); 00058 DataSourceInfo& operator=(const DataSourceInfo& src); 00059 00060 ~DataSourceInfo(); 00061 00062 GdaDataSourceInfo* gobj() { return gobject_; } 00063 const GdaDataSourceInfo* gobj() const { return gobject_; } 00064 00066 GdaDataSourceInfo* gobj_copy() const; 00067 00068 protected: 00069 GdaDataSourceInfo* gobject_; 00070 00071 private: 00072 00073 00074 public: 00075 00076 DataSourceInfo(); 00077 00078 operator bool() const; 00079 00080 00081 Glib::ustring get_name() const; 00082 Glib::ustring get_provider() const; 00083 Glib::ustring get_cnc_string() const; 00084 Glib::ustring get_description() const; 00085 Glib::ustring get_username() const; 00086 Glib::ustring get_password() const; 00087 00088 void set_name(const Glib::ustring& value); 00089 void set_provider(const Glib::ustring& value); 00090 void set_cnc_string(const Glib::ustring& value); 00091 void set_description(const Glib::ustring& value); 00092 void set_username(const Glib::ustring& value); 00093 void set_password(const Glib::ustring& value); 00094 00095 00096 }; 00097 00098 } // namespace Gda 00099 } // namespace Gnome 00100 00101 00102 namespace Glib 00103 { 00104 00110 Gnome::Gda::DataSourceInfo wrap(GdaDataSourceInfo* object, bool take_copy = false); 00111 00112 } // namespace Glib 00113 00114 00115 #endif /* _LIBGDAMM_DATASOURCEINFO_H */ 00116