00001
00002
00003 #ifndef _LIBGNOMEDBMM_DATASOURCESELECTOR_H
00004 #define _LIBGNOMEDBMM_DATASOURCESELECTOR_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/combobox.h>
00032
00033 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00034 typedef struct _GnomeDbDataSourceSelector GnomeDbDataSourceSelector;
00035 typedef struct _GnomeDbDataSourceSelectorClass GnomeDbDataSourceSelectorClass;
00036 #endif
00037
00038
00039 namespace Gnome
00040 {
00041
00042 namespace Db
00043 { class DataSourceSelector_Class; }
00044
00045 }
00046 namespace Gnome
00047 {
00048
00049 namespace Db
00050 {
00051
00052
00053 class DataSourceSelector : public Gtk::ComboBox
00054 {
00055 public:
00056 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00057 typedef DataSourceSelector CppObjectType;
00058 typedef DataSourceSelector_Class CppClassType;
00059 typedef GnomeDbDataSourceSelector BaseObjectType;
00060 typedef GnomeDbDataSourceSelectorClass BaseClassType;
00061 #endif
00062
00063 virtual ~DataSourceSelector();
00064
00065 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00066
00067 private:
00068 friend class DataSourceSelector_Class;
00069 static CppClassType datasourceselector_class_;
00070
00071
00072 DataSourceSelector(const DataSourceSelector&);
00073 DataSourceSelector& operator=(const DataSourceSelector&);
00074
00075 protected:
00076 explicit DataSourceSelector(const Glib::ConstructParams& construct_params);
00077 explicit DataSourceSelector(GnomeDbDataSourceSelector* 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 GnomeDbDataSourceSelector* gobj() { return reinterpret_cast<GnomeDbDataSourceSelector*>(gobject_); }
00089
00091 const GnomeDbDataSourceSelector* gobj() const { return reinterpret_cast<GnomeDbDataSourceSelector*>(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 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00107
00108
00109 private:
00110
00111
00112 public:
00113 explicit DataSourceSelector(const Glib::ustring& name);
00114
00115
00119 Glib::ustring get_dsn() const;
00120
00123 void set_dsn(const Glib::ustring& dsn);
00124
00125 #ifdef GLIBMM_PROPERTIES_ENABLED
00126
00132 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_source_name() const;
00133 #endif //#GLIBMM_PROPERTIES_ENABLED
00134
00135
00136 };
00137
00138 }
00139
00140 }
00141
00142
00143 namespace Glib
00144 {
00150 Gnome::Db::DataSourceSelector* wrap(GnomeDbDataSourceSelector* object, bool take_copy = false);
00151 }
00152
00153
00154 #endif
00155