[libgdamm] Replace Time with Glib::DateTime



commit 5d34932ba9d2fa56ec40bbdda5362c838a53235f
Author: Murray Cumming <murraycu google com>
Date:   Sun Jan 12 11:40:23 2020 +0100

    Replace Time with Glib::DateTime
    
    As in libgda.

 libgda/libgdamm/value.cc |  4 ++--
 libgda/libgdamm/value.h  |  8 +++----
 libgda/src/filelist.am   |  1 -
 libgda/src/time.ccg      | 34 -----------------------------
 libgda/src/time.hg       | 57 ------------------------------------------------
 5 files changed, 6 insertions(+), 98 deletions(-)
---
diff --git a/libgda/libgdamm/value.cc b/libgda/libgdamm/value.cc
index e89ae86..bdf065e 100644
--- a/libgda/libgdamm/value.cc
+++ b/libgda/libgdamm/value.cc
@@ -147,7 +147,7 @@ Value::Value(const char* val)
   set(val);
 }
 
-Value::Value(const Time& val)
+Value::Value(const Glib::DateTime& val)
 {
   set(val);
 }
@@ -486,7 +486,7 @@ void Value::set(const char* val)
   g_value_set_string(gobj(), val);
 }
 
-Time Value::get_time() const
+Glib::DateTime Value::get_time() const
 {
   const GdaTime* cobj = gda_value_get_time(const_cast<GValue*>(gobj()));
   return Glib::wrap(const_cast<GdaTime*>(cobj), true /* take_copy */);
diff --git a/libgda/libgdamm/value.h b/libgda/libgdamm/value.h
index 3be8d17..4d550e3 100644
--- a/libgda/libgdamm/value.h
+++ b/libgda/libgdamm/value.h
@@ -27,10 +27,10 @@
 
 #include <libgdamm/numeric.h>
 #include <libgdamm/geometricpoint.h>
-#include <libgdamm/time.h>
 #include <libgdamm/timestamp.h>
 #include <glibmm/value.h>
 #include <glibmm/date.h>
+#include <glibmm/datetime.h>
 #include <libgda/gda-value.h> //TODO: Patch libgda to use the struct _ technique.
 
 
@@ -112,7 +112,7 @@ public:
   //If this constructor does not exists, then Value("something") uses Value(bool) instead of Value(ustring).
   explicit Value(const char* val);
 
-  explicit Value(const Time& val);
+  explicit Value(const Glib::DateTime& val);
 
   explicit Value(const Timestamp& val);
 
@@ -240,9 +240,9 @@ public:
   //If this method does not exists, then set("something") uses set(bool) instead of set(ustring).
   void set(const char* val);
 
-  Time get_time() const;
+  Glib::DateTime get_time() const;
 
-  void set(const Time& val);
+  void set(const Glib::DateTime& val);
 
   Timestamp get_timestamp() const;
 
diff --git a/libgda/src/filelist.am b/libgda/src/filelist.am
index ccc3d53..3768552 100644
--- a/libgda/src/filelist.am
+++ b/libgda/src/filelist.am
@@ -48,7 +48,6 @@ files_hg =                    \
        sqlbuilder.hg   \
        sqlstatement.hg   \
        statement.hg            \
-        time.hg \
         timestamp.hg \
        transactionstatus.hg    \
        xatransaction.hg


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