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

kopete/libkopete

  • Kopete
  • UI
  • PasswordWidget
Public Slots | Signals | Public Member Functions | List of all members
Kopete::UI::PasswordWidget Class Reference

#include <kopetepasswordwidget.h>

Inheritance diagram for Kopete::UI::PasswordWidget:
Inheritance graph
[legend]

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

Author
Richard Smith kde@m.nosp@m.etaf.nosp@m.oo.co.nosp@m..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.

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
fromThe password to load the data for this widget from, or 0 if none
parentThe 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::changed ( )
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.

void Kopete::UI::PasswordWidget::receivePassword ( const QString &  pwd)
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
passThe 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.

See also
Kopete::Protocol::validatePassword()
Parameters
protothe 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:
  • kopetepasswordwidget.h
  • kopetepasswordwidget.cpp
This file is part of the KDE documentation.
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.

kopete/libkopete

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

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal