KCodecs

kemailaddress.h File Reference
#include <QUrl>
#include <QByteArray>
#include <QStringList>
#include <kcodecs_export.h>
Include dependency graph for kemailaddress.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  KEmailAddress
 

Enumerations

enum  KEmailAddress::EmailParseResult {
  KEmailAddress::AddressOk , KEmailAddress::AddressEmpty , KEmailAddress::UnexpectedEnd , KEmailAddress::UnbalancedParens ,
  KEmailAddress::MissingDomainPart , KEmailAddress::UnclosedAngleAddr , KEmailAddress::UnopenedAngleAddr , KEmailAddress::TooManyAts ,
  KEmailAddress::UnexpectedComma , KEmailAddress::TooFewAts , KEmailAddress::MissingLocalPart , KEmailAddress::UnbalancedQuote ,
  NoAddressSpec , KEmailAddress::DisallowedChar , KEmailAddress::InvalidDisplayName , KEmailAddress::TooFewDots
}
 

Functions

KCODECS_EXPORT bool KEmailAddress::compareEmail (const QString &email1, const QString &email2, bool matchName)
 
KCODECS_EXPORT QString KEmailAddress::decodeMailtoUrl (const QUrl &mailtoUrl)
 
KCODECS_EXPORT QString KEmailAddress::emailParseResultToString (EmailParseResult errorCode)
 
KCODECS_EXPORT QUrl KEmailAddress::encodeMailtoUrl (const QString &mailbox)
 
KCODECS_EXPORT QByteArray KEmailAddress::extractEmailAddress (const QByteArray &address)
 
KCODECS_EXPORT QByteArray KEmailAddress::extractEmailAddress (const QByteArray &address, QString &errorMessage)
 
KCODECS_EXPORT QString KEmailAddress::extractEmailAddress (const QString &address)
 
KCODECS_EXPORT QString KEmailAddress::extractEmailAddress (const QString &address, QString &errorMessage)
 
KCODECS_EXPORT bool KEmailAddress::extractEmailAddressAndName (const QString &aStr, QString &mail, QString &name)
 
KCODECS_EXPORT QByteArray KEmailAddress::firstEmailAddress (const QByteArray &addresses)
 
KCODECS_EXPORT QByteArray KEmailAddress::firstEmailAddress (const QByteArray &addresses, QString &errorMessage)
 
KCODECS_EXPORT QString KEmailAddress::firstEmailAddress (const QString &addresses)
 
KCODECS_EXPORT QString KEmailAddress::firstEmailAddress (const QString &addresses, QString &errorMessage)
 
KCODECS_EXPORT QString KEmailAddress::fromIdn (const QString &addrSpec)
 
KCODECS_EXPORT EmailParseResult KEmailAddress::isValidAddress (const QString &aStr)
 
KCODECS_EXPORT EmailParseResult KEmailAddress::isValidAddressList (const QString &aStr, QString &badAddr)
 
KCODECS_EXPORT bool KEmailAddress::isValidSimpleAddress (const QString &aStr)
 
KCODECS_EXPORT QString KEmailAddress::normalizeAddressesAndDecodeIdn (const QString &addresses)
 
KCODECS_EXPORT QString KEmailAddress::normalizeAddressesAndEncodeIdn (const QString &str)
 
KCODECS_EXPORT QString KEmailAddress::normalizedAddress (const QString &displayName, const QString &addrSpec, const QString &comment=QString())
 
KCODECS_EXPORT QString KEmailAddress::quoteNameIfNecessary (const QString &str)
 
KCODECS_EXPORT QString KEmailAddress::simpleEmailAddressErrorMsg ()
 
KCODECS_EXPORT EmailParseResult KEmailAddress::splitAddress (const QByteArray &address, QByteArray &displayName, QByteArray &addrSpec, QByteArray &comment)
 
KCODECS_EXPORT EmailParseResult KEmailAddress::splitAddress (const QString &address, QString &displayName, QString &addrSpec, QString &comment)
 
KCODECS_EXPORT QStringList KEmailAddress::splitAddressList (const QString &aStr)
 
KCODECS_EXPORT QString KEmailAddress::toIdn (const QString &addrSpec)
 

Detailed Description

This file provides static methods for email address validation.

Email address validation methods.

Author
Matt Douhan <matt@.nosp@m.frui.nosp@m.tsala.nosp@m.d.or.nosp@m.g>

Definition in file kemailaddress.h.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.