00001
00002
00003 #ifndef _LIBGDAMM_ENTITYFIELD_H
00004 #define _LIBGDAMM_ENTITYFIELD_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
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
00041
00042
00043 namespace Gnome
00044 {
00045
00046 namespace Gda
00047 { class EntityField_Class; }
00048
00049 }
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
00077 EntityField(const EntityField&);
00078 EntityField& operator=(const EntityField&);
00079
00080 protected:
00081 EntityField();
00082 explicit EntityField(GdaEntityField* castitem);
00083
00084 #endif
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
00150
00151
00152
00153
00154
00155
00156 public:
00157
00158 public:
00159
00160 #ifdef GLIBMM_VFUNCS_ENABLED
00161 #endif //GLIBMM_VFUNCS_ENABLED
00162
00163 protected:
00164
00165 #ifdef GLIBMM_VFUNCS_ENABLED
00166 #endif //GLIBMM_VFUNCS_ENABLED
00167
00168
00169 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00170 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00171
00172
00173 };
00174
00175 }
00176 }
00177
00178
00179 namespace Glib
00180 {
00186 Glib::RefPtr<Gnome::Gda::EntityField> wrap(GdaEntityField* object, bool take_copy = false);
00187
00188 }
00189
00190
00191 #endif
00192