KIdentityManagementCore::Identity

Search for usage in LXR

#include <identity.h>

Public Types

using Id = uint
 
using List = QList<Identity>
 

Properties

bool attachVcard
 
QString autocorrectionLanguage
 
bool autocryptEnabled
 
bool autocryptPrefer
 
QString bcc
 
QString cc
 
QString defaultDomainName
 
QString dictionary
 
bool disabledFcc
 
QString drafts
 
QStringList emailAliases
 
bool encryptionOverride
 
QString face
 
QString fcc
 
QString fullEmailAddr
 
QString fullName
 
QString identityName
 
bool isFaceEnabled
 
bool isNull
 
bool isXFaceEnabled
 
bool mailingAllowed
 
QString organization
 
bool pgpAutoEncrypt
 
bool pgpAutoSign
 
QByteArray pgpEncryptionKey
 
QByteArray pgpSigningKey
 
QString preferredCryptoMessageFormat
 
QString primaryEmailAddress
 
QString replyToAddr
 
Signature signature
 
bool signatureIsInlinedHtml
 
QString signatureText
 
QByteArray smimeEncryptionKey
 
QByteArray smimeSigningKey
 
QString templates
 
QString transport
 
uint uoid
 
QString vCardFile
 
bool warnNotEncrypt
 
bool warnNotSign
 
QString xface
 

Public Member 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
 
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
 
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
 
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 &)
 
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)
 
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 setPgpAutoEncrypt (bool)
 
void setPgpAutoSign (bool)
 
void setPGPEncryptionKey (const QByteArray &key)
 
void setPGPSigningKey (const QByteArray &key)
 
void setPreferredCryptoMessageFormat (const QString &)
 
void setPrimaryEmailAddress (const QString &email)
 
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 setWarnNotEncrypt (const bool)
 
void setWarnNotSign (const bool)
 
void setXFace (const QString &)
 
void setXFaceEnabled (bool)
 
Signaturesignature ()
 
bool signatureIsInlinedHtml () const
 
QString signatureText (bool *ok=nullptr) const
 
QByteArray smimeEncryptionKey () const
 
QByteArray smimeSigningKey () const
 
QString templates () const
 
QString transport () const
 
uint uoid () const
 
QString vCardFile () const
 
bool warnNotEncrypt () const
 
bool warnNotSign () const
 
void writeConfig (KConfigGroup &) const
 
QString xface () const
 

Static Public Member Functions

static bool canDecode (const QMimeData *)
 
static Identity fromMimeData (const QMimeData *)
 
static QString mimeDataType ()
 
static const Identitynull ()
 

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
 
QString verifyAkonadiId (const QString &str) const
 

Protected Attributes

bool mIsDefault = false
 
QHash< QString, QVariantmPropertiesMap
 
Signature mSignature
 

Detailed Description

User identity information.

Definition at line 73 of file identity.h.

Member Typedef Documentation

◆ Id

using KIdentityManagementCore::Identity::Id = uint

Definition at line 129 of file identity.h.

◆ List

Property Documentation

◆ attachVcard

bool KIdentityManagementCore::Identity::attachVcard
readwrite

Definition at line 93 of file identity.h.

◆ autocorrectionLanguage

QString KIdentityManagementCore::Identity::autocorrectionLanguage
readwrite

Definition at line 94 of file identity.h.

◆ autocryptEnabled

bool KIdentityManagementCore::Identity::autocryptEnabled
readwrite

Definition at line 98 of file identity.h.

◆ autocryptPrefer

bool KIdentityManagementCore::Identity::autocryptPrefer
readwrite

Definition at line 99 of file identity.h.

◆ bcc

QString KIdentityManagementCore::Identity::bcc
readwrite

Definition at line 91 of file identity.h.

◆ cc

QString KIdentityManagementCore::Identity::cc
readwrite

Definition at line 92 of file identity.h.

◆ defaultDomainName

QString KIdentityManagementCore::Identity::defaultDomainName
readwrite

Definition at line 103 of file identity.h.

◆ dictionary

QString KIdentityManagementCore::Identity::dictionary
readwrite

Definition at line 111 of file identity.h.

◆ disabledFcc

bool KIdentityManagementCore::Identity::disabledFcc
readwrite

Definition at line 95 of file identity.h.

◆ drafts

QString KIdentityManagementCore::Identity::drafts
readwrite

Definition at line 109 of file identity.h.

◆ emailAliases

QStringList KIdentityManagementCore::Identity::emailAliases
readwrite

Definition at line 87 of file identity.h.

◆ encryptionOverride

bool KIdentityManagementCore::Identity::encryptionOverride
readwrite

Definition at line 100 of file identity.h.

◆ face

QString KIdentityManagementCore::Identity::face
readwrite

Definition at line 114 of file identity.h.

◆ fcc

QString KIdentityManagementCore::Identity::fcc
readwrite

Definition at line 108 of file identity.h.

◆ fullEmailAddr

QString KIdentityManagementCore::Identity::fullEmailAddr
read

Definition at line 89 of file identity.h.

◆ fullName

QString KIdentityManagementCore::Identity::fullName
readwrite

Definition at line 79 of file identity.h.

◆ identityName

QString KIdentityManagementCore::Identity::identityName
readwrite

Definition at line 78 of file identity.h.

◆ isFaceEnabled

bool KIdentityManagementCore::Identity::isFaceEnabled
readwrite

Definition at line 115 of file identity.h.

◆ isNull

bool KIdentityManagementCore::Identity::isNull
read

Definition at line 117 of file identity.h.

◆ isXFaceEnabled

bool KIdentityManagementCore::Identity::isXFaceEnabled
readwrite

Definition at line 113 of file identity.h.

◆ mailingAllowed

bool KIdentityManagementCore::Identity::mailingAllowed
read

Definition at line 77 of file identity.h.

◆ organization

QString KIdentityManagementCore::Identity::organization
readwrite

Definition at line 80 of file identity.h.

◆ pgpAutoEncrypt

bool KIdentityManagementCore::Identity::pgpAutoEncrypt
readwrite

Definition at line 97 of file identity.h.

◆ pgpAutoSign

bool KIdentityManagementCore::Identity::pgpAutoSign
readwrite

Definition at line 96 of file identity.h.

◆ pgpEncryptionKey

QByteArray KIdentityManagementCore::Identity::pgpEncryptionKey
readwrite

Definition at line 81 of file identity.h.

◆ pgpSigningKey

QByteArray KIdentityManagementCore::Identity::pgpSigningKey
readwrite

Definition at line 82 of file identity.h.

◆ preferredCryptoMessageFormat

QString KIdentityManagementCore::Identity::preferredCryptoMessageFormat
readwrite

Definition at line 85 of file identity.h.

◆ primaryEmailAddress

QString KIdentityManagementCore::Identity::primaryEmailAddress
readwrite

Definition at line 86 of file identity.h.

◆ replyToAddr

QString KIdentityManagementCore::Identity::replyToAddr
readwrite

Definition at line 90 of file identity.h.

◆ signature

Signature & Identity::signature
readwrite

Definition at line 104 of file identity.h.

◆ signatureIsInlinedHtml

bool KIdentityManagementCore::Identity::signatureIsInlinedHtml
read

Definition at line 106 of file identity.h.

◆ signatureText

QString KIdentityManagementCore::Identity::signatureText
read

Definition at line 105 of file identity.h.

◆ smimeEncryptionKey

QByteArray KIdentityManagementCore::Identity::smimeEncryptionKey
readwrite

Definition at line 83 of file identity.h.

◆ smimeSigningKey

QByteArray KIdentityManagementCore::Identity::smimeSigningKey
readwrite

Definition at line 84 of file identity.h.

◆ templates

QString KIdentityManagementCore::Identity::templates
readwrite

Definition at line 110 of file identity.h.

◆ transport

QString KIdentityManagementCore::Identity::transport
readwrite

Definition at line 107 of file identity.h.

◆ uoid

uint KIdentityManagementCore::Identity::uoid
read

Definition at line 116 of file identity.h.

◆ vCardFile

QString KIdentityManagementCore::Identity::vCardFile
readwrite

Definition at line 88 of file identity.h.

◆ warnNotEncrypt

bool KIdentityManagementCore::Identity::warnNotEncrypt
readwrite

Definition at line 102 of file identity.h.

◆ warnNotSign

bool KIdentityManagementCore::Identity::warnNotSign
readwrite

Definition at line 101 of file identity.h.

◆ xface

QString KIdentityManagementCore::Identity::xface
readwrite

Definition at line 112 of file identity.h.

Constructor & Destructor Documentation

◆ Identity()

Identity::Identity ( const QString & id = QString(),
const QString & realName = QString(),
const QString & emailAddr = QString(),
const QString & organization = QString(),
const QString & replyToAddress = QString() )
explicit

Constructor.

Definition at line 25 of file identity.cpp.

Member Function Documentation

◆ activities()

const QStringList Identity::activities ( ) const
nodiscard

Definition at line 571 of file identity.cpp.

◆ attachVcard()

bool Identity::attachVcard ( ) const
nodiscard
Returns
true if the Vcard of this identity should be attached to outgoing mail.
Since
4.10

Definition at line 398 of file identity.cpp.

◆ autocorrectionLanguage()

QString Identity::autocorrectionLanguage ( ) const
nodiscard
Returns
The default language for spell checking of this identity.
Since
4.10

Definition at line 501 of file identity.cpp.

◆ autocryptEnabled()

bool Identity::autocryptEnabled ( ) const
nodiscard
Returns
true if Autocrypt is enabled for this identity.
Since
5.17

Definition at line 761 of file identity.cpp.

◆ autocryptPrefer()

bool Identity::autocryptPrefer ( ) const
nodiscard
Returns
true if Autocrypt is preferred for this identity.
Since
5.22

Definition at line 776 of file identity.cpp.

◆ bcc()

QString Identity::bcc ( ) const
nodiscard
Returns
The email addresses for the BCC: field

Definition at line 408 of file identity.cpp.

◆ canDecode()

bool Identity::canDecode ( const QMimeData * md)
staticnodiscard

Definition at line 133 of file identity.cpp.

◆ cc()

QString Identity::cc ( ) const
nodiscard
Returns
The email addresses for the CC: field
Since
4.9

Definition at line 413 of file identity.cpp.

◆ defaultDomainName()

QString Identity::defaultDomainName ( ) const
nodiscard
Returns
The default domain name
Since
4.14

Definition at line 836 of file identity.cpp.

◆ dictionary()

QString Identity::dictionary ( ) const
nodiscard

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!

Definition at line 443 of file identity.cpp.

◆ disabledFcc()

bool Identity::disabledFcc ( ) const
nodiscard
Returns
true if Fcc is disabled for this identity.
Since
4.11

Definition at line 716 of file identity.cpp.

◆ drafts()

QString Identity::drafts ( ) const
nodiscard

The folder where draft messages from this identity will be stored by default.

Definition at line 454 of file identity.cpp.

◆ emailAliases()

const QStringList Identity::emailAliases ( ) const
nodiscard

The email address aliases.

Since
4.6

Definition at line 388 of file identity.cpp.

◆ enabledActivities()

bool Identity::enabledActivities ( ) const
nodiscard

Definition at line 581 of file identity.cpp.

◆ encryptionOverride()

bool Identity::encryptionOverride ( ) const
nodiscard
Returns
true if the warnNotSign and warnNotEncrypt identity configuration should overwrite the global app-wide configuration.
Since
5.22

Definition at line 791 of file identity.cpp.

◆ face()

QString Identity::face ( ) const
nodiscard

a Face header for this identity

Definition at line 438 of file identity.cpp.

◆ fcc()

QString Identity::fcc ( ) const
nodiscard

The folder where sent messages from this identity will be stored by default.

Definition at line 460 of file identity.cpp.

◆ fromMimeData()

Identity Identity::fromMimeData ( const QMimeData * md)
static

Definition at line 152 of file identity.cpp.

◆ fullEmailAddr()

QString Identity::fullEmailAddr ( ) const
nodiscard

The email address in the format "username <name@host>" suitable for the "From:" field of email messages.

Definition at line 287 of file identity.cpp.

◆ fullName()

QString Identity::fullName ( ) const
nodiscard

Full name of the user.

Definition at line 348 of file identity.cpp.

◆ identityName()

QString Identity::identityName ( ) const
nodiscard

Identity/nickname for this collection.

Definition at line 323 of file identity.cpp.

◆ isDefault()

bool Identity::isDefault ( ) const
nodiscard
Returns
whether this identity is the default identity

Definition at line 338 of file identity.cpp.

◆ isFaceEnabled()

bool Identity::isFaceEnabled ( ) const
nodiscard

Definition at line 433 of file identity.cpp.

◆ isNull()

bool Identity::isNull ( ) const
nodiscard

Returns true when the identity contains no values, all null values or only empty values.

Definition at line 48 of file identity.cpp.

◆ isXFaceEnabled()

bool Identity::isXFaceEnabled ( ) const
nodiscard

Definition at line 423 of file identity.cpp.

◆ mailingAllowed()

bool Identity::mailingAllowed ( ) const
nodiscard

Tests if there are enough values set to allow mailing.

