datamodelrow.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGDAMM_DATAMODELROW_H
00004 #define _LIBGDAMM_DATAMODELROW_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 // -*- C++ -*- // this is for the .hg, I realize gensig puts one in
00010 
00011 /* datamodelrow.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/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 /* DOXYGEN_SHOULD_SKIP_THIS */
00039 
00040 
00041 namespace Gnome
00042 {
00043 
00044 namespace Gda
00045 { class DataModelRow_Class; } // namespace Gda
00046 
00047 } // namespace Gnome
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   // noncopyable
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 /* DOXYGEN_SHOULD_SKIP_THIS */
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   // There is no create() method because there is no _new function in the C API either.
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   // TODO: Vfuncs
00193 
00194 
00195 public:
00196 
00197 public:
00198   //C++ methods used to invoke GTK+ virtual functions:
00199 #ifdef GLIBMM_VFUNCS_ENABLED
00200 #endif //GLIBMM_VFUNCS_ENABLED
00201 
00202 protected:
00203   //GTK+ Virtual Functions (override these to change behaviour):
00204 #ifdef GLIBMM_VFUNCS_ENABLED
00205 #endif //GLIBMM_VFUNCS_ENABLED
00206 
00207   //Default Signal Handlers::
00208 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00209 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00210 
00211 
00212 };
00213 
00214 } // namespace Gda
00215 } // namespace Gnome
00216 
00217 
00218 namespace Glib
00219 {
00225   Glib::RefPtr<Gnome::Gda::DataModelRow> wrap(GdaDataModelRow* object, bool take_copy = false);
00226 }
00227 
00228 
00229 #endif /* _LIBGDAMM_DATAMODELROW_H */
00230 

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