• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kopete/libkopete

Kopete::UI::PasswordWidget

Kopete::UI::PasswordWidget Class Reference

#include <kopetepasswordwidget.h>

Inheritance diagram for Kopete::UI::PasswordWidget:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Richard Smith <kde@metafoo.co.uk> This widget displays an editable password, including the Remember password checkbox.

Todo:
This is NOT BC yet : it derives from a uic-generated class

Definition at line 38 of file 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 setValidationProtocol (Kopete::Protocol *)
void load (Kopete::Password *source)
void save (Kopete::Password *target)
bool validate ()
QString password () const
bool remember () const
void setPassword (const QString &pass)

Constructor & Destructor Documentation

Kopete::UI::PasswordWidget::PasswordWidget ( QWidget *  parent = 0  ) 

Definition at line 39 of file kopetepasswordwidget.cpp.

Kopete::UI::PasswordWidget::PasswordWidget ( Kopete::Password *  from,
QWidget *  parent = 0 
) [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

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.

See also:
Kopete::Protocol::validatePassword()
Parameters:
proto the protocol to use to validate entered passwords

Definition at line 60 of file kopetepasswordwidget.cpp.

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.

void Kopete::UI::PasswordWidget::save ( Kopete::Password *  target  ) 

Saves the information in the widget into target.

Definition at line 109 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 120 of file kopetepasswordwidget.cpp.

QString Kopete::UI::PasswordWidget::password (  )  const

Returns the string currently in the input box in the widget.

Definition at line 133 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 138 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 143 of file kopetepasswordwidget.cpp.

void Kopete::UI::PasswordWidget::changed (  )  [signal]

Emitted when the information stored in this widget changes.

void Kopete::UI::PasswordWidget::receivePassword ( const QString &  pwd  )  [slot]

Definition at line 98 of file kopetepasswordwidget.cpp.


The documentation for this class was generated from the following files:
  • kopetepasswordwidget.h
  • kopetepasswordwidget.cpp

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal