// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _LIBGDA_UIMM_SERVEROPERATION_H
#define _LIBGDA_UIMM_SERVEROPERATION_H


#include <glibmm.h>

/* libgda-uimm - a C++ wrapper for libgda-ui
 *
 * Copyright (c) 2010 libgda-uimm 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 <gtkmm/box.h>


#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GdauiServerOperation GdauiServerOperation;
typedef struct _GdauiServerOperationClass GdauiServerOperationClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */


namespace Gnome
{

namespace GdaUI
{ class ServerOperation_Class; } // namespace GdaUI

} // namespace Gnome
namespace Gnome
{

// Gnome::Gda class forward declarations.
namespace Gda
{

class ServerOperation;

}

namespace GdaUI
{

class DataProxy;

/** ServerOperation - Entrer information to perform a DDL query.
 * The ServerOperation widget allows the user to enter information to perform
 * Data Definition queries (all queries which are not SELECT, INSERT, UPDATE
 * or DELETE). For example the figure shows a ServerOperation widget set to
 * create an index in an SQLite database.
 */

class ServerOperation :
  public Gtk::VBox
{
  public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
  typedef ServerOperation CppObjectType;
  typedef ServerOperation_Class CppClassType;
  typedef GdauiServerOperation BaseObjectType;
  typedef GdauiServerOperationClass BaseClassType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */

  virtual ~ServerOperation();

#ifndef DOXYGEN_SHOULD_SKIP_THIS

private:
  friend class ServerOperation_Class;
  static CppClassType serveroperation_class_;

  // noncopyable
  ServerOperation(const ServerOperation&);
  ServerOperation& operator=(const ServerOperation&);

protected:
  explicit ServerOperation(const Glib::ConstructParams& construct_params);
  explicit ServerOperation(GdauiServerOperation* castitem);

#endif /* DOXYGEN_SHOULD_SKIP_THIS */

public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
  static GType get_type()      G_GNUC_CONST;


  static GType get_base_type() G_GNUC_CONST;
#endif

  ///Provides access to the underlying C GtkObject.
  GdauiServerOperation*       gobj()       { return reinterpret_cast<GdauiServerOperation*>(gobject_); }

  ///Provides access to the underlying C GtkObject.
  const GdauiServerOperation* gobj() const { return reinterpret_cast<GdauiServerOperation*>(gobject_); }


public:
  //C++ methods used to invoke GTK+ virtual functions:
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED

protected:
  //GTK+ Virtual Functions (override these to change behaviour):
#ifdef GLIBMM_VFUNCS_ENABLED
#endif //GLIBMM_VFUNCS_ENABLED

  //Default Signal Handlers::
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED


private:


public:
  
  /** Creates a new Gdaui::ServerOperation widget using all the parameters provided in @paramlist.
   * 
   * The global layout is rendered using a table (a Gtk::Table), and an entry is created for each
   * node of @paramlist.
   * @param paramlist A Gda::Set structure.
   * @return The new widget
   * 
   * @newin{4,2}.
   */

  explicit ServerOperation(const Glib::RefPtr<Gnome::Gda::ServerOperation>& op);

  
  /** Creates a new Gdaui::ServerOperation widget in the same way as new()
   * and puts it into a Gtk::Dialog widget. The returned dialog has the "Ok" and "Cancel" buttons
   * which respectively return GTK_RESPONSE_ACCEPT and GTK_RESPONSE_REJECT.
   * 
   * The Gdaui::ServerOperation widget is attached to the dialog using the user property
   * "form".
   * @param op A Gda::ServerOperation object.
   * @param parent The parent window for the new dialog, or <tt>0</tt>.
   * @param title The title of the dialog window, or <tt>0</tt>.
   * @param header A helper text displayed at the top of the dialog, or <tt>0</tt>.
   * @return The new Gtk::Dialog widget
   * 
   * @newin{4,2}.
   */

  explicit ServerOperation(const Glib::RefPtr<Gnome::Gda::ServerOperation>& op, Gtk::Window* parent, const Glib::ustring& title, const Glib::ustring& header);

public:
  #ifdef GLIBMM_PROPERTIES_ENABLED
/** 
   *
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
   * the value of the property changes.
   */
  Glib::PropertyProxy<bool> property_hide_single_header() ;
#endif //#GLIBMM_PROPERTIES_ENABLED

#ifdef GLIBMM_PROPERTIES_ENABLED
/** 
   *
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
   * the value of the property changes.
   */
  Glib::PropertyProxy_ReadOnly<bool> property_hide_single_header() const;
#endif //#GLIBMM_PROPERTIES_ENABLED

  #ifdef GLIBMM_PROPERTIES_ENABLED
/** 
   *
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
   * the value of the property changes.
   */
  Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gnome::Gda::ServerOperation> > property_server_operation() const;
#endif //#GLIBMM_PROPERTIES_ENABLED


};

} // namespace GdaUI

} // namespace Gnome


namespace Glib
{
  /** A Glib::wrap() method for this object.
   * 
   * @param object The C instance.
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
   * @result A C++ instance that wraps this C instance.
   *
   * @relates Gnome::GdaUI::ServerOperation
   */
  Gnome::GdaUI::ServerOperation* wrap(GdauiServerOperation* object, bool take_copy = false);
} //namespace Glib


#endif /* _LIBGDA_UIMM_SERVEROPERATION_H */

