I've no idea here...
[gtkD.git] / gtkD / wrap / APILookupGda.txt
blob24dcd17d41af160ab94d58dee03747bd65d444da
2 # This file is part of duit.
3
4 # duit 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.
8
9 # duit 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.
13
14 # You should have received a copy of the GNU Lesser General Public License
15 # along with duit; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21 ###
22 #####
23 # Definitions for wrapping GDA
24 #####
25 ###
30 addTypedefs: start
32 public import gtkc.glibtypes;
33 public import gtkc.gobjecttypes;
34 public import glib.Str;
37 addTypedefs: end
39 addAliases: start
40 addAliases: end
42 addEnums: start
43 addEnums: end
45 addStructs: start
47 public struct GdaConnection{}
48 public struct GdaError{}
49 public struct GdaTransaction{}
50 public struct GdaDataModelArray{}
52 public struct GdaDataModelHash{}
54 public struct GdaDataModelList{}
56 public struct xmlNodePtr{}
57 public struct GdaExport{}
59 public struct GdaSelect{}
60 public struct GdaTable{}
63 public struct Blob{} 
64 public struct Date{} 
65 public struct Time{} 
66 public struct Timestamp{} 
67 public struct Money{} 
68 public struct ValueList{} 
69 public struct Numeric{} 
70 public struct GeometricPoint{}
72 struct _GdaProviderInfo {
73         gchar *id;
74         gchar *location;
75         gchar *description;
76         GList *gda_params; /* A list of GdaProviderParameterInfo pointers */
77 } ;
82 addStructs: end
84 addTypes: start
85 addTypes: end
87 addFuncts: start
88 addFuncts: end
90 addUnions: start
91 addUnions: end
93 addConstants: start
94 addConstants: end
97 # must start with wrap
99 wrap: gda
101 srcout: srcgda
103 file: libgda-libgda.html 
104 class: Gda
105 prefix: gda_
106 import: glib.HashTable
107 import: glib.ListG
108 import: gda.ParameterList
111 nocode: gda_init
113 code: start
115         /**
116          * Initializes the GDA library.
117          * app_id :
118          *  name of the program.
119          * version :
120          *  revision number of the program.
121          * args :
122          *   args from main().
123          */
124         public static void init(char[] appId, char[] versio, char[][] args)
125         {
126                 // void gda_init (const gchar *app_id,  const gchar *version,  gint nargs,  gchar *args[]);
127                 gchar*[] argv = (new char*[args.length]);
128                 int argc = 0;
129                 foreach (char[] p; args)
130                 {
131                         argv[argc++] = cast(gchar*)p;
132                 }
133                 
134                 gda_init(Str.toStringz(appId), Str.toStringz(versio), argc, argv);
135         }
136          
137         
140 code:end
143 openFile: Gda
145 #file: libgda-gda-util.html
146 #mergeFile:  Gda
148 file: libgda-gda-util.html
149 structWrap: GdaParameterList*  ParameterList
150 structWrap: GHashTable* HashTable
151 structWrap: GList* ListG
155 closeFile:  Gda
158 file: libgda-gda-blob.html
159 struct: GdaBlob
160 class: Blob
161 prefix: gda_blob_
162 structWrap: GdaBlob* Blob
163 outFile: Blob
165 file: libgda-GdaClient.html 
166 struct: GdaClient
167 class: Client
168 prefix: gda_client_
169 structWrap: GdaConnection* Connection
170 import: gda.Connection
171 nocode: gda_client_open_connection
172 code: start
173         /**
174          * Establishes a connection to a data source. The connection will be opened
175          * if no identical connection is available in the GdaClient connection pool,
176          * and re-used if available. If you dont want to share the connection,
177          * specify GDA_CONNECTION_OPTIONS_DONT_SHARE as one of the flags in
178          * the options parameter.
179          * This function is the way of opening database connections with libgda.
180          * client :
181          *  a GdaClient object.
182          * dsn :
183          *  data source name.
184          * username :
185          *  user name.
186          * password :
187          *  password for username.
188          * options :
189          *  options for the connection (see GdaConnectionOptions).
190          * Returns :
191          *  the opened connection if successful, NULL if there is
192          * an error.
193          */
194         public Connection openConnection(char[] dsn, char[] username, char[] password, GdaConnectionOptions options)
195         {
196                 // GdaConnection* gda_client_open_connection (GdaClient *client,  const gchar *dsn,  const gchar *username,  const gchar *password,  GdaConnectionOptions options);
197                 GdaConnection* connection = gda_client_open_connection(gdaClient, Str.toStringz(dsn), Str.toStringz(username), Str.toStringz(password), options);
198                 return connection ? new Connection( connection) : null;
199         }
200 code: end
201 outFile: Client
204 file: libgda-GdaConnection.html
205 struct: GdaConnection
206 class: Connection
207 prefix: gda_connection_
208 structWrap: GdaClient* Client
209 structWrap: GdaCommand* Command
210 structWrap: GdaParameterList* ParameterList
211 structWrap: GList* ListG
212 import: gda.Client
213 import: gda.Command
214 import: gda.ParameterList
215 import: glib.ListG
217 outFile: Connection
219 file: libgda-gda-command.html
220 struct: GdaCommand
221 class: Command
222 prefix: gda_command_
223 structWrap: GdaTransaction* Transaction
224 structWrap: GdaCommand* Command
225 import: gda.Transaction
226 outFile: Command
228 file: libgda-gda-config.html
229 #struct: GdaConfig
230 class: Config
231 prefix: gda_config_
232 noprefix: gda_data_source_
233 noprefix: gda_provider_
234 structWrap: GList* ListG
235 nostruct: GdaDataSourceInfo
236 nostruct: GdaProviderInfo
238 structWrap: GdaDataSourceInfo DataSourceInfo
239 import: glib.ListG
240 outFile: Config
242 file: libgda-gda-config.html
243 struct: GdaDataSourceInfo
244 noprefix: gda_config_
245 noprefix: gda_provider_
246 nostruct: GdaProviderInfo
247 nocode: GdaConfigListenerFunc
248 class: DataSourceInfo
249 prefix: gda_data_source_
250 import: glib.ListG
251 import: std.string
252 code: start
253         this (ListG glist) {
254                 this.gdaDataSourceInfo = cast(GdaDataSourceInfo *) glist.data;
255         }
256         char[] name() { return std.string.toString(this.gdaDataSourceInfo.name); }
257         char[] provider() { return std.string.toString(this.gdaDataSourceInfo.provider); }
258         char[] cncString() { return std.string.toString(this.gdaDataSourceInfo.cncString); }
259         char[] description() { return std.string.toString(this.gdaDataSourceInfo.description); }
260         char[] username() { return std.string.toString(this.gdaDataSourceInfo.username); }
261         char[] password() { return std.string.toString(this.gdaDataSourceInfo.password); }
262         
263 code: end
265 outFile: DataSourceInfo
267 file: libgda-gda-config.html
268 struct: GdaProviderInfo
269 class: ProviderInfo
271 noprefix: gda_config_
272 noprefix: gda_data_source_
273 prefix: gda_provider_
274 nostruct: GdaDataSourceInfo
275 nocode: GdaConfigListenerFunc
277 import: glib.ListG
278 import: std.string
279 code: start
280         this (ListG glist) {
281                 this.gdaProviderInfo = cast(GdaProviderInfo *) glist.data;
282         }
283         char[] id() { return std.string.toString((cast(_GdaProviderInfo*)this.gdaProviderInfo).id); }
284         char[] location() { return std.string.toString((cast(_GdaProviderInfo*)this.gdaProviderInfo).location); }
285         char[] description() { return std.string.toString((cast(_GdaProviderInfo*)this.gdaProviderInfo).description); }
286         ListG gda_params() { return new ListG((cast(_GdaProviderInfo*)this.gdaProviderInfo).gda_params); }
287         
288         
289 code: end
291 outFile: ProviderInfo
298 file: libgda-GdaDataModelArray.html
299 struct: GdaDataModelArray
300 class: DataModelArray
301 prefix: gda_data_model_array_
302 structWrap: GdaDataModel* DataModel
303 import: gda.DataModel
304 outFile: DataModelArray
307 file: libgda-GdaDataModelHash.html
308 struct: GdaDataModelHash
309 class: DataModelHash
310 prefix: gda_data_model_hash_
311 structWrap: GdaDataModel* DataModel
312 import: gda.DataModel
313 outFile: DataModelHash
315 file: libgda-GdaDataModelList.html
316 struct: GdaDataModelList
317 class: DataModelList
318 prefix: gda_data_model_list_
319 structWrap: GdaDataModel* DataModel
320 structWrap: GdaRow* Row
321 structWrap: GdaValue* Value
322 structWrap: GList* ListG
323 import: gda.DataModel
324 import: gda.Value
325 import: glib.ListG
326 import: gda.Row
327 outFile: DataModelList
330 file: libgda-GdaDataModel.html
331 struct: GdaDataModel
332 class: DataModel
333 prefix: gda_data_model_
334 structWrap: GdaDataModel* DataModel
335 structWrap: GdaFieldAttributes* FieldAttributes
336 structWrap: GdaRow* Row
337 structWrap: GdaValue* Value
338 structWrap: GList* ListG
339 import: glib.ListG
340 import: gda.Row
341 import: gda.FieldAttributes
342 import: gda.Value
344 code: start
345         this (ListG glist) {
346                 this.gdaDataModel = cast(GdaDataModel *) glist.data;
347         }
349 code: end
350 outFile: DataModel
353 file: libgda-GdaError.html
354 struct: GdaError
355 class: Error
356 prefix: gda_error_
357 structWrap: GList* ListG
358 import: glib.ListG
360 code: start
361         this (ListG glist) {
362                 this.gdaError = cast(GdaError *) glist.data;
363         }
365 code: end
366 outFile: Error
369 file: libgda-GdaExport.html
370 struct: GdaExport
371 class: Export
372 prefix: gda_export_
373 structWrap: GList* ListG
374 structWrap: GdaConnection* Connection
375 import: glib.ListG
376 import: gda.Connection
377 outFile: Export
380 file: libgda-gda-field.html
381 struct: GdaFieldAttributes
382 class: FieldAttributes
383 prefix: gda_field_attributes_
384 structWrap: GList* ListG
385 structWrap: GdaConnection* Connection
386 structWrap: GdaFieldAttributes* FieldAttributes
387 structWrap: GdaValue* Value
388 import: glib.ListG
389 import: gda.Value
390 outFile: FieldAttributes
392 file: libgda-gda-log.html 
393 class: Log
394 prefix: gda_log_
395 outFile: Log
399 file: libgda-gda-parameter.html
400 struct: GdaParameter
401 class: Parameter
402 prefix: gda_parameter_
403 noprefix: gda_parameter_list_
404 structWrap: GList* ListG
405 structWrap: GdaValue* Value
406 structWrap: GdaParameter*  Parameter
408 import: glib.ListG
409 import: gda.Value
411 nocode: gda_parameter_list_get_type         
412 nocode: gda_parameter_list_new              
413 nocode: gda_parameter_list_free             
414 nocode: gda_parameter_list_copy             
415 nocode: gda_parameter_list_add_parameter    
416 nocode: gda_parameter_list_get_names        
417 nocode: gda_parameter_list_find                                                         
418 nocode: gda_parameter_list_clear            
419 nocode: gda_parameter_list_get_length       
422 outFile: Parameter
424 struct: GdaParameterList
425 class: ParameterList
426 prefix: gda_parameter_list_
427 strictPrefix: Y
429 structWrap: GList* ListG
430 structWrap: GdaValue* Value
431 structWrap: GdaParameter*  Parameter
432 structWrap: GdaParameterList*  ParameterList
433 import: gda.Parameter
434 import: glib.ListG
435 nocode: gda_parameter_get_type
436 nocode: gda_parameter_new_from_value    
437 nocode: gda_parameter_new_boolean       
438 nocode: gda_parameter_new_double        
439 nocode: gda_parameter_new_gobject       
440 nocode: gda_parameter_new_string        
441 nocode: gda_parameter_copy              
442 nocode: gda_parameter_free              
443 nocode: gda_parameter_get_name          
444 nocode: gda_parameter_set_name          
445 nocode: gda_parameter_get_value         
446 nocode: gda_parameter_set_value         
447                                              
448 outFile: ParameterList
451 file: libgda-gda-quark-list.html
452 struct: GdaQuarkList
453 class: QuarkList
454 prefix: gda_quark_list_
455 structWrap: GList* ListG
456 structWrap: GdaQuarkList* QuarkList
457                                             
458 outFile: QuarkList
461 file: libgda-gda-row.html
462 struct: GdaRow
463 class: Row
464 prefix: gda_row_
465 structWrap: GdaDataModel*  DataModel
466 structWrap: GdaRow* Row
467 structWrap: GdaValue* Value                                
468 import: gda.Value
469 import: gda.DataModel
470 outFile: Row
473 file: libgda-GdaSelect.html
474 struct: GdaSelect
475 class: Select
476 prefix: gda_select_
477 structWrap: GdaDataModel*  DataModel
478 structWrap: GdaSelect* Select
479 import: gda.DataModel
480 outFile: Select
483 file: libgda-GdaTable.html
484 struct: GdaTable
485 class: Table
486 prefix: gda_table_
487 structWrap: GdaDataModel*  DataModel
488 structWrap: GdaTable* Table
489 structWrap: GdaFieldAttributes* FieldAttributes
490 import: gda.DataModel
491 import: gda.FieldAttributes
492 outFile: Table
494 file: libgda-GdaTransaction.html
495 struct: GdaTransaction
496 class:  Transaction
497 prefix: gda_transaction_
498 structWrap: GdaDataModel*  DataModel
499 structWrap: GdaTransaction*  Transaction
500 structWrap: GdaFieldAttributes* FieldAttributes
501 outFile: Transaction
503 file: libgda-gda-value.html
504 struct: GdaValue
505 class:  Value
506 prefix: gda_value_
507 structWrap: GdaValue*  Value
508 #structWrap: GdaMoney*  Money
509 #structWrap: GdaNumeric*  Numeric
510 #structWrap: GdaDate*  Date
511 #structWrap: GdaTime*  Time
512 #structWrap: GdaTimestamp*  Timestamp
513 #structWrap: GdaGeometricPoint* GeometricPoint
514 structWrap: GObject* ObjectG
515 #structWrap: GdaBlob* Blob
516 #structWrap: GdaValueList*  ValueList
517 import: gobject.ObjectG
519 nocode: gda_value_new_boolean
520 nocode: gda_value_new_timestamp_from_timet 
521 nocode: gda_value_new_tinyint 
522 nocode: gda_value_new_tinyuint
523 nocode: gda_value_new_uinteger
525 code: start
526         public this (bool val)
527         {
528                 // GdaValue* gda_value_new_boolean (gboolean val);
529                 this(cast(GdaValue*)gda_value_new_boolean(val) );
530         }
531 code: end
534 outFile: Value