diff options
author | Kjell Ahlstedt <kjell.ahlstedt@bredband.net> | 2013-01-27 11:05:34 +0100 |
---|---|---|
committer | Kjell Ahlstedt <kjell.ahlstedt@bredband.net> | 2013-01-27 11:05:34 +0100 |
commit | 0759fe84d17590eba58689f8d416b626b9b36b9c (patch) | |
tree | c65c41f3ba3a081f839acbc50dbf7d121ac1d38f /glib/src/datetime.hg | |
parent | d1ccc3bae88396f03e5889286db50547a45dbfed (diff) | |
download | glibmm-0759fe84d17590eba58689f8d416b626b9b36b9c.tar.gz |
Documentation: Fix many warnings from Doxygen.
* gio/src/gio_docs_override.xml:
* glib/src/glib_docs_override.xml: Move "Since: n.m" from the <return> to the
<description> entries. gmmproc adds a period at the end of the @return
Doxygen command, and Doxygen warns for "@newin{n,m}.".
* glib/glibmm/interface.h:
* glib/glibmm/stringutils.h:
* glib/glibmm/vectorutils.h:
* gio/src/*.hg:
* glib/src/*.hg: (Here "*" means "many", not "all") Examples of changes:
Add missing @param. Change names of parameters, to make them equal in
function declaration and @param command. Change "@name" to "@a name".
Change "<ulink url=" to "<a href=".
Diffstat (limited to 'glib/src/datetime.hg')
-rw-r--r-- | glib/src/datetime.hg | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/glib/src/datetime.hg b/glib/src/datetime.hg index 4d4aaf23..167a412e 100644 --- a/glib/src/datetime.hg +++ b/glib/src/datetime.hg @@ -90,11 +90,39 @@ public: _WRAP_METHOD(DateTime add_minutes(int minutes) const, g_date_time_add_minutes) _WRAP_METHOD(DateTime add_seconds(double seconds) const, g_date_time_add_seconds) _WRAP_METHOD(DateTime add_full(int years, int months, int days, int hours, int minutes, double seconds) const, g_date_time_add_full) + + /** Calculates the difference in time between @a *this and @a other. The + * TimeSpan that is returned is effectively @a *this - @a other. + * + * @newin{2,26} + * @param other The other DateTime. + * @return The difference between the two DateTime, as a time + * span expressed in microseconds. + */ _WRAP_METHOD(TimeSpan difference(const DateTime& other) const, g_date_time_difference) #m4 _CONVERSION(`const DateTime&',`gconstpointer',`static_cast<gconstpointer>(&($3))') + /** A comparison function for DateTimes that is suitable + * as a CompareFunc. + * + * @newin{2,26} + * @param other The DateTime to compare with. + * @return -1, 0 or 1 if @a *this is less than, equal to or greater + * than @a other. + */ _WRAP_METHOD(int compare(const DateTime& other) const, g_date_time_compare) + _WRAP_METHOD(guint hash() const, g_date_time_hash) + + /** Checks to see if @a *this and @a other are equal. + * + * Equal here means that they represent the same moment after converting + * them to the same time zone. + * + * @newin{2,26} + * @param other The DateTime to compare with. + * @return <tt>true</tt> if @a *this and @a other are equal. + */ _WRAP_METHOD(bool equal(const DateTime& other) const, g_date_time_equal) _WRAP_METHOD(void get_ymd(int& year, int& month, int& day) const, g_date_time_get_ymd) |