kopete/libkopete
#include <kopetepasswordwidget.h>
Public Slots | |
void | receivePassword (const QString &) |
Signals | |
void | changed () |
Public Member Functions | |
PasswordWidget (QWidget *parent=0) | |
PasswordWidget (Kopete::Password *from, QWidget *parent=0) | |
~PasswordWidget () | |
void | load (Kopete::Password *source) |
QString | password () const |
bool | remember () const |
void | save (Kopete::Password *target) |
void | setPassword (const QString &pass) |
void | setValidationProtocol (Kopete::Protocol *) |
bool | validate () |
Detailed Description
- Todo:
- This is NOT BC yet : it derives from a uic-generated class
Definition at line 38 of file kopetepasswordwidget.h.
Constructor & Destructor Documentation
Kopete::UI::PasswordWidget::PasswordWidget | ( | QWidget * | parent = 0 | ) |
Definition at line 39 of file kopetepasswordwidget.cpp.
|
explicit |
Creates a Kopete::PasswordWidget.
- Parameters
-
from The password to load the data for this widget from, or 0 if none parent The widget to nest this one inside
Definition at line 46 of file kopetepasswordwidget.cpp.
Kopete::UI::PasswordWidget::~PasswordWidget | ( | ) |
Definition at line 55 of file kopetepasswordwidget.cpp.
Member Function Documentation
|
signal |
Emitted when the information stored in this widget changes.
void Kopete::UI::PasswordWidget::load | ( | Kopete::Password * | source | ) |
Loads the information stored in source into the widget.
Definition at line 65 of file kopetepasswordwidget.cpp.
QString Kopete::UI::PasswordWidget::password | ( | ) | const |
Returns the string currently in the input box in the widget.
Definition at line 135 of file kopetepasswordwidget.cpp.
|
slot |
Definition at line 100 of file kopetepasswordwidget.cpp.
bool Kopete::UI::PasswordWidget::remember | ( | ) | const |
Returns a boolean indicating whether the Remember Password checkbox is checked.
Result is undefined if the Remember Password field is in the 'no change' state because the user has not (yet) opened the wallet.
Definition at line 140 of file kopetepasswordwidget.cpp.
void Kopete::UI::PasswordWidget::save | ( | Kopete::Password * | target | ) |
Saves the information in the widget into target.
Definition at line 111 of file kopetepasswordwidget.cpp.
void Kopete::UI::PasswordWidget::setPassword | ( | const QString & | pass | ) |
Set the password stored in the widget.
- Parameters
-
pass The text to place in the password field.
Definition at line 145 of file kopetepasswordwidget.cpp.
void Kopete::UI::PasswordWidget::setValidationProtocol | ( | Kopete::Protocol * | proto | ) |
Sets a protocol to use to validate entered passwords.
If no protocol is set validate() always returns true.
- Parameters
-
proto the protocol to use to validate entered passwords
Definition at line 60 of file kopetepasswordwidget.cpp.
bool Kopete::UI::PasswordWidget::validate | ( | ) |
Returns true if the information in the widget is valid, false if it is not.
Currently the only way this can fail is if the password is too long.
- Todo:
- this should return an enum of failures.
Definition at line 122 of file kopetepasswordwidget.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.