2 * This file is part of gtkD.
4 * gtkD is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * gtkD is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with gtkD; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile = libgda-gda-config.html
27 * outFile = DataSourceInfo
28 * strct = GdaDataSourceInfo
31 * clss = DataSourceInfo
46 * - GdaConfigListenerFunc
55 module gda
.DataSourceInfo
;
61 import tango
.io
.Stdout
; // use the tango loging?
65 private import gdac
.gdatypes
;
67 private import gdac
.gda
;
70 private import glib
.ListG
;
74 private import tango
.text
.Util
;
76 private import std
.string
;
84 * The functions in this section allow applications an easy access to the libgda
85 * configuration, thus making them able to access the list of data sources
86 * configured in the system, for instance.
88 public class DataSourceInfo
91 /** the main Gtk struct */
92 protected GdaDataSourceInfo
* gdaDataSourceInfo
;
95 public GdaDataSourceInfo
* getDataSourceInfoStruct()
97 return gdaDataSourceInfo
;
101 /** the main Gtk struct as a void* */
102 protected void* getStruct()
104 return cast(void*)gdaDataSourceInfo
;
108 * Sets our main struct and passes it to the parent class
110 public this (GdaDataSourceInfo
* gdaDataSourceInfo
)
114 if ( gdaDataSourceInfo
is null )
119 Stdout("struct gdaDataSourceInfo is null on constructor").newline
;
123 printf("struct gdaDataSourceInfo is null on constructor");
130 assert(gdaDataSourceInfo
!is null, "struct gdaDataSourceInfo is null on constructor");
132 this.gdaDataSourceInfo
= gdaDataSourceInfo
;
136 this.gdaDataSourceInfo
= cast(GdaDataSourceInfo
*) glist
.data
;
138 char[] name() { return std
.string
.toString(this.gdaDataSourceInfo
.name
); }
139 char[] provider() { return std
.string
.toString(this.gdaDataSourceInfo
.provider
); }
140 char[] cncString() { return std
.string
.toString(this.gdaDataSourceInfo
.cncString
); }
141 char[] description() { return std
.string
.toString(this.gdaDataSourceInfo
.description
); }
142 char[] username() { return std
.string
.toString(this.gdaDataSourceInfo
.username
); }
143 char[] password() { return std
.string
.toString(this.gdaDataSourceInfo
.password
); }
182 public static GType
infoGetType()
184 // GType gda_data_source_info_get_type (void);
185 return gda_data_source_info_get_type();