00001
00002
00003 #ifndef _LIBGNOMEDBMM_LOGIN_H
00004 #define _LIBGNOMEDBMM_LOGIN_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 _GnomeDbLogin GnomeDbLogin;
00035 typedef struct _GnomeDbLoginClass GnomeDbLoginClass;
00036 #endif
00037
00038
00039 namespace Gnome
00040 {
00041
00042 namespace Db
00043 { class Login_Class; }
00044
00045 }
00046 namespace Gnome
00047 {
00048
00049 namespace Db
00050 {
00051
00052
00053 class Login : public Gtk::VBox
00054 {
00055 public:
00056 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00057 typedef Login CppObjectType;
00058 typedef Login_Class CppClassType;
00059 typedef GnomeDbLogin BaseObjectType;
00060 typedef GnomeDbLoginClass BaseClassType;
00061 #endif
00062
00063 virtual ~Login();
00064
00065 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00066
00067 private:
00068 friend class Login_Class;
00069 static CppClassType login_class_;
00070
00071
00072 Login(const Login&);
00073 Login& operator=(const Login&);
00074
00075 protected:
00076 explicit Login(const Glib::ConstructParams& construct_params);
00077 explicit Login(GnomeDbLogin* 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 GnomeDbLogin* gobj() { return reinterpret_cast<GnomeDbLogin*>(gobject_); }
00089
00091 const GnomeDbLogin* gobj() const { return reinterpret_cast<GnomeDbLogin*>(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 Login();
00114
00115
00118 Glib::ustring get_dsn() const;
00119
00123 void set_dsn(const Glib::ustring& dsn);
00124
00125
00129 Glib::ustring get_username() const;
00130
00134 void set_username(const Glib::ustring& username);
00135
00136
00139 Glib::ustring get_password() const;
00140
00144 void set_password(const Glib::ustring& password);
00145
00146
00152 void set_enable_create_button(bool enable = true);
00153
00158 bool get_enable_create_button() const;
00159
00160
00163 void set_show_dsn_selector(bool enable = true);
00164
00169 bool get_show_dsn_selector() const;
00170
00171 #ifdef GLIBMM_PROPERTIES_ENABLED
00172
00178 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_dsn() const;
00179 #endif //#GLIBMM_PROPERTIES_ENABLED
00180
00181
00182 #ifdef GLIBMM_PROPERTIES_ENABLED
00183
00189 Glib::PropertyProxy<bool> property_hiding_button() ;
00190 #endif //#GLIBMM_PROPERTIES_ENABLED
00191
00192 #ifdef GLIBMM_PROPERTIES_ENABLED
00193
00199 Glib::PropertyProxy_ReadOnly<bool> property_hiding_button() const;
00200 #endif //#GLIBMM_PROPERTIES_ENABLED
00201
00202 #ifdef GLIBMM_PROPERTIES_ENABLED
00203
00209 Glib::PropertyProxy<bool> property_hiding_dsn() ;
00210 #endif //#GLIBMM_PROPERTIES_ENABLED
00211
00212 #ifdef GLIBMM_PROPERTIES_ENABLED
00213
00219 Glib::PropertyProxy_ReadOnly<bool> property_hiding_dsn() const;
00220 #endif //#GLIBMM_PROPERTIES_ENABLED
00221
00222 #ifdef GLIBMM_PROPERTIES_ENABLED
00223
00229 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_username() const;
00230 #endif //#GLIBMM_PROPERTIES_ENABLED
00231
00232
00233 #ifdef GLIBMM_PROPERTIES_ENABLED
00234
00240 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_password() const;
00241 #endif //#GLIBMM_PROPERTIES_ENABLED
00242
00243
00244 };
00245
00246 }
00247
00248 }
00249
00250
00251 namespace Glib
00252 {
00258 Gnome::Db::Login* wrap(GnomeDbLogin* object, bool take_copy = false);
00259 }
00260
00261
00262 #endif
00263