[gnome-db] Connection Widget / Other stuff
- From: Cleber Rodrigues Rosa Junior <cleberrrjr bol com br>
- To: gnome-db-list gnome org
- Subject: [gnome-db] Connection Widget / Other stuff
- Date: 25 Jan 2002 11:21:19 -0200
Hi Rodrigo,
Hi Gonzalo,
Hi All,
I noticed that GnomeDbConnectionSelector was only half
implemented, so I decided to give it a try. So, it made
sense to me to have a GnomeDbConnection first, and then
make a selector based on it.
So, the first thing I found myself in need of was something
like gda_connection_is_open, which I implememented, patch
follows.
The one other thing holding me back is that a GdaConnection
does not hold in any the name of it's associated DataSource,
preventing me from getting a GdaDataSourceInfo.
Is this really missing or am I missing something? If we're
short on this, how do you want it to be? Tell me and I'll
send you a patch.
Thanks.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libgda/ChangeLog,v
retrieving revision 1.127
diff -c -r1.127 ChangeLog
*** ChangeLog 2002/01/24 01:38:51 1.127
--- ChangeLog 2002/01/25 17:43:01
***************
*** 1,3 ****
--- 1,8 ----
+ 2002-01-25 Cleber Rodrigues <cleberrrjr bol com br>
+
+ * libgda/gda-connection.*
+ (gda_connection_is_open): implemented
+
2002-01-23 Rodrigo Moya <rodrigo gnome-db org>
* report/libgda-report/gda-report-document.c
Index: libgda/gda-connection.c
===================================================================
RCS file: /cvs/gnome/libgda/libgda/gda-connection.c,v
retrieving revision 1.14
diff -c -r1.14 gda-connection.c
*** libgda/gda-connection.c 2002/01/13 14:22:51 1.14
--- libgda/gda-connection.c 2002/01/25 17:43:09
***************
*** 227,232 ****
--- 227,240 ----
return TRUE;
}
+ gboolean
+ gda_connection_is_open (GdaConnection *cnc)
+ {
+ g_return_val_if_fail (GDA_IS_CONNECTION (cnc), FALSE);
+
+ return cnc->priv->is_open;
+ }
+
/**
* gda_connection_get_client
*/
Index: libgda/gda-connection.h
===================================================================
RCS file: /cvs/gnome/libgda/libgda/gda-connection.h,v
retrieving revision 1.9
diff -c -r1.9 gda-connection.h
*** libgda/gda-connection.h 2002/01/21 00:49:34 1.9
--- libgda/gda-connection.h 2002/01/25 17:43:09
***************
*** 62,67 ****
--- 62,68 ----
const gchar *username,
const gchar *password);
gboolean gda_connection_close (GdaConnection *cnc);
+ gboolean gda_connection_is_open (GdaConnection *cnc);
GdaClient *gda_connection_get_client (GdaConnection *cnc);
void gda_connection_set_client (GdaConnection *cnc, GdaClient *client);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]