00001
00002
00003 #ifndef _LIBGNOMEDBMM_DSNSPEC_H
00004 #define _LIBGNOMEDBMM_DSNSPEC_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 <gtkmm/box.h>
00032
00033 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00034 typedef struct _GnomeDbDsnSpec GnomeDbDsnSpec;
00035 typedef struct _GnomeDbDsnSpecClass GnomeDbDsnSpecClass;
00036 #endif
00037
00038
00039 namespace Gnome
00040 {
00041
00042 namespace Db
00043 { class DsnSpec_Class; }
00044
00045 }
00046 namespace Gnome
00047 {
00048
00049 namespace Db
00050 {
00051
00052
00053 class DsnSpec : public Gtk::VBox
00054 {
00055 public:
00056 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00057 typedef DsnSpec CppObjectType;
00058 typedef DsnSpec_Class CppClassType;
00059 typedef GnomeDbDsnSpec BaseObjectType;
00060 typedef GnomeDbDsnSpecClass BaseClassType;
00061 #endif
00062
00063 virtual ~DsnSpec();
00064
00065 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00066
00067 private:
00068 friend class DsnSpec_Class;
00069 static CppClassType dsnspec_class_;
00070
00071
00072 DsnSpec(const DsnSpec&);
00073 DsnSpec& operator=(const DsnSpec&);
00074
00075 protected:
00076 explicit DsnSpec(const Glib::ConstructParams& construct_params);
00077 explicit DsnSpec(GnomeDbDsnSpec* castitem);
00078
00079 #endif
00080
00081 public:
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 GnomeDbDsnSpec* gobj() { return reinterpret_cast<GnomeDbDsnSpec*>(gobject_); }
00089
00091 const GnomeDbDsnSpec* gobj() const { return reinterpret_cast<GnomeDbDsnSpec*>(gobject_); }
00092
00093
00094 public:
00095
00096 #ifdef GLIBMM_VFUNCS_ENABLED
00097 #endif //GLIBMM_VFUNCS_ENABLED
00098
00099 protected:
00100
00101 #ifdef GLIBMM_VFUNCS_ENABLED
00102 #endif //GLIBMM_VFUNCS_ENABLED
00103
00104
00105 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00106 virtual void on_changed();
00107 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00108
00109
00110 private:
00111
00112
00113 public:
00114 explicit DsnSpec(const Glib::ustring& provider);
00115
00116
00122 void set_provider(const Glib::ustring& provider);
00123
00124
00129 Glib::ustring get_specs() const;
00130
00133 void set_specs(const Glib::ustring& dsn);
00134
00135 #ifdef GLIBMM_PROPERTIES_ENABLED
00136
00142 Glib::PropertyProxy<Glib::ustring> property_provider() ;
00143 #endif //#GLIBMM_PROPERTIES_ENABLED
00144
00145 #ifdef GLIBMM_PROPERTIES_ENABLED
00146
00152 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_provider() const;
00153 #endif //#GLIBMM_PROPERTIES_ENABLED
00154
00155
00161 Glib::SignalProxy0< void > signal_changed();
00162
00163
00164 };
00165
00166 }
00167
00168 }
00169
00170
00171 namespace Glib
00172 {
00178 Gnome::Db::DsnSpec* wrap(GnomeDbDsnSpec* object, bool take_copy = false);
00179 }
00180
00181
00182 #endif
00183