1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19  
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 /*
25  * Conversion parameters:
26  * inFile  = 
27  * outPack = gda
28  * outFile = DataSourceInfo
29  * strct   = GdaDataSourceInfo
30  * realStrct=
31  * ctorStrct=
32  * clss    = DataSourceInfo
33  * interf  = 
34  * class Code: Yes
35  * interface Code: No
36  * template for:
37  * extend  = 
38  * implements:
39  * prefixes:
40  * 	- gda_data_source_
41  * omit structs:
42  * omit prefixes:
43  * omit code:
44  * omit signals:
45  * imports:
46  * 	- glib.ListG
47  * 	- glib.Str
48  * structWrap:
49  * module aliases:
50  * local aliases:
51  * overrides:
52  */
53 
54 module gda.DataSourceInfo;
55 
56 public  import gdac.gdatypes;
57 
58 private import gdac.gda;
59 private import glib.ConstructionException;
60 private import gobject.ObjectG;
61 
62 private import glib.ListG;
63 private import glib.Str;
64 
65 
66 
67 /**
68  *  The functions in this section allow applications an easy access to the libgda
69  *  configuration, thus making them able to access the list of data sources
70  *  configured in the system, for instance.
71  */
72 public class DataSourceInfo
73 {
74 	
75 	/** the main Gtk struct */
76 	protected GdaDataSourceInfo* gdaDataSourceInfo;
77 	
78 	
79 	/** Get the main Gtk struct */
80 	public GdaDataSourceInfo* getDataSourceInfoStruct()
81 	{
82 		return gdaDataSourceInfo;
83 	}
84 	
85 	
86 	/** the main Gtk struct as a void* */
87 	protected void* getStruct()
88 	{
89 		return cast(void*)gdaDataSourceInfo;
90 	}
91 	
92 	/**
93 	 * Sets our main struct and passes it to the parent class
94 	 */
95 	public this (GdaDataSourceInfo* gdaDataSourceInfo)
96 	{
97 		this.gdaDataSourceInfo = gdaDataSourceInfo;
98 	}
99 	
100 	/** */
101 	this (ListG glist) {
102 		this.gdaDataSourceInfo = cast(GdaDataSourceInfo *) glist.data();
103 	}
104 	/** */
105 	string name() { return Str.toString(this.gdaDataSourceInfo.name); }
106 	/** */
107 	string provider() { return Str.toString(this.gdaDataSourceInfo.provider); }
108 	/** */
109 	string cncString() { return Str.toString(this.gdaDataSourceInfo.cncString); }
110 	/** */
111 	string description() { return Str.toString(this.gdaDataSourceInfo.description); }
112 	/** */
113 	string username() { return Str.toString(this.gdaDataSourceInfo.username); }
114 	/** */
115 	string password() { return Str.toString(this.gdaDataSourceInfo.password); }
116 	
117 	
118 	/**
119 	 */
120 	
121 	/**
122 	 * Returns:
123 	 */
124 	public static GType infoGetType()
125 	{
126 		// GType gda_data_source_info_get_type (void);
127 		return gda_data_source_info_get_type();
128 	}
129 }