wwWidgets Home · All Classes · Main Classes · Grouped Classes · Functions

QwwLoginBox Class Reference
[wwWidgets module]

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.


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 )

Additional Inherited Members


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

ConstantValueDescription
QwwLoginBox::NoFields0x0No fields are visible
QwwLoginBox::HostField0x1Host name
QwwLoginBox::PortField0x2Port number
QwwLoginBox::UserField0x4User (login)
QwwLoginBox::PasswordField0x8Password
QwwLoginBox::RepeatPasswordField0x10Password confirmation
QwwLoginBox::RememberPasswordField0x20"Remember password" checkbox
QwwLoginBox::ProxyField0x40Network 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().


Copyright © 2007-2010 Witold Wysota Trademarks
wwWidgets 1.0.0