kpimidentities
KPIMIdentities::Identity Class Reference
User identity information. More...
#include <identity.h>
Public Types | |
typedef QList< Identity > | List |
Public Member Functions | |
QString | bcc () const |
QString | dictionary () const |
QString | drafts () const |
QString | emailAddr () const |
QString | fcc () const |
QString | fullEmailAddr () const |
QString | fullName () const |
Identity (const QString &id=QString(), const QString &realName=QString(), const QString &emailAddr=QString(), const QString &organization=QString(), const QString &replyToAddress=QString()) | |
QString | identityName () const |
bool | isDefault () const |
bool | isNull () const |
bool | isXFaceEnabled () const |
bool | mailingAllowed () const |
bool | operator!= (const Identity &other) const |
bool | operator< (const Identity &other) const |
bool | operator<= (const Identity &other) const |
bool | operator== (const Identity &other) const |
bool | operator> (const Identity &other) const |
bool | operator>= (const Identity &other) const |
QString | organization () const |
QByteArray | pgpEncryptionKey () const |
QByteArray | pgpSigningKey () const |
void | populateMimeData (QMimeData *) |
QString | preferredCryptoMessageFormat () const |
QVariant | property (const QString &key) const |
void | readConfig (const KConfigGroup &) |
QString | replyToAddr () const |
void | setBcc (const QString &) |
void | setDictionary (const QString &) |
void | setDrafts (const QString &) |
void | setEmailAddr (const QString &) |
void | setFcc (const QString &) |
void | setFullName (const QString &) |
void | setIdentityName (const QString &name) |
void | setIsDefault (bool flag) |
void | setOrganization (const QString &) |
void | setPGPEncryptionKey (const QByteArray &key) |
void | setPGPSigningKey (const QByteArray &key) |
void | setPreferredCryptoMessageFormat (const QString &) |
void | setProperty (const QString &key, const QVariant &value) |
void | setReplyToAddr (const QString &) |
void | setSignature (const Signature &sig) |
void | setSMIMEEncryptionKey (const QByteArray &key) |
void | setSMIMESigningKey (const QByteArray &key) |
void | setTemplates (const QString &) |
void | setTransport (const QString &) |
void | setUoid (uint aUoid) |
void | setVCardFile (const QString &) |
void | setXFace (const QString &) |
void | setXFaceEnabled (const bool) |
Signature & | signature () |
bool | signatureIsInlinedHtml () const |
QString | signatureText (bool *ok=0) const |
QByteArray | smimeEncryptionKey () const |
QByteArray | smimeSigningKey () const |
QString | templates () const |
QString | transport () const |
uint | uoid () const |
QString | vCardFile () const |
void | writeConfig (KConfigGroup &) const |
QString | xface () const |
~Identity () | |
Static Public Member Functions | |
static bool | canDecode (const QMimeData *) |
static Identity | fromMimeData (const QMimeData *) |
static QString | mimeDataType () |
static const Identity & | null () |
Protected Member Functions | |
void | setSignatureFile (const QString &) |
void | setSignatureInlineText (const QString &) |
QString | signatureFile () const |
QString | signatureInlineText () const |
bool | signatureIsCommand () const |
bool | signatureIsInline () const |
bool | signatureIsPlainFile () const |
bool | useSignatureFile () const |
Protected Attributes | |
bool | mIsDefault |
QHash< QString, QVariant > | mPropertiesMap |
Signature | mSignature |
Friends | |
KPIMIDENTITIES_EXPORT QDataStream & | operator<< (QDataStream &stream, const KPIMIdentities::Identity &ident) |
KPIMIDENTITIES_EXPORT QDataStream & | operator>> (QDataStream &stream, KPIMIdentities::Identity &ident) |
Detailed Description
User identity information.Definition at line 76 of file identity.h.
Constructor & Destructor Documentation
Identity::Identity | ( | const QString & | id = QString() , |
|
const QString & | realName = QString() , |
|||
const QString & | emailAddr = QString() , |
|||
const QString & | organization = QString() , |
|||
const QString & | replyToAddress = QString() | |||
) | [explicit] |
Identity::~Identity | ( | ) |
Member Function Documentation
QString Identity::bcc | ( | ) | const |
QString Identity::dictionary | ( | ) | const |
QString Identity::drafts | ( | ) | const |
The folder where draft messages from this identity will be stored by default.
Definition at line 395 of file identity.cpp.
QString Identity::emailAddr | ( | ) | const |
QString Identity::fcc | ( | ) | const |
The folder where sent messages from this identity will be stored by default.
Definition at line 400 of file identity.cpp.
QString Identity::fullEmailAddr | ( | void | ) | const |
email address in the format "username <name@host>" suitable for the "From:" field of email messages.
Definition at line 255 of file identity.cpp.
QString Identity::fullName | ( | ) | const |
QString Identity::identityName | ( | ) | const |
bool Identity::isDefault | ( | ) | const |
bool Identity::isNull | ( | ) | const |
Returns true when the identity contains no values, all null values or only empty values.
Definition at line 71 of file identity.cpp.
bool Identity::mailingAllowed | ( | ) | const |
bool Identity::operator!= | ( | const Identity & | other | ) | const |
bool Identity::operator< | ( | const Identity & | other | ) | const |
bool Identity::operator<= | ( | const Identity & | other | ) | const |
bool Identity::operator== | ( | const Identity & | other | ) | const |
bool Identity::operator> | ( | const Identity & | other | ) | const |
bool Identity::operator>= | ( | const Identity & | other | ) | const |
QString Identity::organization | ( | ) | const |
QByteArray Identity::pgpEncryptionKey | ( | ) | const |
QByteArray Identity::pgpSigningKey | ( | ) | const |
QVariant Identity::property | ( | const QString & | key | ) | const |
void Identity::readConfig | ( | const KConfigGroup & | config | ) |
Read configuration from config.
Group must be preset (or use KConfigGroup). Called from IdentityManager.
Definition at line 89 of file identity.cpp.
QString Identity::replyToAddr | ( | ) | const |
void Identity::setIdentityName | ( | const QString & | name | ) |
void Identity::setIsDefault | ( | bool | flag | ) |
Set whether this identity is the default identity.
Since this affects all other identites, too (most notably, the old default identity), only the IdentityManager can change this. You should use
kmkernel->identityManager()->setAsDefault( name_of_default )instead.
Definition at line 547 of file identity.cpp.
void Identity::setProperty | ( | const QString & | key, | |
const QVariant & | value | |||
) |
Set random properties, when value
is empty (for QStrings) or null, the property is deleted.
Definition at line 442 of file identity.cpp.
void Identity::setUoid | ( | uint | aUoid | ) |
QString Identity::signatureFile | ( | ) | const [protected] |
QString Identity::signatureInlineText | ( | ) | const [protected] |
bool Identity::signatureIsCommand | ( | ) | const [protected] |
- Returns:
- true if the signature is read from the output of a command
Definition at line 410 of file identity.cpp.
bool Identity::signatureIsInline | ( | ) | const [protected] |
bool Identity::signatureIsInlinedHtml | ( | ) | const |
- Since:
- 4.1
- Returns:
- true if the inlined signature is html formatted
Definition at line 300 of file identity.cpp.
bool Identity::signatureIsPlainFile | ( | ) | const [protected] |
QString Identity::signatureText | ( | bool * | ok = 0 |
) | const |
- Returns:
- the signature with '--
' prepended to it if it is not present already. No newline in front of or after the signature is added. Ifok
is a valid bool pointer,ok
is set to true or false depending on whether the signature could successfully be obtained.
Definition at line 295 of file identity.cpp.
QByteArray Identity::smimeEncryptionKey | ( | ) | const |
QByteArray Identity::smimeSigningKey | ( | ) | const |
QString Identity::templates | ( | ) | const |
The folder where template messages from this identity will be stored by default.
Definition at line 390 of file identity.cpp.
QString Identity::transport | ( | ) | const |
The transport that is set for this identity.
Used to link a transport with an identity.
Definition at line 405 of file identity.cpp.
uint Identity::uoid | ( | ) | const |
bool Identity::useSignatureFile | ( | ) | const [protected] |
QString Identity::vCardFile | ( | ) | const |
void Identity::writeConfig | ( | KConfigGroup & | config | ) | const |
Write configuration to config.
Group must be preset (or use KConfigGroup). Called from IdentityManager.
Definition at line 101 of file identity.cpp.
QString Identity::xface | ( | ) | const |
The documentation for this class was generated from the following files: