00001
00002
00003 #ifndef _LIBGNOMEDBMM_LOGINDIALOG_H
00004 #define _LIBGNOMEDBMM_LOGINDIALOG_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/dialog.h>
00032 #include <libgnomedbmm/login.h>
00033
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _GnomeDbLoginDialog GnomeDbLoginDialog;
00036 typedef struct _GnomeDbLoginDialogClass GnomeDbLoginDialogClass;
00037 #endif
00038
00039
00040 namespace Gnome
00041 {
00042
00043 namespace Db
00044 { class LoginDialog_Class; }
00045
00046 }
00047 namespace Gnome
00048 {
00049
00050 namespace Db
00051 {
00052
00053
00054 class LoginDialog : public Gtk::Dialog
00055 {
00056 public:
00057 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00058 typedef LoginDialog CppObjectType;
00059 typedef LoginDialog_Class CppClassType;
00060 typedef GnomeDbLoginDialog BaseObjectType;
00061 typedef GnomeDbLoginDialogClass BaseClassType;
00062 #endif
00063
00064 virtual ~LoginDialog();
00065
00066 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00067
00068 private:
00069 friend class LoginDialog_Class;
00070 static CppClassType logindialog_class_;
00071
00072
00073 LoginDialog(const LoginDialog&);
00074 LoginDialog& operator=(const LoginDialog&);
00075
00076 protected:
00077 explicit LoginDialog(const Glib::ConstructParams& construct_params);
00078 explicit LoginDialog(GnomeDbLoginDialog* 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 GnomeDbLoginDialog* gobj() { return reinterpret_cast<GnomeDbLoginDialog*>(gobject_); }
00090
00092 const GnomeDbLoginDialog* gobj() const { return reinterpret_cast<GnomeDbLoginDialog*>(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 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00108
00109
00110 private:
00111
00112
00113 public:
00114 explicit LoginDialog(const Glib::ustring& title);
00115
00116
00121 bool run();
00122
00123
00126 Glib::ustring get_dsn() const;
00127
00130 Glib::ustring get_username() const;
00131
00134 Glib::ustring get_password() const;
00135
00136
00137
00142 Login* get_login_widget();
00143
00144
00149 const Login* get_login_widget() const;
00150
00151 #ifdef GLIBMM_PROPERTIES_ENABLED
00152
00158 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_dsn() const;
00159 #endif //#GLIBMM_PROPERTIES_ENABLED
00160
00161 ;
00162 #ifdef GLIBMM_PROPERTIES_ENABLED
00163
00169 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_password() const;
00170 #endif //#GLIBMM_PROPERTIES_ENABLED
00171
00172 ;
00173 #ifdef GLIBMM_PROPERTIES_ENABLED
00174
00180 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_username() const;
00181 #endif //#GLIBMM_PROPERTIES_ENABLED
00182
00183 ;
00184
00185
00186 };
00187
00188 }
00189
00190 }
00191
00192
00193 namespace Glib
00194 {
00200 Gnome::Db::LoginDialog* wrap(GnomeDbLoginDialog* object, bool take_copy = false);
00201 }
00202
00203
00204 #endif
00205