libemailfunctions
KPIM Namespace Reference
Detailed Description
KPIM holds all kinds of functions specific to KDE PIM.The KPIM namespace hides away functions, enums, and other things that are KDE PIM specific and that we don't want to have polluting the global namespace.
Classes | |
class | IdMapper |
An Id Mapper maps Ids. More... | |
class | NetworkStatus |
This is a class for monitoring network status -- basically, the machine KDE is running on going from "online" mode to offline. More... | |
Enumerations | |
enum | EmailParseResult { AddressOk, AddressEmpty, UnexpectedEnd, UnbalancedParens, MissingDomainPart, UnclosedAngleAddr, UnopenedAngleAddr, TooManyAts, UnexpectedComma, TooFewAts, MissingLocalPart, UnbalancedQuote, NoAddressSpec, DisallowedChar, InvalidDisplayName } |
Functions | |
KDE_EXPORT QStringList | splitEmailAddrList (const QString &aStr) |
KDE_EXPORT EmailParseResult | splitAddress (const QCString &address, QCString &displayName, QCString &addrSpec, QCString &comment) |
KDE_EXPORT EmailParseResult | splitAddress (const QString &address, QString &displayName, QString &addrSpec, QString &comment) |
KDE_EXPORT EmailParseResult | isValidEmailAddress (const QString &aStr) |
KDE_EXPORT QString | emailParseResultToString (EmailParseResult errorCode) |
KDE_EXPORT bool | isValidSimpleEmailAddress (const QString &aStr) |
KDE_EXPORT QString | simpleEmailAddressErrorMsg () |
KDE_EXPORT QCString | getEmailAddress (const QCString &address) |
KDE_EXPORT QString | getEmailAddress (const QString &address) |
KDE_EXPORT QCString | getFirstEmailAddress (const QCString &addresses) |
KDE_EXPORT QString | getFirstEmailAddress (const QString &addresses) |
KDE_EXPORT bool | getNameAndMail (const QString &aStr, QString &name, QString &mail) |
KDE_EXPORT bool | compareEmail (const QString &email1, const QString &email2, bool matchName) |
KDE_EXPORT QString | normalizedAddress (const QString &displayName, const QString &addrSpec, const QString &comment) |
KDE_EXPORT QString | decodeIDN (const QString &addrSpec) |
KDE_EXPORT QString | encodeIDN (const QString &addrSpec) |
KDE_EXPORT QString | normalizeAddressesAndDecodeIDNs (const QString &addresses) |
KDE_EXPORT QString | normalizeAddressesAndEncodeIDNs (const QString &str) |
KDE_EXPORT QString | quoteNameIfNecessary (const QString &str) |
static unsigned char | ASCIIToLower (unsigned char ch) |
char * | kAsciiToLower (char *s) |
static unsigned char | ASCIIToUpper (unsigned char ch) |
char * | kAsciiToUpper (char *s) |
Enumeration Type Documentation
|
Result type for splitAddress, isValidEmailAddress.
|
Function Documentation
|
Compare two email addresses. If matchName is false, it just checks the email address, and returns true if this matches. If matchName is true, both the name and the email must be the same. |
|
Decodes the punycode domain part of the given addr-spec if it's an IDN.
|
|
Translate the enum errorcodes from emailParseResult into i18n'd strings that can be used for msg boxes.
|
|
Encodes the domain part of the given addr-spec in punycode if it's an IDN.
|
|
Locale-independent function to convert ASCII strings to lower case ASCII strings. This means that it affects only the ASCII characters A-Z.
Definition at line 36 of file kasciistringtools.cpp. |
|
Locale-independent function to convert ASCII strings to upper case ASCII strings. This means that it affects only the ASCII characters a-z.
Definition at line 53 of file kasciistringtools.cpp. |
|
Normalizes all email addresses in the given list and decodes all IDNs.
|
|
Normalizes all email addresses in the given list and encodes all IDNs in punycode.
|
|
Returns a normalized address built from the given parts. The normalized address is of one the following forms:
|
|
Add quote characters around the given string if it contains a character that makes that necessary, in an email name, such as ",".
|
|
Returns a i18n string to be used in msgboxes this allows for error messages to be the same across the board.
|
|
Split a comma separated list of email addresses.
|