00001
00002
00003 #ifndef _LIBGDAMM_DATAMODELROW_H
00004 #define _LIBGDAMM_DATAMODELROW_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 #include <glibmm/object.h>
00031 #include <libgdamm/object.h>
00032 #include <libgdamm/datamodel.h>
00033
00034
00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00036 typedef struct _GdaDataModelRow GdaDataModelRow;
00037 typedef struct _GdaDataModelRowClass GdaDataModelRowClass;
00038 #endif
00039
00040
00041 namespace Gnome
00042 {
00043
00044 namespace Gda
00045 { class DataModelRow_Class; }
00046
00047 }
00048 namespace Gnome
00049 {
00050
00051 namespace Gda
00052 {
00053
00058 class DataModelRow
00059 : public Object,
00060 public DataModel
00061 {
00062
00063 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00064
00065 public:
00066 typedef DataModelRow CppObjectType;
00067 typedef DataModelRow_Class CppClassType;
00068 typedef GdaDataModelRow BaseObjectType;
00069 typedef GdaDataModelRowClass BaseClassType;
00070
00071 private: friend class DataModelRow_Class;
00072 static CppClassType datamodelrow_class_;
00073
00074 private:
00075
00076 DataModelRow(const DataModelRow&);
00077 DataModelRow& operator=(const DataModelRow&);
00078
00079 protected:
00080 explicit DataModelRow(const Glib::ConstructParams& construct_params);
00081 explicit DataModelRow(GdaDataModelRow* castitem);
00082
00083 #endif
00084
00085 public:
00086 virtual ~DataModelRow();
00087
00088 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00089 static GType get_type() G_GNUC_CONST;
00090 static GType get_base_type() G_GNUC_CONST;
00091 #endif
00092
00094 GdaDataModelRow* gobj() { return reinterpret_cast<GdaDataModelRow*>(gobject_); }
00095
00097 const GdaDataModelRow* gobj() const { return reinterpret_cast<GdaDataModelRow*>(gobject_); }
00098
00100 GdaDataModelRow* gobj_copy();
00101
00102 private:
00103
00104
00105 protected:
00106
00107
00108 public:
00109 #ifdef GLIBMM_PROPERTIES_ENABLED
00110
00116 Glib::PropertyProxy<Glib::ustring> property_command_text() ;
00117 #endif //#GLIBMM_PROPERTIES_ENABLED
00118
00119 #ifdef GLIBMM_PROPERTIES_ENABLED
00120
00126 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_command_text() const;
00127 #endif //#GLIBMM_PROPERTIES_ENABLED
00128
00129 #ifdef GLIBMM_PROPERTIES_ENABLED
00130
00136 Glib::PropertyProxy<int> property_command_type() ;
00137 #endif //#GLIBMM_PROPERTIES_ENABLED
00138
00139 #ifdef GLIBMM_PROPERTIES_ENABLED
00140
00146 Glib::PropertyProxy_ReadOnly<int> property_command_type() const;
00147 #endif //#GLIBMM_PROPERTIES_ENABLED
00148
00149 #ifdef GLIBMM_PROPERTIES_ENABLED
00150
00156 Glib::PropertyProxy<bool> property_read_only() ;
00157 #endif //#GLIBMM_PROPERTIES_ENABLED
00158
00159 #ifdef GLIBMM_PROPERTIES_ENABLED
00160
00166 Glib::PropertyProxy_ReadOnly<bool> property_read_only() const;
00167 #endif //#GLIBMM_PROPERTIES_ENABLED
00168
00169
00174 #ifdef GLIBMM_EXCEPTIONS_ENABLED
00175 const Glib::RefPtr<Row> get_row(int row);
00176 #else
00177 const Glib::RefPtr<Row> get_row(int row, std::auto_ptr<Glib::Error>& error);
00178 #endif //GLIBMM_EXCEPTIONS_ENABLED
00179
00180
00185 #ifdef GLIBMM_EXCEPTIONS_ENABLED
00186 const Glib::RefPtr<const Row> get_row(int row) const;
00187 #else
00188 const Glib::RefPtr<const Row> get_row(int row, std::auto_ptr<Glib::Error>& error) const;
00189 #endif //GLIBMM_EXCEPTIONS_ENABLED
00190
00191
00192
00193
00194
00195 public:
00196
00197 public:
00198
00199 #ifdef GLIBMM_VFUNCS_ENABLED
00200 #endif //GLIBMM_VFUNCS_ENABLED
00201
00202 protected:
00203
00204 #ifdef GLIBMM_VFUNCS_ENABLED
00205 #endif //GLIBMM_VFUNCS_ENABLED
00206
00207
00208 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00209 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00210
00211
00212 };
00213
00214 }
00215 }
00216
00217
00218 namespace Glib
00219 {
00225 Glib::RefPtr<Gnome::Gda::DataModelRow> wrap(GdaDataModelRow* object, bool take_copy = false);
00226 }
00227
00228
00229 #endif
00230