00001
00002
00003 #ifndef _LIBGDAMM_COLUMNINDEX_H
00004 #define _LIBGDAMM_COLUMNINDEX_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 <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
00039
00040
00041 namespace Gnome
00042 {
00043
00044 namespace Gda
00045 { class ColumnIndex_Class; }
00046
00047 }
00048 namespace Gnome
00049 {
00050
00051 namespace Gda
00052 {
00053
00059 enum Sorting
00060 {
00061 SORTING_ASCENDING,
00062 SORTING_DESCENDING
00063 };
00064
00065 }
00066
00067 }
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 }
00082 #endif
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
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
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
00151
00152
00157 Glib::RefPtr<ColumnIndex> copy() const;
00158
00159
00160
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
00208 #ifdef GLIBMM_VFUNCS_ENABLED
00209 #endif //GLIBMM_VFUNCS_ENABLED
00210
00211 protected:
00212
00213 #ifdef GLIBMM_VFUNCS_ENABLED
00214 #endif //GLIBMM_VFUNCS_ENABLED
00215
00216
00217 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00218 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00219
00220
00221 };
00222
00223 }
00224 }
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 }
00249
00250 }
00251
00252
00253 namespace Glib
00254 {
00260 Glib::RefPtr<Gnome::Gda::ColumnIndex> wrap(GdaColumnIndex* object, bool take_copy = false);
00261 }
00262
00263
00264 #endif
00265