entityfield.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGDAMM_ENTITYFIELD_H
00004 #define _LIBGDAMM_ENTITYFIELD_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* $Id: entityfield.hg,v 1.1 2006/11/08 00:07:37 murrayc Exp $ */
00010 // -*- C++ -*- // this is for the .hg, I realize gensig puts one in
00011 
00012 /* entityfield.h
00013  *
00014  * Copyright 2003 libgdamm Development Team
00015  *
00016  * This library is free software; you can redistribute it and/or
00017  * modify it under the terms of the GNU Library General Public
00018  * License as published by the Free Software Foundation; either
00019  * version 2 of the License, or (at your option) any later version.
00020  *
00021  * This library is distributed in the hope that it will be useful,
00022  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00023  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00024  * Library General Public License for more details.
00025  *
00026  * You should have received a copy of the GNU Library General Public
00027  * License along with this library; if not, write to the Free
00028  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00029  */
00030 
00031 #include <libgdamm/object.h>
00032 #include <libgdamm/dicttype.h>
00033 #include <glibmm/object.h>
00034 #include <libgda/gda-entity-field.h>
00035 
00036 
00037 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00038 typedef struct _GdaEntityField GdaEntityField;
00039 typedef struct _GdaEntityFieldClass GdaEntityFieldClass;
00040 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00041 
00042 
00043 namespace Gnome
00044 {
00045 
00046 namespace Gda
00047 { class EntityField_Class; } // namespace Gda
00048 
00049 } // namespace Gnome
00050 namespace Gnome
00051 {
00052 
00053 namespace Gda
00054 {
00055 
00056 class Entity;
00057 
00061 class EntityField : public Glib::Interface
00062 {
00063   
00064 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00065 
00066 public:
00067   typedef EntityField CppObjectType;
00068   typedef EntityField_Class CppClassType;
00069   typedef GdaEntityField BaseObjectType;
00070   typedef GdaEntityFieldIface BaseClassType;
00071 
00072 private:
00073   friend class EntityField_Class;
00074   static CppClassType entityfield_class_;
00075 
00076   // noncopyable
00077   EntityField(const EntityField&);
00078   EntityField& operator=(const EntityField&);
00079 
00080 protected:
00081   EntityField(); // you must derive from this class
00082   explicit EntityField(GdaEntityField* castitem);
00083 
00084 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00085 
00086 public:
00087   virtual ~EntityField();
00088 
00089   static void add_interface(GType gtype_implementer);
00090 
00091 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00092   static GType get_type()      G_GNUC_CONST;
00093   static GType get_base_type() G_GNUC_CONST;
00094 #endif
00095 
00097   GdaEntityField*       gobj()       { return reinterpret_cast<GdaEntityField*>(gobject_); }
00098 
00100   const GdaEntityField* gobj() const { return reinterpret_cast<GdaEntityField*>(gobject_); }
00101 
00102 private:
00103 
00104 protected:
00105 
00106 public:
00107 
00108   
00113   Glib::RefPtr<Entity> get_entity();
00114   
00119   Glib::RefPtr<const Entity> get_entity() const;
00120 
00121   
00125   GType get_g_type() const;
00126 
00127   
00131   Glib::RefPtr<DictType> get_dict_type();
00132   
00136   Glib::RefPtr<const DictType> get_dict_type() const;
00137 
00138   
00142   Glib::ustring get_name() const;
00143   
00147   Glib::ustring get_description() const;
00148 
00149 //TODO: Watch out, this might not do correct reference counting:
00150   //gtkmmproc error: get_entity :  vfunc defs lookup failed
00151   //gtkmmproc error: get_g_type :  vfunc defs lookup failed
00152   //gtkmmproc error: get_data_type :  vfunc defs lookup failed
00153   //gtkmmproc error: get_alias :  vfunc defs lookup failed
00154 
00155 
00156 public:
00157 
00158 public:
00159   //C++ methods used to invoke GTK+ virtual functions:
00160 #ifdef GLIBMM_VFUNCS_ENABLED
00161 #endif //GLIBMM_VFUNCS_ENABLED
00162 
00163 protected:
00164   //GTK+ Virtual Functions (override these to change behaviour):
00165 #ifdef GLIBMM_VFUNCS_ENABLED
00166 #endif //GLIBMM_VFUNCS_ENABLED
00167 
00168   //Default Signal Handlers::
00169 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00170 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00171 
00172 
00173 };
00174 
00175 } // namespace Gda
00176 } // namespace Gnome
00177 
00178 
00179 namespace Glib
00180 {
00186   Glib::RefPtr<Gnome::Gda::EntityField> wrap(GdaEntityField* object, bool take_copy = false);
00187 
00188 } // namespace Glib
00189 
00190 
00191 #endif /* _LIBGDAMM_ENTITYFIELD_H */
00192 

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