Definition at line 123 of file identity.cpp.

◆ matchesEmailAddress()

bool Identity::matchesEmailAddress ( const QString & addr) const
nodiscard
Parameters
addrthe email address to check
Returns
true if this identity contains the email address addr, either as primary address or as alias
Since
4.6

Definition at line 694 of file identity.cpp.

◆ mimeDataType()

QString Identity::mimeDataType ( )
staticnodiscard

Definition at line 128 of file identity.cpp.

◆ null()

const Identity & Identity::null ( )
static

Definition at line 40 of file identity.cpp.

◆ operator!=()

bool Identity::operator!= ( const Identity & other) const

used for comparison

Definition at line 271 of file identity.cpp.

◆ operator<()

bool Identity::operator< ( const Identity & other) const

used for sorting

Definition at line 210 of file identity.cpp.

◆ operator<=()

bool Identity::operator<= ( const Identity & other) const

used for sorting

Definition at line 232 of file identity.cpp.

◆ operator==()

bool Identity::operator== ( const Identity & other) const

used for comparison

Definition at line 242 of file identity.cpp.

◆ operator>()

bool Identity::operator> ( const Identity & other) const

used for sorting

Definition at line 221 of file identity.cpp.

◆ operator>=()

bool Identity::operator>= ( const Identity & other) const

used for sorting

Definition at line 237 of file identity.cpp.

◆ organization()

QString Identity::organization ( ) const
nodiscard

The user's organization (optional)

Definition at line 353 of file identity.cpp.

◆ pgpAutoEncrypt()

bool Identity::pgpAutoEncrypt ( ) const
nodiscard
Returns
true if we should encrypt message sent by this identity by default.
Since
5.4

Definition at line 746 of file identity.cpp.

◆ pgpAutoSign()

bool Identity::pgpAutoSign ( ) const
nodiscard
Returns
true if we should sign message sent by this identity by default.
Since
4.12

Definition at line 731 of file identity.cpp.

◆ pgpEncryptionKey()

QByteArray Identity::pgpEncryptionKey ( ) const
nodiscard

The user's OpenPGP encryption key.

Definition at line 358 of file identity.cpp.

◆ pgpSigningKey()

QByteArray Identity::pgpSigningKey ( ) const
nodiscard

The user's OpenPGP signing key.

Definition at line 363 of file identity.cpp.

◆ populateMimeData()

void Identity::populateMimeData ( QMimeData * md) const

Definition at line 142 of file identity.cpp.

◆ preferredCryptoMessageFormat()

QString Identity::preferredCryptoMessageFormat ( ) const
nodiscard

Definition at line 378 of file identity.cpp.

◆ primaryEmailAddress()

QString Identity::primaryEmailAddress ( ) const
nodiscard

The primary email address (without the user name - only name@host).

This email address is used for all outgoing mail.

Since
4.6

Definition at line 383 of file identity.cpp.

◆ property()

QVariant Identity::property ( const QString & key) const
nodiscard

Get random properties.

Parameters
keythe key of the property to get

Definition at line 278 of file identity.cpp.

◆ readConfig()

void Identity::readConfig ( const KConfigGroup & config)

Read configuration from config.

Group must be preset (or use KConfigGroup). Called from IdentityManager.

Definition at line 81 of file identity.cpp.

◆ replyToAddr()

QString Identity::replyToAddr ( ) const
nodiscard
Returns
The email address for the ReplyTo: field

Definition at line 403 of file identity.cpp.

◆ setActivities()

void Identity::setActivities ( const QStringList & a)

Definition at line 576 of file identity.cpp.

◆ setAttachVcard()

void Identity::setAttachVcard ( bool attach)

Definition at line 596 of file identity.cpp.

◆ setAutocorrectionLanguage()

void Identity::setAutocorrectionLanguage ( const QString & language)

Definition at line 711 of file identity.cpp.

◆ setAutocryptEnabled()

void Identity::setAutocryptEnabled ( const bool on)

Definition at line 771 of file identity.cpp.

◆ setAutocryptPrefer()

void Identity::setAutocryptPrefer ( const bool on)

Definition at line 786 of file identity.cpp.

◆ setBcc()

void Identity::setBcc ( const QString & str)

Definition at line 641 of file identity.cpp.

◆ setCc()

void Identity::setCc ( const QString & str)

Definition at line 646 of file identity.cpp.

◆ setDefaultDomainName()

void Identity::setDefaultDomainName ( const QString & domainName)

Definition at line 841 of file identity.cpp.

