queryfield.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGDAMM_QUERYFIELD_H
00004 #define _LIBGDAMM_QUERYFIELD_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 // -*- C++ -*- // this is for the .hg, I realize gensig puts one in
00010 
00011 /* queryfield.h
00012  *
00013  * Copyright 2003 libgdamm Development Team
00014  *
00015  * This library is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU Library General Public
00017  * License as published by the Free Software Foundation; either
00018  * version 2 of the License, or (at your option) any later version.
00019  *
00020  * This library is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023  * Library General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU Library General Public
00026  * License along with this library; if not, write to the Free
00027  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00028  */
00029 
00030 #include <glibmm/object.h>
00031 #include <libgdamm/dict.h>
00032 #include <libgdamm/datamodel.h>
00033 
00034 #include <libgdamm/xmlstorage.h>
00035 #include <libgdamm/queryobject.h>
00036 
00037 
00038 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00039 typedef struct _GdaQueryField GdaQueryField;
00040 typedef struct _GdaQueryFieldClass GdaQueryFieldClass;
00041 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00042 
00043 
00044 namespace Gnome
00045 {
00046 
00047 namespace Gda
00048 { class QueryField_Class; } // namespace Gda
00049 
00050 } // namespace Gnome
00051 namespace Gnome
00052 {
00053 
00054 namespace Gda
00055 {
00056 
00060 class QueryField
00061  : public QueryObject
00062 {
00063   
00064 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00065 
00066 public:
00067   typedef QueryField CppObjectType;
00068   typedef QueryField_Class CppClassType;
00069   typedef GdaQueryField BaseObjectType;
00070   typedef GdaQueryFieldClass BaseClassType;
00071 
00072 private:  friend class QueryField_Class;
00073   static CppClassType queryfield_class_;
00074 
00075 private:
00076   // noncopyable
00077   QueryField(const QueryField&);
00078   QueryField& operator=(const QueryField&);
00079 
00080 protected:
00081   explicit QueryField(const Glib::ConstructParams& construct_params);
00082   explicit QueryField(GdaQueryField* castitem);
00083 
00084 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00085 
00086 public:
00087   virtual ~QueryField();
00088 
00089 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00090   static GType get_type()      G_GNUC_CONST;
00091   static GType get_base_type() G_GNUC_CONST;
00092 #endif
00093 
00095   GdaQueryField*       gobj()       { return reinterpret_cast<GdaQueryField*>(gobject_); }
00096 
00098   const GdaQueryField* gobj() const { return reinterpret_cast<GdaQueryField*>(gobject_); }
00099 
00101   GdaQueryField* gobj_copy();
00102 
00103 private:
00104 
00105 
00106 public:
00107   // TODO: Constructors use GError* argument
00108   
00113   Glib::RefPtr<DictType> get_dict_type();
00114   
00119   Glib::RefPtr<const DictType> get_dict_type() const;
00120   
00121   // TODO: This method should use const parameters in libgda
00122   // TODO: So, fix libgda, please. murrayc
00123   //_WRAP_EQUAL(gda_query_field_is_equal)
00124   //__IGNORE(gda_query_field_is_equal)
00125   
00126   // TODO: GList* gda_query_field_get_parameters
00127   
00131   void set_alias(const Glib::ustring& alias);
00132   
00136   Glib::ustring get_alias() const;
00137 
00138   // TODO: use get_ instead of is_?
00139   
00144   void set_visible(bool visible = true);
00145   
00149   bool get_visible() const;
00150   
00154   void set_internal(bool internal = true);
00155   
00159   bool get_internal() const;
00160   
00164   bool is_list() const;
00165   
00166 
00167 public:
00168 
00169 public:
00170   //C++ methods used to invoke GTK+ virtual functions:
00171 #ifdef GLIBMM_VFUNCS_ENABLED
00172 #endif //GLIBMM_VFUNCS_ENABLED
00173 
00174 protected:
00175   //GTK+ Virtual Functions (override these to change behaviour):
00176 #ifdef GLIBMM_VFUNCS_ENABLED
00177 #endif //GLIBMM_VFUNCS_ENABLED
00178 
00179   //Default Signal Handlers::
00180 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00181 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00182 
00183 
00184 };
00185 
00186 } // namespace Gda
00187 } // namespace Gnome
00188 
00189 
00190 namespace Glib
00191 {
00197   Glib::RefPtr<Gnome::Gda::QueryField> wrap(GdaQueryField* object, bool take_copy = false);
00198 }
00199 
00200 
00201 #endif /* _LIBGDAMM_QUERYFIELD_H */
00202 

Generated on Sat Feb 10 20:06:26 2007 for libgdamm by  doxygen 1.4.7