[libgdamm] Connection: Add new properties.



commit 482085f022f5e16e1586eda7a366d6f6318f98aa
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 30 11:44:59 2011 +0200

    Connection: Add new properties.
    
    * libgda/src/libgda_signals.defs: Regenerated.
    * libgda/src/connection.hg: Added provider, is_wrapper,
    monitor_wrapped_in_mainloop, and events_history_size properties.

 ChangeLog                      |    8 ++++
 libgda/src/connection.hg       |    5 +++
 libgda/src/libgda_signals.defs |   77 ++++++++++++++++++++++++++-------------
 3 files changed, 64 insertions(+), 26 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ba456b8..ae5c1fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-03-30  Murray Cumming  <murrayc murrayc com>
 
+	Connection: Add new properties.
+
+	* libgda/src/libgda_signals.defs: Regenerated.
+	* libgda/src/connection.hg: Added provider, is_wrapper,
+	monitor_wrapped_in_mainloop, and events_history_size properties.
+
+2011-03-30  Murray Cumming  <murrayc murrayc com>
+
 	Connection: Ignore private functions.
 
 	* libgda/src/connection.hg: These functions are in gda-connection-private.h
diff --git a/libgda/src/connection.hg b/libgda/src/connection.hg
index e5eb325..2d946b9 100644
--- a/libgda/src/connection.hg
+++ b/libgda/src/connection.hg
@@ -398,11 +398,16 @@ public:
   _WRAP_SIGNAL(void dsn_changed(), "dsn_changed")
   _WRAP_SIGNAL(void transaction_status_changed(), "transaction_status_changed")
 
+  _WRAP_PROPERTY("provider", Glib::RefPtr<ServerProvider>)
   _WRAP_PROPERTY("auth-string", Glib::ustring)
   _WRAP_PROPERTY("cnc-string", Glib::ustring)
   _WRAP_PROPERTY("dsn", Glib::ustring)
   _WRAP_PROPERTY("meta-store", Glib::RefPtr<MetaStore>)
   _WRAP_PROPERTY("options", ConnectionOptions)
+  _WRAP_PROPERTY("is-wrapper", bool)
+  _WRAP_PROPERTY("monitor-wrapped-in-mainloop", bool)
+  //We ignore the thread-owner property because it is strange and should only be used (well, modified) by provider implementations.
+  _WRAP_PROPERTY("events-history-size", int)
 };
 
 } // namespace Gda
diff --git a/libgda/src/libgda_signals.defs b/libgda/src/libgda_signals.defs
index da381c1..8e1e84a 100644
--- a/libgda/src/libgda_signals.defs
+++ b/libgda/src/libgda_signals.defs
@@ -77,19 +77,19 @@
   )
 )
 
-(define-property user-filename
+(define-property system-filename
   (of-object "GdaConfig")
   (prop-type "GParamString")
-  (docs "File to use for per-user DSN list")
+  (docs "File to use for system-wide DSN list")
   (readable #t)
   (writable #t)
   (construct-only #f)
 )
 
-(define-property system-filename
+(define-property user-filename
   (of-object "GdaConfig")
   (prop-type "GParamString")
-  (docs "File to use for system-wide DSN list")
+  (docs "File to use for per-user DSN list")
   (readable #t)
   (writable #t)
   (construct-only #f)
@@ -175,7 +175,7 @@
 (define-property options
   (of-object "GdaConnection")
   (prop-type "GParamFlags")
-  (docs "Options (connection sharing)")
+  (docs "Options")
   (readable #t)
   (writable #t)
   (construct-only #f)
@@ -217,6 +217,15 @@
   (construct-only #f)
 )
 
+(define-property events-history-size
+  (of-object "GdaConnection")
+  (prop-type "GParamInt")
+  (docs "")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
 ;; From GdaConnectionEvent
 
 (define-property type
@@ -290,26 +299,6 @@
   (construct-only #f)
 )
 
-;; From GdaDataModelBdb
-
-(define-property filename
-  (of-object "GdaDataModelBdb")
-  (prop-type "GParamString")
-  (docs "DB file")
-  (readable #t)
-  (writable #t)
-  (construct-only #t)
-)
-
-(define-property db-name
-  (of-object "GdaDataModelBdb")
-  (prop-type "GParamString")
-  (docs "Name of the database")
-  (readable #t)
-  (writable #t)
-  (construct-only #t)
-)
-
 ;; From GdaDataModelDir
 
 (define-property basedir
@@ -409,6 +398,15 @@
   (construct-only #t)
 )
 
+(define-property strict
+  (of-object "GdaDataModelImport")
+  (prop-type "GParamBoolean")
+  (docs "Consider missing or too much values an error")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
 ;; From GdaDataModelIter
 
 (define-signal row-changed
@@ -677,7 +675,7 @@
 (define-property auto-reset
   (of-object "GdaDataSelect")
   (prop-type "GParamBoolean")
-  (docs "Automatically re-run the SELECT statement if any parameter has chanegd since it was first executed")
+  (docs "Automatically re-run the SELECT statement if any parameter has changed since it was first executed")
   (readable #t)
   (writable #t)
   (construct-only #f)
@@ -994,6 +992,24 @@
   (when "first")
 )
 
+(define-signal holder-type-set
+  (of-object "GdaSet")
+  (return-type "void")
+  (when "first")
+  (parameters
+    '("GdaHolder*" "p0")
+  )
+)
+
+(define-signal source-model-changed
+  (of-object "GdaSet")
+  (return-type "void")
+  (when "first")
+  (parameters
+    '("gpointer" "p0")
+  )
+)
+
 (define-property id
   (of-object "GdaSet")
   (prop-type "GParamString")
@@ -1119,3 +1135,12 @@
 
 ;; From GdaSqlBuilder
 
+(define-property stmt-type
+  (of-object "GdaSqlBuilder")
+  (prop-type "GParamEnum")
+  (docs "Statement Type")
+  (readable #f)
+  (writable #t)
+  (construct-only #t)
+)
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]