◆ setDictionary()

void Identity::setDictionary ( const QString & str)

Definition at line 636 of file identity.cpp.

◆ setDisabledFcc()

void Identity::setDisabledFcc ( bool disable)

Definition at line 726 of file identity.cpp.

◆ setDrafts()

void Identity::setDrafts ( const QString & str)

Definition at line 626 of file identity.cpp.

◆ setEmailAliases()

void Identity::setEmailAliases ( const QStringList & aliases)

Definition at line 566 of file identity.cpp.

◆ setEnabledActivities()

void Identity::setEnabledActivities ( bool a)

Definition at line 586 of file identity.cpp.

◆ setEncryptionOverride()

void Identity::setEncryptionOverride ( const bool on)

Definition at line 801 of file identity.cpp.

◆ setFace()

void Identity::setFace ( const QString & str)

Definition at line 675 of file identity.cpp.

◆ setFaceEnabled()

void Identity::setFaceEnabled ( bool on)

Definition at line 684 of file identity.cpp.

◆ setFcc()

void Identity::setFcc ( const QString & str)

Definition at line 621 of file identity.cpp.

◆ setFullName()

void Identity::setFullName ( const QString & str)

Definition at line 531 of file identity.cpp.

◆ setIdentityName()

void Identity::setIdentityName ( const QString & name)

Identity/nickname for this collection.

Definition at line 526 of file identity.cpp.

◆ setIsDefault()

void Identity::setIsDefault ( bool flag)

Set whether this identity is the default identity.

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.

Definition at line 651 of file identity.cpp.

◆ setOrganization()

void Identity::setOrganization ( const QString & str)

Definition at line 536 of file identity.cpp.

◆ setPgpAutoEncrypt()

void Identity::setPgpAutoEncrypt ( bool autoEncrypt)

Definition at line 756 of file identity.cpp.

◆ setPgpAutoSign()

void Identity::setPgpAutoSign ( bool autoSign)

Definition at line 741 of file identity.cpp.

◆ setPGPEncryptionKey()

void Identity::setPGPEncryptionKey ( const QByteArray & key)

Definition at line 546 of file identity.cpp.

◆ setPGPSigningKey()

void Identity::setPGPSigningKey ( const QByteArray & key)

Definition at line 541 of file identity.cpp.

◆ setPreferredCryptoMessageFormat()

void Identity::setPreferredCryptoMessageFormat ( const QString & str)

Definition at line 656 of file identity.cpp.

◆ setPrimaryEmailAddress()

void Identity::setPrimaryEmailAddress ( const QString & email)

Definition at line 561 of file identity.cpp.

◆ setProperty()

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 508 of file identity.cpp.

◆ setReplyToAddr()

void Identity::setReplyToAddr ( const QString & str)

Definition at line 601 of file identity.cpp.

◆ setSignature()

void Identity::setSignature ( const Signature & sig)

Definition at line 689 of file identity.cpp.

◆ setSignatureFile()

void Identity::setSignatureFile ( const QString & str)
protected

Definition at line 606 of file identity.cpp.

◆ setSignatureInlineText()

void Identity::setSignatureInlineText ( const QString & str)
protected

Definition at line 611 of file identity.cpp.

◆ setSMIMEEncryptionKey()

void Identity::setSMIMEEncryptionKey ( const QByteArray & key)

Definition at line 556 of file identity.cpp.

◆ setSMIMESigningKey()

void Identity::setSMIMESigningKey ( const QByteArray & key)

Definition at line 551 of file identity.cpp.

◆ setTemplates()

void Identity::setTemplates ( const QString & str)

Definition at line 631 of file identity.cpp.

◆ setTransport()

void Identity::setTransport ( const QString & str)

Definition at line 616 of file identity.cpp.

◆ setUoid()

void Identity::setUoid ( uint aUoid)

Set the uiod.

Parameters
aUoidthe uoid to set

Definition at line 521 of file identity.cpp.

◆ setVCardFile()

void Identity::setVCardFile ( const QString & str)

Definition at line 591 of file identity.cpp.

◆ setWarnNotEncrypt()

void Identity::setWarnNotEncrypt ( const bool on)

Definition at line 816 of file identity.cpp.

◆ setWarnNotSign()

void Identity::setWarnNotSign ( const bool on)

Definition at line 831 of file identity.cpp.

◆ setXFace()

void Identity::setXFace ( const QString & str)

Definition at line 661 of file identity.cpp.

◆ setXFaceEnabled()

