00001
00002
00003 #ifndef _LIBGDAMM_DICTTYPE_H
00004 #define _LIBGDAMM_DICTTYPE_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/xmlstorage.h>
00033
00034
00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00036 typedef struct _GdaDictType GdaDictType;
00037 typedef struct _GdaDictTypeClass GdaDictTypeClass;
00038 #endif
00039
00040
00041 namespace Gnome
00042 {
00043
00044 namespace Gda
00045 { class DictType_Class; }
00046
00047 }
00048 namespace Gnome
00049 {
00050
00051 namespace Gda
00052 {
00053
00054 class Connection;
00055
00069 class DictType
00070 : public Gda::Object,
00071 public XmlStorage
00072 {
00073
00074 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00075
00076 public:
00077 typedef DictType CppObjectType;
00078 typedef DictType_Class CppClassType;
00079 typedef GdaDictType BaseObjectType;
00080 typedef GdaDictTypeClass BaseClassType;
00081
00082 private: friend class DictType_Class;
00083 static CppClassType dicttype_class_;
00084
00085 private:
00086
00087 DictType(const DictType&);
00088 DictType& operator=(const DictType&);
00089
00090 protected:
00091 explicit DictType(const Glib::ConstructParams& construct_params);
00092 explicit DictType(GdaDictType* castitem);
00093
00094 #endif
00095
00096 public:
00097 virtual ~DictType();
00098
00099 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00100 static GType get_type() G_GNUC_CONST;
00101 static GType get_base_type() G_GNUC_CONST;
00102 #endif
00103
00105 GdaDictType* gobj() { return reinterpret_cast<GdaDictType*>(gobject_); }
00106
00108 const GdaDictType* gobj() const { return reinterpret_cast<GdaDictType*>(gobject_); }
00109
00111 GdaDictType* gobj_copy();
00112
00113 private:
00114
00115
00116 protected:
00117
00118 DictType();
00119
00120 public:
00121
00122 static Glib::RefPtr<DictType> create();
00123
00124
00127 void set_sqlname(const Glib::ustring& sqlname);
00128
00132 Glib::ustring get_sqlname() const;
00133
00134
00137 void set_g_type(GType g_type);
00138
00142 GType get_g_type() const;
00143
00144
00147 void add_synonym(const Glib::ustring& synonym);
00148
00149
00150
00151
00152
00155 void clear_synonyms();
00156
00157
00158
00159
00160 public:
00161
00162 public:
00163
00164 #ifdef GLIBMM_VFUNCS_ENABLED
00165 #endif //GLIBMM_VFUNCS_ENABLED
00166
00167 protected:
00168
00169 #ifdef GLIBMM_VFUNCS_ENABLED
00170 #endif //GLIBMM_VFUNCS_ENABLED
00171
00172
00173 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00174 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00175
00176
00177 };
00178
00179 }
00180 }
00181
00182
00183 namespace Glib
00184 {
00190 Glib::RefPtr<Gnome::Gda::DictType> wrap(GdaDictType* object, bool take_copy = false);
00191 }
00192
00193
00194 #endif
00195