KIdentityManagementCore::Identity Class
class KIdentityManagementCore::IdentityUser identity information. More...
| Header: | #include <KIdentityManagementCore/Identity> |
| CMake: | find_package(KPim6IdentityManagementCore REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::IdentityManagementCore) |
Properties
|
|
Public Functions
| Identity(const QString &id = QString(), const QString &realName = QString(), const QString &emailAddr = QString(), const QString &organization = QString(), const QString &replyToAddress = QString()) | |
| const QStringList | activities() const |
| bool | attachVcard() const |
| QString | autocorrectionLanguage() const |
| bool | autocryptEnabled() const |
| bool | autocryptPrefer() const |
| QString | bcc() const |
| QString | cc() const |
| QString | defaultDomainName() const |
| QString | dictionary() const |
| bool | disabledFcc() const |
(since 6.5) bool | disabledSpam() const |
| QString | drafts() const |
| const QStringList | emailAliases() const |
| bool | enabledActivities() const |
| bool | encryptionOverride() const |
| QString | face() const |
| QString | fcc() const |
| QString | fullEmailAddr() const |
| QString | fullName() const |
| QString | identityName() const |
| bool | isDefault() const |
| bool | isFaceEnabled() const |
| bool | isNull() const |
| bool | isXFaceEnabled() const |
| bool | mailingAllowed() const |
| bool | matchesEmailAddress(const QString &addr) const |
| QString | organization() const |
| bool | pgpAutoEncrypt() const |
| bool | pgpAutoSign() const |
| QByteArray | pgpEncryptionKey() const |
| QByteArray | pgpSigningKey() const |
| void | populateMimeData(QMimeData *) const |
| QString | preferredCryptoMessageFormat() const |
| QString | primaryEmailAddress() const |
| QVariant | property(const QString &key) const |
| void | readConfig(const KConfigGroup &group) |
| QString | replyToAddr() const |
| void | setActivities(const QStringList &a) |
| void | setAttachVcard(bool attach) |
| void | setAutocorrectionLanguage(const QString &language) |
| void | setAutocryptEnabled(const bool) |
| void | setAutocryptPrefer(const bool) |
| void | setBcc(const QString &) |
| void | setCc(const QString &) |
| void | setDefaultDomainName(const QString &domainName) |
| void | setDictionary(const QString &) |
| void | setDisabledFcc(bool) |
(since 6.5) void | setDisabledSpam(bool disable) |
| void | setDrafts(const QString &) |
| void | setEmailAliases(const QStringList &aliases) |
| void | setEnabledActivities(bool a) |
| void | setEncryptionOverride(const bool) |
| void | setFace(const QString &) |
| void | setFaceEnabled(bool) |
| 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 | setPgpAutoEncrypt(bool) |
| void | setPgpAutoSign(bool) |
| void | setPreferredCryptoMessageFormat(const QString &) |
| void | setPrimaryEmailAddress(const QString &email) |
| void | setProperty(const QString &key, const QVariant &value) |
| void | setReplyToAddr(const QString &) |
| void | setSMIMEEncryptionKey(const QByteArray &key) |
| void | setSMIMESigningKey(const QByteArray &key) |
| void | setSignature(const KIdentityManagementCore::Signature &sig) |
| void | setSpam(const QString &) |
| void | setTemplates(const QString &) |
| void | setTransport(const QString &) |
| void | setUoid(uint aUoid) |
| void | setVCardFile(const QString &) |
| void | setWarnNotEncrypt(const bool) |
| void | setWarnNotSign(const bool) |
| void | setXFace(const QString &) |
| void | setXFaceEnabled(bool) |
| KIdentityManagementCore::Signature & | signature() |
| const KIdentityManagementCore::Signature & | signature() const |
| bool | signatureIsInlinedHtml() const |
| QString | signatureText(bool *ok = nullptr) const |
| QByteArray | smimeEncryptionKey() const |
| QByteArray | smimeSigningKey() const |
| QString | spam() const |
| QString | templates() const |
| QString | transport() const |
| uint | uoid() const |
| QString | vCardFile() const |
| bool | warnNotEncrypt() const |
| bool | warnNotSign() const |
| void | writeConfig(KConfigGroup &group) const |
| QString | xface() const |
| bool | operator!=(const KIdentityManagementCore::Identity &other) const |
| bool | operator<(const KIdentityManagementCore::Identity &other) const |
| bool | operator<=(const KIdentityManagementCore::Identity &other) const |
| bool | operator==(const KIdentityManagementCore::Identity &other) const |
| bool | operator>(const KIdentityManagementCore::Identity &other) const |
| bool | operator>=(const KIdentityManagementCore::Identity &other) const |
Static Public Members
| bool | canDecode(const QMimeData *) |
| KIdentityManagementCore::Identity | fromMimeData(const QMimeData *) |
| QString | mimeDataType() |
| const KIdentityManagementCore::Identity & | null() |
Protected 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 |
| QString | verifyAkonadiId(const QString &str) const |
Detailed Description
Property Documentation
attachVcard : bool
This property holds whether the vCard of this identity should be attached to outgoing mail.
Access functions:
| bool | attachVcard() const |
| void | setAttachVcard(bool attach) |
autocorrectionLanguage : QString
This property holds the default language for spell checking of this identity.
Access functions:
| QString | autocorrectionLanguage() const |
| void | setAutocorrectionLanguage(const QString &language) |
autocryptEnabled : bool
This property holds whether Autocrypt is enabled for this identity.
Access functions:
| bool | autocryptEnabled() const |
| void | setAutocryptEnabled(const bool) |
autocryptPrefer : bool
This property holds whether Autocrypt is preferred for this identity.
Access functions:
| bool | autocryptPrefer() const |
| void | setAutocryptPrefer(const bool) |
bcc : QString
This property holds the email addresses for the BCC: field.
Access functions:
cc : QString
This property holds the email addresses for the CC: field.
Access functions:
defaultDomainName : QString
This property holds the default domain name.
Access functions:
| QString | defaultDomainName() const |
| void | setDefaultDomainName(const QString &domainName) |
dictionary : QString
This property holds the dictionary which should be used for spell checking.
Access functions:
| QString | dictionary() const |
| void | setDictionary(const QString &) |
disabledFcc : bool
This property holds whether Fcc is disabled for this identity.
Access functions:
| bool | disabledFcc() const |
| void | setDisabledFcc(bool) |
disabledSpam : bool
This property holds whether Spam is disabled for this identity.
Access functions:
| bool | disabledSpam() const |
| void | setDisabledSpam(bool disable) |
drafts : QString
This property holds the folder where draft messages from this identity will be stored by default.
Access functions:
emailAliases : QStringList
This property holds the email address aliases.
Access functions:
| const QStringList | emailAliases() const |
| void | setEmailAliases(const QStringList &aliases) |
encryptionOverride : bool
This property holds whether the warnNotSign and warnNotEncrypt settings override the global configuration.
Access functions:
| bool | encryptionOverride() const |
| void | setEncryptionOverride(const bool) |
face : QString
This property holds the Face header for this identity.
Access functions:
fcc : QString
This property holds the folder where sent messages from this identity will be stored by default.
Access functions:
[read-only] fullEmailAddr : QString
This property holds the email address in the format "username <name@host>".
Access functions:
| QString | fullEmailAddr() const |
fullName : QString
This property holds the full name of the user.
Access functions:
| QString | fullName() const |
| void | setFullName(const QString &) |
identityName : QString
This property holds the identity/nickname for this collection.
Access functions:
| QString | identityName() const |
| void | setIdentityName(const QString &name) |
isFaceEnabled : bool
This property holds whether the Face header is enabled for this identity.
Access functions:
| bool | isFaceEnabled() const |
| void | setFaceEnabled(bool) |
[read-only] isNull : bool
This property holds whether the identity contains no values, all null values or only empty values.
Access functions:
| bool | isNull() const |
isXFaceEnabled : bool
This property holds whether the X-Face header is enabled for this identity.
Access functions:
| bool | isXFaceEnabled() const |
| void | setXFaceEnabled(bool) |
[read-only] mailingAllowed : bool
This property holds whether there are enough values set to allow mailing.
Access functions:
| bool | mailingAllowed() const |
organization : QString
This property holds the user's organization (optional).
Access functions:
| QString | organization() const |
| void | setOrganization(const QString &) |
pgpAutoEncrypt : bool
This property holds whether messages sent by this identity are encrypted by default.
Access functions:
| bool | pgpAutoEncrypt() const |
| void | setPgpAutoEncrypt(bool) |
pgpAutoSign : bool
This property holds whether messages sent by this identity are signed by default.
Access functions:
| bool | pgpAutoSign() const |
| void | setPgpAutoSign(bool) |
pgpEncryptionKey : QByteArray
This property holds the user's OpenPGP encryption key.
Access functions:
| QByteArray | pgpEncryptionKey() const |
| void | setPGPEncryptionKey(const QByteArray &key) |
pgpSigningKey : QByteArray
This property holds the user's OpenPGP signing key.
Access functions:
| QByteArray | pgpSigningKey() const |
| void | setPGPSigningKey(const QByteArray &key) |
preferredCryptoMessageFormat : QString
This property holds the preferred crypto message format for this identity.
Access functions:
| QString | preferredCryptoMessageFormat() const |
| void | setPreferredCryptoMessageFormat(const QString &) |
primaryEmailAddress : QString
This property holds the primary email address (without the user name - only name@host).
Access functions:
| QString | primaryEmailAddress() const |
| void | setPrimaryEmailAddress(const QString &email) |
replyToAddr : QString
This property holds the email address for the ReplyTo: field.
Access functions:
| QString | replyToAddr() const |
| void | setReplyToAddr(const QString &) |
signature : Signature
This property holds the signature of this identity.
Access functions:
| KIdentityManagementCore::Signature & | signature() |
| const KIdentityManagementCore::Signature & | signature() const |
| void | setSignature(const KIdentityManagementCore::Signature &sig) |
[read-only] signatureIsInlinedHtml : bool
This property holds whether the inlined signature is HTML formatted.
Access functions:
| bool | signatureIsInlinedHtml() const |
[read-only] signatureText : QString
This property holds the text of the signature of this identity.
Access functions:
| QString | signatureText(bool *ok = nullptr) const |
smimeEncryptionKey : QByteArray
This property holds the user's S/MIME encryption key.
Access functions:
| QByteArray | smimeEncryptionKey() const |
| void | setSMIMEEncryptionKey(const QByteArray &key) |
smimeSigningKey : QByteArray
This property holds the user's S/MIME signing key.
Access functions:
| QByteArray | smimeSigningKey() const |
| void | setSMIMESigningKey(const QByteArray &key) |
spam : QString
This property holds the folder where spam messages from this identity will be stored by default.
Access functions:
templates : QString
This property holds the folder where template messages from this identity will be stored by default.
Access functions:
| QString | templates() const |
| void | setTemplates(const QString &) |
transport : QString
This property holds the transport that is set for this identity.
Access functions:
| QString | transport() const |
| void | setTransport(const QString &) |
[read-only] uoid : const uint
This property holds the Unique Object Identifier for this identity.
Access functions:
| uint | uoid() const |
vCardFile : QString
This property holds the vCard to attach to outgoing emails.
Access functions:
| QString | vCardFile() const |
| void | setVCardFile(const QString &) |
warnNotEncrypt : bool
This property holds whether to warn if parts of the message are not encrypted.
Access functions:
| bool | warnNotEncrypt() const |
| void | setWarnNotEncrypt(const bool) |
warnNotSign : bool
This property holds whether to warn if parts of the message are not signed.
Access functions:
| bool | warnNotSign() const |
| void | setWarnNotSign(const bool) |
xface : QString
This property holds the X-Face header for this identity.
Access functions:
Member Function Documentation
[explicit] Identity::Identity(const QString &id = QString(), const QString &realName = QString(), const QString &emailAddr = QString(), const QString &organization = QString(), const QString &replyToAddress = QString())
Constructs an identity named id with the full name realName, the email address emailAddr, the organization organization and the Reply-To address replyToAddress.
const QStringList Identity::activities() const
Returns the list of activities for this identity
See also setActivities().
bool Identity::attachVcard() const
Returns true if the Vcard of this identity should be attached to outgoing mail.
Note: Getter function for property attachVcard.
See also setAttachVcard().
QString Identity::autocorrectionLanguage() const
Returns The default language for spell checking of this identity.
Note: Getter function for property autocorrectionLanguage.
See also setAutocorrectionLanguage().
bool Identity::autocryptEnabled() const
Returns true if Autocrypt is enabled for this identity.
Note: Getter function for property autocryptEnabled.
See also setAutocryptEnabled().
bool Identity::autocryptPrefer() const
Returns true if Autocrypt is preferred for this identity.
Note: Getter function for property autocryptPrefer.
See also setAutocryptPrefer().
QString Identity::bcc() const
Returns The email addresses for the BCC: field
Note: Getter function for property bcc.
See also setBcc().
[static] bool Identity::canDecode(const QMimeData *)
Returns true if the given MIME data can be decoded as an Identity
QString Identity::cc() const
Returns The email addresses for the CC: field
Note: Getter function for property cc.
See also setCc().
QString Identity::defaultDomainName() const
Returns The default domain name
Note: Getter function for property defaultDomainName.
See also setDefaultDomainName().
QString Identity::dictionary() const
Dictionary which should be used for spell checking
Note that this is the localized language name (e.g. "British English"), _not_ the language code or dictionary name!
Note: Getter function for property dictionary.
See also setDictionary().
bool Identity::disabledFcc() const
Returns true if Fcc is disabled for this identity.
Note: Getter function for property disabledFcc.
See also setDisabledFcc().
[since 6.5] bool Identity::disabledSpam() const
Returns true if Spam is disabled for this identity.
Note: Getter function for property disabledSpam.
This function was introduced in 6.5.
See also setDisabledSpam().
QString Identity::drafts() const
The folder where draft messages from this identity will be stored by default.
Note: Getter function for property drafts.
See also setDrafts().
const QStringList Identity::emailAliases() const
The email address aliases
Note: Getter function for property emailAliases.
See also setEmailAliases().
bool Identity::enabledActivities() const
Returns whether activities are enabled for this identity
See also setEnabledActivities().
bool Identity::encryptionOverride() const
Returns true if the warnNotSign and warnNotEncrypt identity configuration should overwrite the global app-wide configuration.
Note: Getter function for property encryptionOverride.
See also setEncryptionOverride().
QString Identity::face() const
a Face header for this identity
Note: Getter function for property face.
See also setFace().
QString Identity::fcc() const
The folder where sent messages from this identity will be stored by default.
Note: Getter function for property fcc.
See also setFcc().
[static] KIdentityManagementCore::Identity Identity::fromMimeData(const QMimeData *)
Creates an Identity from the given MIME data
QString Identity::fullEmailAddr() const
The email address in the format "username <name@host>" suitable for the "From:" field of email messages.
Note: Getter function for property fullEmailAddr.
QString Identity::fullName() const
Full name of the user
Note: Getter function for property fullName.
See also setFullName().
QString Identity::identityName() const
Identity/nickname for this collection
Note: Getter function for property identityName.
See also setIdentityName().
bool Identity::isDefault() const
Returns whether this identity is the default identity
See also setIsDefault().
bool Identity::isFaceEnabled() const
Returns whether the Face header is enabled for this identity
Note: Getter function for property isFaceEnabled.
bool Identity::isNull() const
Returns true when the identity contains no values, all null values or only empty values
Note: Getter function for property isNull.
bool Identity::isXFaceEnabled() const
Returns whether the X-Face header is enabled for this identity
Note: Getter function for property isXFaceEnabled.
bool Identity::mailingAllowed() const
Returns true if there are enough values set to allow mailing.
Note: Getter function for property mailingAllowed.
bool Identity::matchesEmailAddress(const QString &addr) const
addr the email address to check Returns true if this identity contains the email address addr, either as primary address or as alias
[static] QString Identity::mimeDataType()
Returns the MIME data type string for identity data
[static] const KIdentityManagementCore::Identity &Identity::null()
Returns the null identity singleton
QString Identity::organization() const
The user's organization (optional)
Note: Getter function for property organization.
See also setOrganization().
bool Identity::pgpAutoEncrypt() const
Returns true if we should encrypt message sent by this identity by default.
Note: Getter function for property pgpAutoEncrypt.
See also setPgpAutoEncrypt().
bool Identity::pgpAutoSign() const
Returns true if we should sign message sent by this identity by default.
Note: Getter function for property pgpAutoSign.
See also setPgpAutoSign().
QByteArray Identity::pgpEncryptionKey() const
The user's OpenPGP encryption key
Note: Getter function for property pgpEncryptionKey.
QByteArray Identity::pgpSigningKey() const
The user's OpenPGP signing key
Note: Getter function for property pgpSigningKey.
void Identity::populateMimeData(QMimeData *) const
Populates the given MIME data with this identity's data
QString Identity::preferredCryptoMessageFormat() const
Returns the preferred crypto message format for this identity
Note: Getter function for property preferredCryptoMessageFormat.
See also setPreferredCryptoMessageFormat().
QString Identity::primaryEmailAddress() const
The primary email address (without the user name - only name@host).
This email address is used for all outgoing mail.
Note: Getter function for property primaryEmailAddress.
See also setPrimaryEmailAddress().
QVariant Identity::property(const QString &key) const
Get random properties key the key of the property to get Returns the property value
See also setProperty().
void Identity::readConfig(const KConfigGroup &group)
Read configuration from config group the config group to read from (must be preset) Called from IdentityManager.
QString Identity::replyToAddr() const
Returns The email address for the ReplyTo: field
Note: Getter function for property replyToAddr.
See also setReplyToAddr().
void Identity::setActivities(const QStringList &a)
Sets the list of activities for this identity to a.
See also activities().
void Identity::setAttachVcard(bool attach)
Sets whether the vCard of this identity should be attached to outgoing mail to attach.
Note: Setter function for property attachVcard.
See also attachVcard().
void Identity::setAutocorrectionLanguage(const QString &language)
Sets the default language for spell checking of this identity to language.
Note: Setter function for property autocorrectionLanguage.
See also autocorrectionLanguage().
void Identity::setAutocryptEnabled(const bool)
Sets whether Autocrypt is enabled for this identity
Note: Setter function for property autocryptEnabled.
See also autocryptEnabled().
void Identity::setAutocryptPrefer(const bool)
Sets whether Autocrypt is preferred for this identity
Note: Setter function for property autocryptPrefer.
See also autocryptPrefer().
void Identity::setBcc(const QString &)
Sets the email addresses for the BCC: field
Note: Setter function for property bcc.
See also bcc().
void Identity::setCc(const QString &)
Sets the email addresses for the CC: field
Note: Setter function for property cc.
See also cc().
void Identity::setDefaultDomainName(const QString &domainName)
Sets the default domain name for this identity to domainName.
Note: Setter function for property defaultDomainName.
See also defaultDomainName().
void Identity::setDictionary(const QString &)
Sets the dictionary to be used for spell checking
Should be the localized language name (e.g. "British English"), not the language code or dictionary name.
Note: Setter function for property dictionary.
See also dictionary().
void Identity::setDisabledFcc(bool)
Sets whether Fcc is disabled for this identity
Note: Setter function for property disabledFcc.
See also disabledFcc().
[since 6.5] void Identity::setDisabledSpam(bool disable)
Sets whether Spam is disabled for this identity to disable.
Note: Setter function for property disabledSpam.
This function was introduced in 6.5.
See also disabledSpam().
void Identity::setDrafts(const QString &)
Sets the folder where draft messages from this identity will be stored by default
Note: Setter function for property drafts.
See also drafts().
void Identity::setEmailAliases(const QStringList &aliases)
Sets the email address aliases for this identity to aliases.
Note: Setter function for property emailAliases.
See also emailAliases().
void Identity::setEnabledActivities(bool a)
Sets whether activities are enabled for this identity to a.
See also enabledActivities().
void Identity::setEncryptionOverride(const bool)
Sets whether the warnNotSign and warnNotEncrypt identity configuration should overwrite the global app-wide configuration
Note: Setter function for property encryptionOverride.
See also encryptionOverride().
void Identity::setFace(const QString &)
Sets the Face header for this identity
Note: Setter function for property face.
See also face().
void Identity::setFaceEnabled(bool)
Sets whether the Face header is enabled for this identity
Note: Setter function for property isFaceEnabled.
See also isFaceEnabled().
void Identity::setFcc(const QString &)
Sets the folder where sent messages from this identity will be stored by default
Note: Setter function for property fcc.
See also fcc().
void Identity::setFullName(const QString &)
Sets the full name of the user
Note: Setter function for property fullName.
See also fullName().
void Identity::setIdentityName(const QString &name)
Sets the identity/nickname for this collection to name.
Note: Setter function for property identityName.
See also identityName().
void Identity::setIsDefault(bool flag)
Set whether this identity is the default identity flag true to set as default, false otherwise
Since this affects all other identities, too (most notably, the old default identity), only the IdentityManager can change this. You should use:
kmkernel->identityManager()->setAsDefault( name_of_default )
instead.
See also isDefault().
void Identity::setOrganization(const QString &)
Sets the user's organization
Note: Setter function for property organization.
See also organization().
void Identity::setPGPEncryptionKey(const QByteArray &key)
Sets the user's OpenPGP encryption key.
Note: Setter function for property pgpEncryptionKey.
void Identity::setPGPSigningKey(const QByteArray &key)
Sets the user's OpenPGP signing key.
Note: Setter function for property pgpSigningKey.
void Identity::setPgpAutoEncrypt(bool)
Sets whether messages sent by this identity should be encrypted by default
Note: Setter function for property pgpAutoEncrypt.
See also pgpAutoEncrypt().
void Identity::setPgpAutoSign(bool)
Sets whether messages sent by this identity should be signed by default
Note: Setter function for property pgpAutoSign.
See also pgpAutoSign().
void Identity::setPreferredCryptoMessageFormat(const QString &)
Sets the preferred crypto message format for this identity
Note: Setter function for property preferredCryptoMessageFormat.
See also preferredCryptoMessageFormat().
void Identity::setPrimaryEmailAddress(const QString &email)
Sets the primary email address for this identity to email.
Note: Setter function for property primaryEmailAddress.
See also primaryEmailAddress().
void Identity::setProperty(const QString &key, const QVariant &value)
Set random properties key the key of the property to set value the value to set; when empty (for QStrings) or null, the property is deleted.
See also property().
void Identity::setReplyToAddr(const QString &)
Sets the email address for the ReplyTo: field
Note: Setter function for property replyToAddr.
See also replyToAddr().
void Identity::setSMIMEEncryptionKey(const QByteArray &key)
Sets the user's S/MIME encryption key.
Note: Setter function for property smimeEncryptionKey.
void Identity::setSMIMESigningKey(const QByteArray &key)
Sets the user's S/MIME signing key.
Note: Setter function for property smimeSigningKey.
void Identity::setSignature(const KIdentityManagementCore::Signature &sig)
Sets the signature for this identity to sig.
Note: Setter function for property signature.
See also signature().
[protected] void Identity::setSignatureFile(const QString &)
Sets the name of the signature file (with path)
See also signatureFile().
[protected] void Identity::setSignatureInlineText(const QString &)
Sets the inline signature text
See also signatureInlineText().
void Identity::setSpam(const QString &)
Sets the folder where spam messages from this identity will be stored by default
Note: Setter function for property spam.
See also spam().
void Identity::setTemplates(const QString &)
Sets the folder where template messages from this identity will be stored by default
Note: Setter function for property templates.
See also templates().
void Identity::setTransport(const QString &)
Sets the transport for this identity
Note: Setter function for property transport.
See also transport().
void Identity::setUoid(uint aUoid)
Set the uoid (Unique Object Identifier) aUoid the uoid to set
See also uoid().
void Identity::setVCardFile(const QString &)
Sets the vCard file to attach to outgoing emails
Note: Setter function for property vCardFile.
See also vCardFile().
void Identity::setWarnNotEncrypt(const bool)
Sets whether to warn if parts of the message this identity is about to send are not encrypted
Note: Setter function for property warnNotEncrypt.
See also warnNotEncrypt().
void Identity::setWarnNotSign(const bool)
Sets whether to warn if parts of the message this identity is about to send are not signed
Note: Setter function for property warnNotSign.
See also warnNotSign().
void Identity::setXFace(const QString &)
Sets the X-Face header for this identity
Note: Setter function for property xface.
void Identity::setXFaceEnabled(bool)
Sets whether the X-Face header is enabled for this identity
Note: Setter function for property isXFaceEnabled.
See also isXFaceEnabled().
KIdentityManagementCore::Signature &Identity::signature()
Returns The signature of the identity.
Warning: This method is not const.
Note: Getter function for property signature.
See also setSignature().
const KIdentityManagementCore::Signature &Identity::signature() const
Returns the signature of this identity.
Note: Getter function for property signature.
[protected] QString Identity::signatureFile() const
name of the signature file (with path)
See also setSignatureFile().
[protected] QString Identity::signatureInlineText() const
Returns the inline signature text
See also setSignatureInlineText().
[protected] bool Identity::signatureIsCommand() const
Returns true if the signature is read from the output of a command
[protected] bool Identity::signatureIsInline() const
Returns true if the signature was specified directly
bool Identity::signatureIsInlinedHtml() const
Returns true if the inlined signature is html formatted
Note: Getter function for property signatureIsInlinedHtml.
[protected] bool Identity::signatureIsPlainFile() const
Returns true if the signature is read from a text file
QString Identity::signatureText(bool *ok = nullptr) const
Returns the signature with '– \n' prepended to it if it is not present already. No newline in front of or after the signature is added. ok if a valid bool pointer, it is set to \ true or \ false depending on whether the signature could successfully be obtained.
Note: Getter function for property signatureText.
QByteArray Identity::smimeEncryptionKey() const
The user's S/MIME encryption key
Note: Getter function for property smimeEncryptionKey.
QByteArray Identity::smimeSigningKey() const
The user's S/MIME signing key
Note: Getter function for property smimeSigningKey.
QString Identity::spam() const
The folder where spam messages from this identity will be stored by default.
Note: Getter function for property spam.
See also setSpam().
QString Identity::templates() const
The folder where template messages from this identity will be stored by default.
Note: Getter function for property templates.
See also setTemplates().
QString Identity::transport() const
The transport that is set for this identity. Used to link a transport with an identity.
Note: Getter function for property transport.
See also setTransport().
uint Identity::uoid() const
Unique Object Identifier for this identity
Note: Getter function for property uoid.
See also setUoid().
[protected] bool Identity::useSignatureFile() const
Returns whether to use signature from file instead of inline signature
QString Identity::vCardFile() const
vCard to attach to outgoing emails
Note: Getter function for property vCardFile.
See also setVCardFile().
[protected] QString Identity::verifyAkonadiId(const QString &str) const
During migration, when it failed it can be a string instead of a qlonglong akonadi::id, this fixes it. Returns str converted to a valid Akonadi id.
bool Identity::warnNotEncrypt() const
Returns true if we should warn if parts of the message this identity is about to send are not encrypted.
Note: Getter function for property warnNotEncrypt.
See also setWarnNotEncrypt().
bool Identity::warnNotSign() const
Returns true if we should warn if parts of the message this identity is about to send are not signed.
Note: Getter function for property warnNotSign.
See also setWarnNotSign().
void Identity::writeConfig(KConfigGroup &group) const
Write configuration to config group the config group to write to (must be preset) Called from IdentityManager.
QString Identity::xface() const
a X-Face header for this identity
Note: Getter function for property xface.
bool Identity::operator!=(const KIdentityManagementCore::Identity &other) const
Returns true if this identity is not equal to other.
bool Identity::operator<(const KIdentityManagementCore::Identity &other) const
Returns true if this identity is less than other. Used for sorting.
bool Identity::operator<=(const KIdentityManagementCore::Identity &other) const
Returns true if this identity is less than or equal to other. Used for sorting.
bool Identity::operator==(const KIdentityManagementCore::Identity &other) const
Returns true if this identity is equal to other.
bool Identity::operator>(const KIdentityManagementCore::Identity &other) const
Returns true if this identity is greater than other. Used for sorting.
bool Identity::operator>=(const KIdentityManagementCore::Identity &other) const
Returns true if this identity is greater than or equal to other. Used for sorting.