dicttype.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGDAMM_DICTTYPE_H
00004 #define _LIBGDAMM_DICTTYPE_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 /* $Id: dicttype.hg,v 1.2 2006/11/08 00:07:37 murrayc Exp $ */
00010 // -*- C++ -*- // this is for the .hg, I realize gensig puts one in
00011 
00012 /* dicttype.h
00013  *
00014  * Copyright 2006 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 <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 /* DOXYGEN_SHOULD_SKIP_THIS */
00039 
00040 
00041 namespace Gnome
00042 {
00043 
00044 namespace Gda
00045 { class DictType_Class; } // namespace Gda
00046 
00047 } // namespace Gnome
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   // noncopyable
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 /* DOXYGEN_SHOULD_SKIP_THIS */
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   //TODO: Use ListHandle or similar:
00150   //_WRAP_METHOD(const GSList* get_synonyms(), gda_dict_type_get_synonyms)
00151 
00152   
00155   void clear_synonyms();
00156 
00157  //TODO: properties, signals, vfuncs.
00158 
00159 
00160 public:
00161 
00162 public:
00163   //C++ methods used to invoke GTK+ virtual functions:
00164 #ifdef GLIBMM_VFUNCS_ENABLED
00165 #endif //GLIBMM_VFUNCS_ENABLED
00166 
00167 protected:
00168   //GTK+ Virtual Functions (override these to change behaviour):
00169 #ifdef GLIBMM_VFUNCS_ENABLED
00170 #endif //GLIBMM_VFUNCS_ENABLED
00171 
00172   //Default Signal Handlers::
00173 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00174 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00175 
00176 
00177 };
00178 
00179 } // namespace Gda
00180 } // namespace Gnome
00181 
00182 
00183 namespace Glib
00184 {
00190   Glib::RefPtr<Gnome::Gda::DictType> wrap(GdaDictType* object, bool take_copy = false);
00191 }
00192 
00193 
00194 #endif /* _LIBGDAMM_DICTTYPE_H */
00195 

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