Source Code (Use browser search to find items of interest.)

Class Index

empath'EmpathAddressValidator (./kdepim/empath/ui/settings/EmpathSetupWizard.h:228)

class EmpathAddressValidator : public QValidator
{
    Q_OBJECT
        
    public:
        
        EmpathAddressValidator(QWidget *);
        ~EmpathAddressValidator();
        QValidator::State validate(QString &, int &) const;
};


#endif

// vim:ts=4:sw=4:tw=78


empath'EmpathAddressValidator::EmpathAddressValidator() (./kdepim/empath/ui/settings/EmpathSetupWizard.cpp:634)

EmpathAddressValidator::EmpathAddressValidator(QWidget * parent)
    :   QValidator(parent, "AddressValidator")
{
    // Empty.
}


empath'EmpathAddressValidator::~EmpathAddressValidator() (./kdepim/empath/ui/settings/EmpathSetupWizard.cpp:640)

EmpathAddressValidator::~EmpathAddressValidator()
{
    // Empty.
}

    QValidator::State
EmpathAddressValidator::validate(QString & s, int &) const
{
    if (s.contains('@'))
        return QValidator::Valid;
    
    return QValidator::Acceptable;
}

// vim:ts=4:sw=4:tw=78