// -*- C++ -*- //

/* handlertime.h
 *
 * Copyright 2006 libgdamm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or(at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <glibmm/object.h>
#include <libgdamm/datahandler.h>
#include <libgda/handlers/gda-handler-time.h>

_DEFS(libgdamm,libgda)
_PINCLUDE(glibmm/private/object_p.h)

namespace Gnome
{

namespace Gda
{

/** Default handler for time, date and timestamp.
 *
 * @ingroup DataHanders
 */
class HandlerTime : public Glib::Object,
                    public DataHandler
{
  _CLASS_GOBJECT(HandlerTime, GdaHandlerTime, GDA_HANDLER_TIME, Glib::Object, GObject)
  _IMPLEMENTS_INTERFACE(DataHandler)
protected:

  // TODO: Note that this wraps only the no_locale version of GdaHandlerTime. The
  // other version calls some private function that we have no access to. This
  // should be fixed in libgnomedb, I think. armin.
  _CTOR_DEFAULT()

public:
  _WRAP_CREATE()
};

} // namespace Gda
} // namespace Gnome

