FactDev  0.1
Gui::Widgets::CheckFields::CheckEmail Class Reference

The CheckEmail class Line Edit of email with a check icon. More...

#include <checkemail.h>

Inheritance diagram for Gui::Widgets::CheckFields::CheckEmail:
Gui::Widgets::CheckFields::CheckQLineEdit Gui::Widgets::CheckFields::ICheckField

Public Member Functions

 CheckEmail (QWidget *w=0, QPushButton *btn=0)
 CheckEmail::CheckEmail Construct a CheckMail. More...
 
bool check (const QString text)
 CheckEmail::check Check if the field email is valid. To be valid, an email address should be under this form: me@me.nosp@m..xx An email address need: More...
 
- Public Member Functions inherited from Gui::Widgets::CheckFields::CheckQLineEdit
 CheckQLineEdit (QWidget *parent=0, QPushButton *btn=0)
 CheckQLineEdit::CheckQLineEdit Construct a CheckQLineEdit. More...
 
void displayCheckValidFieldIcon ()
 CheckQLineEdit::displayCheckValidFieldIcon Display a valid icon into the field.
 
void displayCheckNoValidFieldIcon ()
 CheckQLineEdit::displayCheckNoValidFieldIcon Display a "no valid" icon into the field.
 
QPushButton * getBtnValid () const
 CheckQLineEdit::getBtnValid. More...
 
void setBtnValid (QPushButton *getBtnValid)
 CheckQLineEdit::setBtnValid. More...
 
bool isValid ()
 isValid Return true if the current field if valid More...
 

Additional Inherited Members

- Public Slots inherited from Gui::Widgets::CheckFields::CheckQLineEdit
void fieldTextChanged (const QString &text)
 CheckQLineEdit::fieldTextChanged For each new characater inputed or removed, displays an icon to show if the field is valid or not.
 

Detailed Description

The CheckEmail class Line Edit of email with a check icon.

Constructor & Destructor Documentation

Gui::Widgets::CheckFields::CheckEmail::CheckEmail ( QWidget *  w = 0,
QPushButton *  btn = 0 
)

CheckEmail::CheckEmail Construct a CheckMail.

Parameters
wQWidget linked to CheckEmail

Member Function Documentation

bool Gui::Widgets::CheckFields::CheckEmail::check ( const QString  text)
virtual

CheckEmail::check Check if the field email is valid. To be valid, an email address should be under this form: me@me.nosp@m..xx An email address need:

  • 1 character [A-Z] or [a-z] minimum before the character </i>
  • the character '@'
  • 1 character [A-Z] or [a-z] after the character</i>minimum and before the character .
  • 1 character [A-Z] or [a-z] minimum afer the character . Return TRUE if email address is valid, else FALSE
    Parameters
    textText to check
    Returns
    boolean Validity of the text

Implements Gui::Widgets::CheckFields::ICheckField.


The documentation for this class was generated from the following files: