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())
 
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 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 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 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 71 of file identity.h.

Member Typedef Documentation

◆ Id

using KIdentityManagementCore::Identity::Id = uint

Definition at line 127 of file identity.h.

◆ List

Property Documentation

◆ attachVcard

bool KIdentityManagementCore::Identity::attachVcard
readwrite

Definition at line 91 of file identity.h.

◆ autocorrectionLanguage

QString KIdentityManagementCore::Identity::autocorrectionLanguage
readwrite

Definition at line 92 of file identity.h.

◆ autocryptEnabled

bool KIdentityManagementCore::Identity::autocryptEnabled
readwrite

Definition at line 96 of file identity.h.

◆ autocryptPrefer

bool KIdentityManagementCore::Identity::autocryptPrefer
readwrite

Definition at line 97 of file identity.h.

◆ bcc

QString KIdentityManagementCore::Identity::bcc
readwrite

Definition at line 89 of file identity.h.

◆ cc

QString KIdentityManagementCore::Identity::cc
readwrite

Definition at line 90 of file identity.h.

◆ defaultDomainName

QString KIdentityManagementCore::Identity::defaultDomainName
readwrite

Definition at line 101 of file identity.h.

◆ dictionary

QString KIdentityManagementCore::Identity::dictionary
readwrite

Definition at line 109 of file identity.h.

◆ disabledFcc

bool KIdentityManagementCore::Identity::disabledFcc
readwrite

Definition at line 93 of file identity.h.

◆ drafts

QString KIdentityManagementCore::Identity::drafts
readwrite

Definition at line 107 of file identity.h.

◆ emailAliases

QStringList KIdentityManagementCore::Identity::emailAliases
readwrite

Definition at line 85 of file identity.h.

◆ encryptionOverride

bool KIdentityManagementCore::Identity::encryptionOverride
readwrite

Definition at line 98 of file identity.h.

◆ face

QString KIdentityManagementCore::Identity::face
readwrite

Definition at line 112 of file identity.h.

◆ fcc

QString KIdentityManagementCore::Identity::fcc
readwrite

Definition at line 106 of file identity.h.

◆ fullEmailAddr

QString KIdentityManagementCore::Identity::fullEmailAddr
read

Definition at line 87 of file identity.h.

◆ fullName

QString KIdentityManagementCore::Identity::fullName
readwrite

Definition at line 77 of file identity.h.

◆ identityName

QString KIdentityManagementCore::Identity::identityName
readwrite

Definition at line 76 of file identity.h.

◆ isFaceEnabled

bool KIdentityManagementCore::Identity::isFaceEnabled
readwrite

Definition at line 113 of file identity.h.

◆ isNull

bool KIdentityManagementCore::Identity::isNull
read

Definition at line 115 of file identity.h.

◆ isXFaceEnabled

bool KIdentityManagementCore::Identity::isXFaceEnabled
readwrite

Definition at line 111 of file identity.h.

◆ mailingAllowed

bool KIdentityManagementCore::Identity::mailingAllowed
read

Definition at line 75 of file identity.h.

◆ organization

QString KIdentityManagementCore::Identity::organization
readwrite

Definition at line 78 of file identity.h.

◆ pgpAutoEncrypt

bool KIdentityManagementCore::Identity::pgpAutoEncrypt
readwrite

Definition at line 95 of file identity.h.

◆ pgpAutoSign

bool KIdentityManagementCore::Identity::pgpAutoSign
readwrite

Definition at line 94 of file identity.h.

◆ pgpEncryptionKey

QByteArray KIdentityManagementCore::Identity::pgpEncryptionKey
readwrite

Definition at line 79 of file identity.h.

◆ pgpSigningKey

QByteArray KIdentityManagementCore::Identity::pgpSigningKey
readwrite

Definition at line 80 of file identity.h.

◆ preferredCryptoMessageFormat

QString KIdentityManagementCore::Identity::preferredCryptoMessageFormat
readwrite

Definition at line 83 of file identity.h.

◆ primaryEmailAddress

QString KIdentityManagementCore::Identity::primaryEmailAddress
readwrite

Definition at line 84 of file identity.h.

◆ replyToAddr

QString KIdentityManagementCore::Identity::replyToAddr
readwrite

Definition at line 88 of file identity.h.

◆ signature

Signature & Identity::signature
readwrite

Definition at line 102 of file identity.h.

◆ signatureIsInlinedHtml

bool KIdentityManagementCore::Identity::signatureIsInlinedHtml
read

Definition at line 104 of file identity.h.

◆ signatureText

QString KIdentityManagementCore::Identity::signatureText
read

Definition at line 103 of file identity.h.

◆ smimeEncryptionKey

QByteArray KIdentityManagementCore::Identity::smimeEncryptionKey
readwrite

Definition at line 81 of file identity.h.

◆ smimeSigningKey

QByteArray KIdentityManagementCore::Identity::smimeSigningKey
readwrite

Definition at line 82 of file identity.h.

◆ templates

QString KIdentityManagementCore::Identity::templates
readwrite

Definition at line 108 of file identity.h.

◆ transport

QString KIdentityManagementCore::Identity::transport
readwrite

Definition at line 105 of file identity.h.

◆ uoid

uint KIdentityManagementCore::Identity::uoid
read

Definition at line 114 of file identity.h.

◆ vCardFile

QString KIdentityManagementCore::Identity::vCardFile
readwrite

Definition at line 86 of file identity.h.

◆ warnNotEncrypt

bool KIdentityManagementCore::Identity::warnNotEncrypt
readwrite

Definition at line 100 of file identity.h.

◆ warnNotSign

bool KIdentityManagementCore::Identity::warnNotSign
readwrite

Definition at line 99 of file identity.h.

◆ xface

QString KIdentityManagementCore::Identity::xface
readwrite

Definition at line 110 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 24 of file identity.cpp.

Member Function Documentation

◆ attachVcard()

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

Definition at line 395 of file identity.cpp.

◆ autocorrectionLanguage()

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

Definition at line 498 of file identity.cpp.

◆ autocryptEnabled()

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

Definition at line 738 of file identity.cpp.

◆ autocryptPrefer()

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

Definition at line 753 of file identity.cpp.

◆ bcc()

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

Definition at line 405 of file identity.cpp.

◆ canDecode()

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

Definition at line 132 of file identity.cpp.

◆ cc()

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

Definition at line 410 of file identity.cpp.

◆ defaultDomainName()

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

Definition at line 813 of file identity.cpp.

◆ dictionary()

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!

Definition at line 440 of file identity.cpp.

◆ disabledFcc()

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

Definition at line 693 of file identity.cpp.

◆ drafts()

QString Identity::drafts ( ) const

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

Definition at line 451 of file identity.cpp.

◆ emailAliases()

const QStringList Identity::emailAliases ( ) const

The email address aliases.

Since
4.6

Definition at line 385 of file identity.cpp.

◆ encryptionOverride()

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

Definition at line 768 of file identity.cpp.

◆ face()

QString Identity::face ( ) const

a Face header for this identity

Definition at line 435 of file identity.cpp.

◆ fcc()

QString Identity::fcc ( ) const

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

Definition at line 457 of file identity.cpp.

◆ fromMimeData()

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

Definition at line 151 of file identity.cpp.

◆ fullEmailAddr()

QString Identity::fullEmailAddr ( ) const

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

Definition at line 284 of file identity.cpp.

◆ fullName()

QString Identity::fullName ( ) const

Full name of the user.

Definition at line 345 of file identity.cpp.

◆ identityName()

QString Identity::identityName ( ) const

Identity/nickname for this collection.

Definition at line 320 of file identity.cpp.

◆ isDefault()

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

Definition at line 335 of file identity.cpp.

◆ isFaceEnabled()

bool Identity::isFaceEnabled ( ) const

Definition at line 430 of file identity.cpp.

◆ isNull()

bool Identity::isNull ( ) const

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

Definition at line 47 of file identity.cpp.

◆ isXFaceEnabled()

bool Identity::isXFaceEnabled ( ) const

Definition at line 420 of file identity.cpp.

◆ mailingAllowed()

bool Identity::mailingAllowed ( ) const

Tests if there are enough values set to allow mailing.

Definition at line 122 of file identity.cpp.

◆ matchesEmailAddress()

bool Identity::matchesEmailAddress ( const QString & addr) const
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 671 of file identity.cpp.

◆ mimeDataType()

QString Identity::mimeDataType ( )
static

Definition at line 127 of file identity.cpp.

◆ null()

const Identity & Identity::null ( )
static

Definition at line 39 of file identity.cpp.

◆ operator!=()

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

used for comparison

Definition at line 268 of file identity.cpp.

◆ operator<()

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

used for sorting

Definition at line 207 of file identity.cpp.

◆ operator<=()

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

used for sorting

Definition at line 229 of file identity.cpp.

◆ operator==()

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

used for comparison

Definition at line 239 of file identity.cpp.

◆ operator>()

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

used for sorting

Definition at line 218 of file identity.cpp.

◆ operator>=()

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

used for sorting

Definition at line 234 of file identity.cpp.

◆ organization()

QString Identity::organization ( ) const

The user's organization (optional)

Definition at line 350 of file identity.cpp.

◆ pgpAutoEncrypt()

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

Definition at line 723 of file identity.cpp.

◆ pgpAutoSign()

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

Definition at line 708 of file identity.cpp.

◆ pgpEncryptionKey()

QByteArray Identity::pgpEncryptionKey ( ) const

The user's OpenPGP encryption key.

Definition at line 355 of file identity.cpp.

◆ pgpSigningKey()

QByteArray Identity::pgpSigningKey ( ) const

The user's OpenPGP signing key.

Definition at line 360 of file identity.cpp.

◆ populateMimeData()

void Identity::populateMimeData ( QMimeData * md) const

Definition at line 141 of file identity.cpp.

◆ preferredCryptoMessageFormat()

QString Identity::preferredCryptoMessageFormat ( ) const

Definition at line 375 of file identity.cpp.

◆ primaryEmailAddress()

QString Identity::primaryEmailAddress ( ) const

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

◆ property()

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

Get random properties.

Parameters
keythe key of the property to get

Definition at line 275 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 80 of file identity.cpp.

◆ replyToAddr()

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

Definition at line 400 of file identity.cpp.

◆ setAttachVcard()

void Identity::setAttachVcard ( bool attach)

Definition at line 573 of file identity.cpp.

◆ setAutocorrectionLanguage()

void Identity::setAutocorrectionLanguage ( const QString & language)

Definition at line 688 of file identity.cpp.

◆ setAutocryptEnabled()

void Identity::setAutocryptEnabled ( const bool on)

Definition at line 748 of file identity.cpp.

◆ setAutocryptPrefer()

void Identity::setAutocryptPrefer ( const bool on)

Definition at line 763 of file identity.cpp.

◆ setBcc()

void Identity::setBcc ( const QString & str)

Definition at line 618 of file identity.cpp.

◆ setCc()

void Identity::setCc ( const QString & str)

Definition at line 623 of file identity.cpp.

◆ setDefaultDomainName()

void Identity::setDefaultDomainName ( const QString & domainName)

Definition at line 818 of file identity.cpp.

◆ setDictionary()

void Identity::setDictionary ( const QString & str)

Definition at line 613 of file identity.cpp.

◆ setDisabledFcc()

void Identity::setDisabledFcc ( bool disable)

Definition at line 703 of file identity.cpp.

◆ setDrafts()

void Identity::setDrafts ( const QString & str)

Definition at line 603 of file identity.cpp.

◆ setEmailAliases()

void Identity::setEmailAliases ( const QStringList & aliases)

Definition at line 563 of file identity.cpp.

◆ setEncryptionOverride()

void Identity::setEncryptionOverride ( const bool on)

Definition at line 778 of file identity.cpp.

◆ setFace()

void Identity::setFace ( const QString & str)

Definition at line 652 of file identity.cpp.

◆ setFaceEnabled()

void Identity::setFaceEnabled ( bool on)

Definition at line 661 of file identity.cpp.

◆ setFcc()

void Identity::setFcc ( const QString & str)

Definition at line 598 of file identity.cpp.

◆ setFullName()

void Identity::setFullName ( const QString & str)

Definition at line 528 of file identity.cpp.

◆ setIdentityName()

void Identity::setIdentityName ( const QString & name)

Identity/nickname for this collection.

Definition at line 523 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 628 of file identity.cpp.

◆ setOrganization()

void Identity::setOrganization ( const QString & str)

Definition at line 533 of file identity.cpp.

◆ setPgpAutoEncrypt()

void Identity::setPgpAutoEncrypt ( bool autoEncrypt)

Definition at line 733 of file identity.cpp.

◆ setPgpAutoSign()

void Identity::setPgpAutoSign ( bool autoSign)

Definition at line 718 of file identity.cpp.

◆ setPGPEncryptionKey()

void Identity::setPGPEncryptionKey ( const QByteArray & key)

Definition at line 543 of file identity.cpp.

◆ setPGPSigningKey()

void Identity::setPGPSigningKey ( const QByteArray & key)

Definition at line 538 of file identity.cpp.

◆ setPreferredCryptoMessageFormat()

void Identity::setPreferredCryptoMessageFormat ( const QString & str)

Definition at line 633 of file identity.cpp.

◆ setPrimaryEmailAddress()

void Identity::setPrimaryEmailAddress ( const QString & email)

Definition at line 558 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 505 of file identity.cpp.

◆ setReplyToAddr()

void Identity::setReplyToAddr ( const QString & str)

Definition at line 578 of file identity.cpp.

◆ setSignature()

void Identity::setSignature ( const Signature & sig)

Definition at line 666 of file identity.cpp.

◆ setSignatureFile()

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

Definition at line 583 of file identity.cpp.

◆ setSignatureInlineText()

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

Definition at line 588 of file identity.cpp.

◆ setSMIMEEncryptionKey()

void Identity::setSMIMEEncryptionKey ( const QByteArray & key)

Definition at line 553 of file identity.cpp.

◆ setSMIMESigningKey()

void Identity::setSMIMESigningKey ( const QByteArray & key)

Definition at line 548 of file identity.cpp.

◆ setTemplates()

void Identity::setTemplates ( const QString & str)

Definition at line 608 of file identity.cpp.

◆ setTransport()

void Identity::setTransport ( const QString & str)

Definition at line 593 of file identity.cpp.

◆ setUoid()

void Identity::setUoid ( uint aUoid)

Set the uiod.

Parameters
aUoidthe uoid to set

Definition at line 518 of file identity.cpp.

◆ setVCardFile()

void Identity::setVCardFile ( const QString & str)

Definition at line 568 of file identity.cpp.

◆ setWarnNotEncrypt()

void Identity::setWarnNotEncrypt ( const bool on)

Definition at line 793 of file identity.cpp.

◆ setWarnNotSign()

void Identity::setWarnNotSign ( const bool on)

Definition at line 808 of file identity.cpp.

◆ setXFace()

void Identity::setXFace ( const QString & str)

Definition at line 638 of file identity.cpp.

◆ setXFaceEnabled()

void Identity::setXFaceEnabled ( bool on)

Definition at line 647 of file identity.cpp.

◆ signature()

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

◆ signatureFile()

QString Identity::signatureFile ( ) const
protected

name of the signature file (with path)

Definition at line 493 of file identity.cpp.

◆ signatureInlineText()

QString Identity::signatureInlineText ( ) const
protected

inline signature

Definition at line 488 of file identity.cpp.

◆ signatureIsCommand()

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

Definition at line 468 of file identity.cpp.

◆ signatureIsInline()

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

Definition at line 478 of file identity.cpp.

◆ signatureIsInlinedHtml()

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

Definition at line 330 of file identity.cpp.

◆ signatureIsPlainFile()

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

Definition at line 473 of file identity.cpp.

◆ signatureText()

QString Identity::signatureText ( bool * ok = nullptr) 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.
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 325 of file identity.cpp.

◆ smimeEncryptionKey()

QByteArray Identity::smimeEncryptionKey ( ) const

The user's S/MIME encryption key.

Definition at line 365 of file identity.cpp.

◆ smimeSigningKey()

QByteArray Identity::smimeSigningKey ( ) const

The user's S/MIME signing key.

Definition at line 370 of file identity.cpp.

◆ templates()

QString Identity::templates ( ) const

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

Definition at line 445 of file identity.cpp.

◆ transport()

QString Identity::transport ( ) const

The transport that is set for this identity.

Used to link a transport with an identity.

Definition at line 463 of file identity.cpp.

◆ uoid()

uint Identity::uoid ( ) const

Unique Object Identifier for this identity.

Definition at line 340 of file identity.cpp.

◆ useSignatureFile()

bool Identity::useSignatureFile ( ) const
protected

Inline or signature from a file.

Definition at line 483 of file identity.cpp.

◆ vCardFile()

QString Identity::vCardFile ( ) const

vCard to attach to outgoing emails

Definition at line 390 of file identity.cpp.

◆ verifyAkonadiId()

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

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

Definition at line 823 of file identity.cpp.

◆ warnNotEncrypt()

bool Identity::warnNotEncrypt ( ) const
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 783 of file identity.cpp.

◆ warnNotSign()

bool Identity::warnNotSign ( ) const
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 798 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 106 of file identity.cpp.

◆ xface()

QString Identity::xface ( ) const

a X-Face header for this identity

Definition at line 425 of file identity.cpp.

Member Data Documentation

◆ mIsDefault

bool KIdentityManagementCore::Identity::mIsDefault = false
protected

Definition at line 458 of file identity.h.

◆ mPropertiesMap

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

Definition at line 459 of file identity.h.

◆ mSignature

Signature KIdentityManagementCore::Identity::mSignature
protected

Definition at line 457 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 Tue Mar 26 2024 11:20:09 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.