columnindex.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGDAMM_COLUMNINDEX_H
00004 #define _LIBGDAMM_COLUMNINDEX_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* $Id: columnindex.hg,v 1.2 2006/06/11 08:12:29 murrayc Exp $ */
00010 // -*- C++ -*- // this is for the .hg, I realize gensig puts one in
00011 
00012 /* datamodel.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 <glibmm/object.h>
00032 #include <libgda/gda-column-index.h>
00033 
00034 
00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00036 typedef struct _GdaColumnIndex GdaColumnIndex;
00037 typedef struct _GdaColumnIndexClass GdaColumnIndexClass;
00038 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00039 
00040 
00041 namespace Gnome
00042 {
00043 
00044 namespace Gda
00045 { class ColumnIndex_Class; } // namespace Gda
00046 
00047 } // namespace Gnome
00048 namespace Gnome
00049 {
00050 
00051 namespace Gda
00052 {
00053 
00059 enum Sorting
00060 {
00061   SORTING_ASCENDING,
00062   SORTING_DESCENDING
00063 };
00064 
00065 } // namespace Gda
00066 
00067 } // namespace Gnome
00068 
00069 
00070 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00071 namespace Glib
00072 {
00073 
00074 template <>
00075 class Value<Gnome::Gda::Sorting> : public Glib::Value_Enum<Gnome::Gda::Sorting>
00076 {
00077 public:
00078   static GType value_type() G_GNUC_CONST;
00079 };
00080 
00081 } // namespace Glib
00082 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00083 
00084 
00085 namespace Gnome
00086 {
00087 
00088 namespace Gda
00089 {
00090 
00091 
00092 class Row;
00093 
00097 class ColumnIndex : public Glib::Object
00098 {
00099    
00100 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00101 
00102 public:
00103   typedef ColumnIndex CppObjectType;
00104   typedef ColumnIndex_Class CppClassType;
00105   typedef GdaColumnIndex BaseObjectType;
00106   typedef GdaColumnIndexClass BaseClassType;
00107 
00108 private:  friend class ColumnIndex_Class;
00109   static CppClassType columnindex_class_;
00110 
00111 private:
00112   // noncopyable
00113   ColumnIndex(const ColumnIndex&);
00114   ColumnIndex& operator=(const ColumnIndex&);
00115 
00116 protected:
00117   explicit ColumnIndex(const Glib::ConstructParams& construct_params);
00118   explicit ColumnIndex(GdaColumnIndex* castitem);
00119 
00120 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00121 
00122 public:
00123   virtual ~ColumnIndex();
00124 
00125 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00126   static GType get_type()      G_GNUC_CONST;
00127   static GType get_base_type() G_GNUC_CONST;
00128 #endif
00129 
00131   GdaColumnIndex*       gobj()       { return reinterpret_cast<GdaColumnIndex*>(gobject_); }
00132 
00134   const GdaColumnIndex* gobj() const { return reinterpret_cast<GdaColumnIndex*>(gobject_); }
00135 
00137   GdaColumnIndex* gobj_copy();
00138 
00139 private:
00140 
00141 protected:
00142   ColumnIndex();
00143   ;
00144 
00145 public:
00146   
00147   static Glib::RefPtr<ColumnIndex> create();
00148 
00149 
00150   //TODO: Is this usable?:
00151   
00152   
00157   Glib::RefPtr<ColumnIndex> copy() const;
00158 
00159   //TODO: It is very odd to have a free() function for a reference-counted object:
00160   //_WRAP_METHOD(void gda_column_index_free() const, gda_column_index_free)
00161 
00162   
00166   Glib::ustring get_column_name() const;
00167   
00171   void set_column_name(const Glib::ustring& column_name);
00172   
00176   long get_defined_size() const;
00177   
00181   void set_defined_size(long size);
00182   
00186   Sorting get_sorting() const;
00187   
00191   void set_sorting(Sorting sorting);
00192   
00196   Glib::ustring get_references() const;
00197   
00201   void set_references( const Glib::ustring& ref);
00202 
00203 
00204 public:
00205 
00206 public:
00207   //C++ methods used to invoke GTK+ virtual functions:
00208 #ifdef GLIBMM_VFUNCS_ENABLED
00209 #endif //GLIBMM_VFUNCS_ENABLED
00210 
00211 protected:
00212   //GTK+ Virtual Functions (override these to change behaviour):
00213 #ifdef GLIBMM_VFUNCS_ENABLED
00214 #endif //GLIBMM_VFUNCS_ENABLED
00215 
00216   //Default Signal Handlers::
00217 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00218 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00219 
00220 
00221 };
00222 
00223 } // namespace Gda
00224 } // namespace Gnome
00225 
00226 
00227 namespace Gnome
00228 {
00229 
00230 namespace Gda
00231 {
00232 
00238 bool operator==(const ColumnIndex& lhs, const ColumnIndex& rhs);
00239 
00245 bool operator!=(const ColumnIndex& lhs, const ColumnIndex& rhs);
00246 
00247 
00248 } // namespace Gda
00249 
00250 } // namespace Gnome
00251 
00252 
00253 namespace Glib
00254 {
00260   Glib::RefPtr<Gnome::Gda::ColumnIndex> wrap(GdaColumnIndex* object, bool take_copy = false);
00261 }
00262 
00263 
00264 #endif /* _LIBGDAMM_COLUMNINDEX_H */
00265 

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