void Identity::setXFaceEnabled ( bool on)

Definition at line 670 of file identity.cpp.

◆ signature()

Signature & KIdentityManagementCore::Identity::signature ( )
nodiscard
Returns
The signature of the identity.
Warning
This method is not const.

◆ signatureFile()

QString Identity::signatureFile ( ) const
nodiscardprotected

name of the signature file (with path)

Definition at line 496 of file identity.cpp.

◆ signatureInlineText()

QString Identity::signatureInlineText ( ) const
nodiscardprotected

inline signature

Definition at line 491 of file identity.cpp.

◆ signatureIsCommand()

bool Identity::signatureIsCommand ( ) const
nodiscardprotected
Returns
true if the signature is read from the output of a command

Definition at line 471 of file identity.cpp.

◆ signatureIsInline()

bool Identity::signatureIsInline ( ) const
nodiscardprotected
Returns
true if the signature was specified directly

Definition at line 481 of file identity.cpp.

◆ signatureIsInlinedHtml()

bool Identity::signatureIsInlinedHtml ( ) const
nodiscard
Returns
true if the inlined signature is html formatted
Since
4.1

Definition at line 333 of file identity.cpp.

◆ signatureIsPlainFile()

bool Identity::signatureIsPlainFile ( ) const
nodiscardprotected
Returns
true if the signature is read from a text file

Definition at line 476 of file identity.cpp.

◆ signatureText()

QString Identity::signatureText ( bool * ok = nullptr) const
nodiscard
Returns
the signature with '–
' prepended to it if it is not present already. No newline in front of or after the signature is added.
Parameters
okif a valid bool pointer, it is set to true or false depending on whether the signature could successfully be obtained.

Definition at line 328 of file identity.cpp.

◆ smimeEncryptionKey()

QByteArray Identity::smimeEncryptionKey ( ) const
nodiscard

The user's S/MIME encryption key.

Definition at line 368 of file identity.cpp.

◆ smimeSigningKey()

QByteArray Identity::smimeSigningKey ( ) const
nodiscard

The user's S/MIME signing key.

Definition at line 373 of file identity.cpp.

◆ templates()

QString Identity::templates ( ) const
nodiscard

The folder where template messages from this identity will be stored by default.

Definition at line 448 of file identity.cpp.

◆ transport()

QString Identity::transport ( ) const
nodiscard

The transport that is set for this identity.

Used to link a transport with an identity.

Definition at line 466 of file identity.cpp.

◆ uoid()

uint Identity::uoid ( ) const
nodiscard

Unique Object Identifier for this identity.

Definition at line 343 of file identity.cpp.

◆ useSignatureFile()

bool Identity::useSignatureFile ( ) const
nodiscardprotected

Inline or signature from a file.

Definition at line 486 of file identity.cpp.

◆ vCardFile()

QString Identity::vCardFile ( ) const
nodiscard

vCard to attach to outgoing emails

Definition at line 393 of file identity.cpp.

◆ verifyAkonadiId()

QString Identity::verifyAkonadiId ( const QString & str) const
nodiscardprotected

during migration when it failed it can be a string => not a qlonglong akonadi::id => fix it

Definition at line 846 of file identity.cpp.

◆ warnNotEncrypt()

bool Identity::warnNotEncrypt ( ) const
nodiscard
Returns
true if we should warn if parts of the message this identity is about to send are not encrypted.
Since
5.22

Definition at line 806 of file identity.cpp.

◆ warnNotSign()

bool Identity::warnNotSign ( ) const
nodiscard
Returns
true if we should warn if parts of the message this identity is about to send are not signed.
Since
5.22

Definition at line 821 of file identity.cpp.

◆ writeConfig()

void Identity::writeConfig ( KConfigGroup & config) const

Write configuration to config.

Group must be preset (or use KConfigGroup). Called from IdentityManager.

Definition at line 107 of file identity.cpp.

◆ xface()

QString Identity::xface ( ) const
nodiscard

a X-Face header for this identity

Definition at line 428 of file identity.cpp.

Member Data Documentation

◆ mIsDefault

bool KIdentityManagementCore::Identity::mIsDefault = false
protected

Definition at line 466 of file identity.h.

◆ mPropertiesMap

QHash<QString, QVariant> KIdentityManagementCore::Identity::mPropertiesMap
protected

Definition at line 467 of file identity.h.

◆ mSignature

Signature KIdentityManagementCore::Identity::mSignature
protected

Definition at line 465 of file identity.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.