QwwLoginBox Class
The QwwLoginBox class provides a login form with configurable set of fields for logging into different types of services. More...
Header: | #include <QwwLoginBox> |
Public Types
enum | Field { NoFields, HostField, PortField, UserField, ..., ProxyField } |
flags | Fields |
Properties
|
Public Functions
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 |
Public Slots
void | setHost(const QString & t) |
void | setUser(const QString & user, const QString & password = QString::null) |
Detailed Description
The QwwLoginBox class provides a login form with configurable set of fields for logging into different types of services.
Member Type Documentation
enum QwwLoginBox::Field
flags QwwLoginBox::Fields
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.
Property Documentation
fields : Fields
This property holds this property holds the set of fields visible in the box.
Access functions:
Fields | fields() const |
void | setFields(Fields f) |
host : QString
This property holds this property holds the host set in the box.
Access functions:
QString | host() const |
void | setHost(const QString & t) |
port : int
This property holds this property holds the port set in the box.
Access functions:
int | port() const |
void | setPort(int p) |
proxyEnabled : bool
This property holds the property holds whether the proxy field is enabled.
Access functions:
bool | proxyIsEnabled() const |
void | setProxyEnabled(bool v) |
rememberPassword : bool
This property holds the property holds whether the "remember password" checkbox is visible and checked.
Access functions:
bool | rememberPassword() const |
void | setRememberPassword(bool r) |
user : const QString
This property holds this property holds the user set in the box.
Access functions:
QString | user() const |
Member Function Documentation
QwwLoginBox::QwwLoginBox(QWidget * parent = 0)
Constructs a login box with a given parent.
bool QwwLoginBox::isProxyRepeatCorrect() const
Returns whether both password fields in the proxy section contain the same data.
bool QwwLoginBox::isRepeatCorrect() const
Returns whether both password fields contain the same data.
QString QwwLoginBox::password() const
Returns the password set in the box.
void QwwLoginBox::setUser(const QString & user, const QString & password = QString::null) [slot]
Sets the user and password set in the box.
See also user().