wwWidgets Home · All Classes · Main Classes · Grouped Classes · Functions |
The QwwLoginBox class provides a login form with configurable set of fields for logging into different types of services. More...
#include <QwwLoginBox>
This class is not part of the Qt GUI Framework Edition.
Inherits QWidget.
enum | Field { NoFields, HostField, PortField, UserField, ..., ProxyField } |
flags | Fields |
|
QwwLoginBox ( QWidget * parent = 0 ) | |
Fields | fields () const |
QString | host () const |
bool | isProxyRepeatCorrect () const |
bool | isRepeatCorrect () const |
QString | password () const |
int | port () const |
bool | proxyIsEnabled () const |
bool | rememberPassword () const |
void | setFields ( Fields f ) |
void | setPort ( int p ) |
void | setProxyEnabled ( bool v ) |
void | setRememberPassword ( bool r ) |
QString | user () const |
void | setHost ( const QString & t ) |
void | setUser ( const QString & user, const QString & password = QString::null ) |
The QwwLoginBox class provides a login form with configurable set of fields for logging into different types of services.
Constant | Value | Description |
---|---|---|
QwwLoginBox::NoFields | 0x0 | No fields are visible |
QwwLoginBox::HostField | 0x1 | Host name |
QwwLoginBox::PortField | 0x2 | Port number |
QwwLoginBox::UserField | 0x4 | User (login) |
QwwLoginBox::PasswordField | 0x8 | Password |
QwwLoginBox::RepeatPasswordField | 0x10 | Password confirmation |
QwwLoginBox::RememberPasswordField | 0x20 | "Remember password" checkbox |
QwwLoginBox::ProxyField | 0x40 | Network proxy group |
The Fields type is a typedef for QFlags<Field>. It stores an OR combination of Field values.
This property holds this property holds the set of fields visible in the box.
Access functions:
Fields | fields () const |
void | setFields ( Fields f ) |
This property holds this property holds the host set in the box.
Access functions:
QString | host () const |
void | setHost ( const QString & t ) |
This property holds this property holds the port set in the box.
Access functions:
int | port () const |
void | setPort ( int p ) |
This property holds the property holds whether the proxy field is enabled.
Access functions:
bool | proxyIsEnabled () const |
void | setProxyEnabled ( bool v ) |
This property holds the property holds whether the "remember password" checkbox is visible and checked.
Access functions:
bool | rememberPassword () const |
void | setRememberPassword ( bool r ) |
This property holds this property holds the user set in the box.
Access functions:
QString | user () const |
Constructs a login box with a given parent.
Returns whether both password fields in the proxy section contain the same data.
Returns whether both password fields contain the same data.
Returns the password set in the box.
Sets the user and password set in the box.
See also user().
Copyright © 2007-2010 Witold Wysota | Trademarks | wwWidgets 1.0.0 |