Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

error.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGDAMM_ERROR_H
00004 #define _LIBGDAMM_ERROR_H
00005 
00006 #include <glibmm.h>
00007 
00008 /* $Id: error.hg,v 1.3 2002/04/19 08:55:18 murrayc Exp $ */
00009 // -*- C++ -*- // this is for the .hg, I realize gensig puts one in
00010 
00011 /* error.h
00012  *
00013  * Copyright 2001      Free Software Foundation
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 <libgda/gda-error.h>
00032 
00033 
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _GdaError GdaError;
00036 typedef struct _GdaErrorClass GdaErrorClass;
00037 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00038 
00039 
00040 namespace Gnome
00041 {
00042 
00043 namespace Gda
00044 { class Error_Class; } // namespace Gda
00045 
00046 } // namespace Gnome
00047 namespace Gnome
00048 {
00049 
00050 namespace Gda
00051 {
00052 
00053 
00054 class Error : public Glib::Object
00055 {
00056   
00057 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00058 
00059 public:
00060   typedef Error CppObjectType;
00061   typedef Error_Class CppClassType;
00062   typedef GdaError BaseObjectType;
00063   typedef GdaErrorClass BaseClassType;
00064 
00065 private:  friend class Error_Class;
00066   static CppClassType error_class_;
00067 
00068 private:
00069   // noncopyable
00070   Error(const Error&);
00071   Error& operator=(const Error&);
00072 
00073 protected:
00074   explicit Error(const Glib::ConstructParams& construct_params);
00075   explicit Error(GdaError* castitem);
00076 
00077 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00078 
00079 public:
00080   virtual ~Error();
00081 
00082 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00083   static GType get_type()      G_GNUC_CONST;
00084   static GType get_base_type() G_GNUC_CONST;
00085 #endif
00086 
00088   GdaError*       gobj()       { return reinterpret_cast<GdaError*>(gobject_); }
00089 
00091   const GdaError* gobj() const { return reinterpret_cast<GdaError*>(gobject_); }
00092 
00093   GdaError* gobj_copy();
00094 
00095 private:
00096 
00097 protected:
00098 
00099  Error();
00100 
00101 public:
00102   
00103   static Glib::RefPtr<Error> create();
00104 
00105 
00106   //_WRAP_METHOD(GList* gda_error_list_from_exception (CORBA_Environment * ev);
00107   //_WRAP_METHOD(void gda_error_to_exception (CORBA_Environment * ev);
00108   //_WRAP_METHOD(void gda_error_list_to_exception(GList * error_list, CORBA_Environment * ev), gda_error_list_to_exception)
00109   //_WRAP_METHOD(GNOME_Database_ErrorSeq* list_to_corba_seq (GList * error_list), gda_error_list_to_corba_seq)
00110 
00111   
00112   Glib::ustring get_description();
00113   
00114   void set_description(const Glib::ustring& description);
00115   
00116   const glong get_number();
00117   
00118   void set_number(glong number);
00119   
00120   Glib::ustring get_source();
00121   
00122   void set_source(const Glib::ustring& source);
00123   
00124   Glib::ustring get_sqlstate();
00125   
00126   void set_sqlstate(const Glib::ustring& sqlstate);
00127 
00128 
00129 public:
00130 
00131 public:
00132   //C++ methods used to invoke GTK+ virtual functions:
00133 
00134 protected:
00135   //GTK+ Virtual Functions (override these to change behaviour):
00136 
00137   //Default Signal Handlers::
00138 
00139 
00140 };
00141 
00142 } // namespace Gda
00143 } // namespace Gnome
00144 
00145 
00146 namespace Glib
00147 {
00149   Glib::RefPtr<Gnome::Gda::Error> wrap(GdaError* object, bool take_copy = false);
00150 }
00151 
00152 
00153 #endif /* _LIBGDAMM_ERROR_H */
00154 

Generated on Thu Mar 11 13:59:19 2004 for libgdamm by doxygen 1.3.6-20040222