00001
00002
00003 #ifndef _LIBGNOMEDBMM_DSNEDITOR_H
00004 #define _LIBGNOMEDBMM_DSNEDITOR_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 <libgnomedbmm/dsnspec.h>
00032 #include <libgdamm/datasourceinfo.h>
00033
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _GnomeDbDsnEditor GnomeDbDsnEditor;
00036 typedef struct _GnomeDbDsnEditorClass GnomeDbDsnEditorClass;
00037 #endif
00038
00039
00040 namespace Gnome
00041 {
00042
00043 namespace Db
00044 { class DsnEditor_Class; }
00045
00046 }
00047 namespace Gnome
00048 {
00049
00050 namespace Db
00051 {
00052
00053
00054 class DsnEditor : public Gtk::VBox
00055 {
00056 public:
00057 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00058 typedef DsnEditor CppObjectType;
00059 typedef DsnEditor_Class CppClassType;
00060 typedef GnomeDbDsnEditor BaseObjectType;
00061 typedef GnomeDbDsnEditorClass BaseClassType;
00062 #endif
00063
00064 virtual ~DsnEditor();
00065
00066 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00067
00068 private:
00069 friend class DsnEditor_Class;
00070 static CppClassType dsneditor_class_;
00071
00072
00073 DsnEditor(const DsnEditor&);
00074 DsnEditor& operator=(const DsnEditor&);
00075
00076 protected:
00077 explicit DsnEditor(const Glib::ConstructParams& construct_params);
00078 explicit DsnEditor(GnomeDbDsnEditor* castitem);
00079
00080 #endif
00081
00082 public:
00083 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00084 static GType get_type() G_GNUC_CONST;
00085 static GType get_base_type() G_GNUC_CONST;
00086 #endif
00087
00089 GnomeDbDsnEditor* gobj() { return reinterpret_cast<GnomeDbDsnEditor*>(gobject_); }
00090
00092 const GnomeDbDsnEditor* gobj() const { return reinterpret_cast<GnomeDbDsnEditor*>(gobject_); }
00093
00094
00095 public:
00096
00097 #ifdef GLIBMM_VFUNCS_ENABLED
00098 #endif //GLIBMM_VFUNCS_ENABLED
00099
00100 protected:
00101
00102 #ifdef GLIBMM_VFUNCS_ENABLED
00103 #endif //GLIBMM_VFUNCS_ENABLED
00104
00105
00106 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00107 virtual void on_changed();
00108 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00109
00110
00111 private:
00112
00113
00114 public:
00115 DsnEditor();
00116
00117
00118 Gda::DataSourceInfo get_dsn() const;
00119
00120 void set_dsn(const Gda::DataSourceInfo& info);
00121
00122
00128 Glib::SignalProxy0< void > signal_changed();
00129 ;
00130
00131
00132 };
00133
00134 }
00135
00136 }
00137
00138
00139 namespace Glib
00140 {
00146 Gnome::Db::DsnEditor* wrap(GnomeDbDsnEditor* object, bool take_copy = false);
00147 }
00148
00149
00150 #endif
00151