Gnome::Db::Login Class Reference

#include <login.h>

Inheritance diagram for Gnome::Db::Login:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~Login ()
GnomeDbLogin* gobj ()
 Provides access to the underlying C GtkObject.
const GnomeDbLogin* gobj () const
 Provides access to the underlying C GtkObject.
 Login ()
Glib::ustring get_dsn () const
void set_dsn (const Glib::ustring& dsn)
 Set the data source name on the given Gnome::DbLogin widget.
Glib::ustring get_username () const
 Get the value currently entered in the username text entry.
void set_username (const Glib::ustring& username)
 Sets the user name to be displayed in the given Gnome::DbLogin widget.
Glib::ustring get_password () const
void set_password (const Glib::ustring& password)
 Sets the password to be displayed in the given Gnome::DbLogin widget.
void set_enable_create_button (bool enable=true)
 Enable/disable the button allowing the user to create new data sources from the login widget.
bool get_enable_create_button () const
 Tell if the the button allowing the user to create new data sources is shown or not.
void set_show_dsn_selector (bool enable=true)
 Show/hide the combo box which allows to select the datasource to log into.
bool get_show_dsn_selector () const
 Tells if the combo box which allows to select the datasource to log into is shown or not.

Related Functions

(Note that these are not member functions.)

Gnome::Db::Loginwrap (GnomeDbLogin* object, bool take_copy=false)

Constructor & Destructor Documentation

virtual Gnome::Db::Login::~Login (  )  [virtual]

Gnome::Db::Login::Login (  ) 


Member Function Documentation

Glib::ustring Gnome::Db::Login::get_dsn (  )  const

bool Gnome::Db::Login::get_enable_create_button (  )  const

Tell if the the button allowing the user to create new data sources is shown or not.

This button is disabled by default,

Returns:
true if the button is shown.

Glib::ustring Gnome::Db::Login::get_password (  )  const

bool Gnome::Db::Login::get_show_dsn_selector (  )  const

Tells if the combo box which allows to select the datasource to log into is shown or not.

Returns:
true if the combo box is shown.

Glib::ustring Gnome::Db::Login::get_username (  )  const

Get the value currently entered in the username text entry.

Returns:
The username being entered in the login widget.

const GnomeDbLogin* Gnome::Db::Login::gobj (  )  const [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::VBox.

GnomeDbLogin* Gnome::Db::Login::gobj (  )  [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::VBox.

void Gnome::Db::Login::set_dsn ( const Glib::ustring dsn  ) 

Set the data source name on the given Gnome::DbLogin widget.

Parameters:
dsn Data source name.

void Gnome::Db::Login::set_enable_create_button ( bool  enable = true  ) 

Enable/disable the button allowing the user to create new data sources from the login widget.

This button is disabled by default, and when enabled, allows the user to start the database properties configuration applet.

Parameters:
enable Flag to enable/disable the button.

void Gnome::Db::Login::set_password ( const Glib::ustring password  ) 

Sets the password to be displayed in the given Gnome::DbLogin widget.

Parameters:
password Password to display in the widget.

void Gnome::Db::Login::set_show_dsn_selector ( bool  enable = true  ) 

Show/hide the combo box which allows to select the datasource to log into.

void Gnome::Db::Login::set_username ( const Glib::ustring username  ) 

Sets the user name to be displayed in the given Gnome::DbLogin widget.

Parameters:
username Username to display in the widget.


Friends And Related Function Documentation

Gnome::Db::Login* wrap ( GnomeDbLogin *  object,
bool  take_copy = false 
) [related]

Parameters:
object The C instance
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:
Generated on Mon Feb 12 16:49:09 2007 for libgnomedbmm by  doxygen 1.4.7