77 Q_PROPERTY(
bool mailingAllowed READ mailingAllowed)
78 Q_PROPERTY(
QString identityName READ identityName WRITE setIdentityName)
79 Q_PROPERTY(
QString fullName READ fullName WRITE setFullName)
80 Q_PROPERTY(
QString organization READ organization WRITE setOrganization)
81 Q_PROPERTY(
QByteArray pgpEncryptionKey READ pgpEncryptionKey WRITE setPGPEncryptionKey)
82 Q_PROPERTY(
QByteArray pgpSigningKey READ pgpSigningKey WRITE setPGPSigningKey)
83 Q_PROPERTY(
QByteArray smimeEncryptionKey READ smimeEncryptionKey WRITE setSMIMEEncryptionKey)
84 Q_PROPERTY(
QByteArray smimeSigningKey READ smimeSigningKey WRITE setSMIMESigningKey)
85 Q_PROPERTY(
QString preferredCryptoMessageFormat READ preferredCryptoMessageFormat WRITE setPreferredCryptoMessageFormat)
86 Q_PROPERTY(
QString primaryEmailAddress READ primaryEmailAddress WRITE setPrimaryEmailAddress)
87 Q_PROPERTY(
QStringList emailAliases READ emailAliases WRITE setEmailAliases)
88 Q_PROPERTY(
QString vCardFile READ vCardFile WRITE setVCardFile)
89 Q_PROPERTY(
QString fullEmailAddr READ fullEmailAddr)
90 Q_PROPERTY(
QString replyToAddr READ replyToAddr WRITE setReplyToAddr)
91 Q_PROPERTY(
QString bcc READ bcc WRITE setBcc)
92 Q_PROPERTY(
QString cc READ cc WRITE setCc)
93 Q_PROPERTY(
bool attachVcard READ attachVcard WRITE setAttachVcard)
94 Q_PROPERTY(
QString autocorrectionLanguage READ autocorrectionLanguage WRITE setAutocorrectionLanguage)
95 Q_PROPERTY(
bool disabledFcc READ disabledFcc WRITE setDisabledFcc)
96 Q_PROPERTY(
bool pgpAutoSign READ pgpAutoSign WRITE setPgpAutoSign)
97 Q_PROPERTY(
bool pgpAutoEncrypt READ pgpAutoEncrypt WRITE setPgpAutoEncrypt)
98 Q_PROPERTY(
bool autocryptEnabled READ autocryptEnabled WRITE setAutocryptEnabled)
99 Q_PROPERTY(
bool autocryptPrefer READ autocryptPrefer WRITE setAutocryptPrefer)
100 Q_PROPERTY(
bool encryptionOverride READ encryptionOverride WRITE setEncryptionOverride)
101 Q_PROPERTY(
bool warnNotSign READ warnNotSign WRITE setWarnNotSign)
102 Q_PROPERTY(
bool warnNotEncrypt READ warnNotEncrypt WRITE setWarnNotEncrypt)
103 Q_PROPERTY(
QString defaultDomainName READ defaultDomainName WRITE setDefaultDomainName)
104 Q_PROPERTY(
Signature signature READ signature WRITE setSignature)
105 Q_PROPERTY(
QString signatureText READ signatureText)
106 Q_PROPERTY(
bool signatureIsInlinedHtml READ signatureIsInlinedHtml)
107 Q_PROPERTY(
QString transport READ transport WRITE setTransport)
108 Q_PROPERTY(
QString fcc READ fcc WRITE setFcc)
109 Q_PROPERTY(
QString drafts READ drafts WRITE setDrafts)
110 Q_PROPERTY(
QString templates READ templates WRITE setTemplates)
111 Q_PROPERTY(
QString dictionary READ dictionary WRITE setDictionary)
112 Q_PROPERTY(
QString xface READ xface WRITE setXFace)
113 Q_PROPERTY(
bool isXFaceEnabled READ isXFaceEnabled WRITE setXFaceEnabled)
114 Q_PROPERTY(
QString face READ face WRITE setFace)
115 Q_PROPERTY(
bool isFaceEnabled READ isFaceEnabled WRITE setFaceEnabled)
116 Q_PROPERTY(uint uoid READ uoid CONSTANT)
117 Q_PROPERTY(
bool isNull READ isNull)
139 bool operator==(
const Identity &other)
const;
142 bool operator!=(
const Identity &other)
const;
145 bool operator<(
const Identity &other)
const;
148 bool operator>(
const Identity &other)
const;
151 bool operator<=(
const Identity &other)
const;
154 bool operator>=(
const Identity &other)
const;
157 [[nodiscard]]
bool mailingAllowed()
const;
160 [[nodiscard]]
QString identityName()
const;
163 void setIdentityName(
const QString &name);
166 [[nodiscard]]
bool isDefault()
const;
169 [[nodiscard]] uint uoid()
const;
172 [[nodiscard]]
QString fullName()
const;
173 void setFullName(
const QString &);
176 [[nodiscard]]
QString organization()
const;
177 void setOrganization(
const QString &);
180 [[nodiscard]]
QByteArray pgpEncryptionKey()
const;
181 void setPGPEncryptionKey(
const QByteArray &key);
184 [[nodiscard]]
QByteArray pgpSigningKey()
const;
188 [[nodiscard]]
QByteArray smimeEncryptionKey()
const;
189 void setSMIMEEncryptionKey(
const QByteArray &key);
192 [[nodiscard]]
QByteArray smimeSigningKey()
const;
193 void setSMIMESigningKey(
const QByteArray &key);
195 [[nodiscard]]
QString preferredCryptoMessageFormat()
const;
196 void setPreferredCryptoMessageFormat(
const QString &);
205 [[nodiscard]]
QString primaryEmailAddress()
const;
206 void setPrimaryEmailAddress(
const QString &email);
213 [[nodiscard]]
const QStringList emailAliases()
const;
223 [[nodiscard]]
bool matchesEmailAddress(
const QString &addr)
const;
226 [[nodiscard]]
QString vCardFile()
const;
227 void setVCardFile(
const QString &);
233 [[nodiscard]]
QString fullEmailAddr()
const;
236 [[nodiscard]]
QString replyToAddr()
const;
237 void setReplyToAddr(
const QString &);
240 [[nodiscard]]
QString bcc()
const;
247 [[nodiscard]]
QString cc()
const;
254 [[nodiscard]]
bool attachVcard()
const;
255 void setAttachVcard(
bool attach);
261 [[nodiscard]]
QString autocorrectionLanguage()
const;
262 void setAutocorrectionLanguage(
const QString &language);
268 [[nodiscard]]
bool disabledFcc()
const;
269 void setDisabledFcc(
bool);
275 [[nodiscard]]
bool pgpAutoSign()
const;
276 void setPgpAutoSign(
bool);
282 [[nodiscard]]
bool pgpAutoEncrypt()
const;
283 void setPgpAutoEncrypt(
bool);
289 [[nodiscard]]
bool autocryptEnabled()
const;
290 void setAutocryptEnabled(
const bool);
296 [[nodiscard]]
bool autocryptPrefer()
const;
297 void setAutocryptPrefer(
const bool);
304 [[nodiscard]]
bool encryptionOverride()
const;
305 void setEncryptionOverride(
const bool);
311 [[nodiscard]]
bool warnNotSign()
const;
312 void setWarnNotSign(
const bool);
318 [[nodiscard]]
bool warnNotEncrypt()
const;
319 void setWarnNotEncrypt(
const bool);
325 [[nodiscard]]
QString defaultDomainName()
const;
326 void setDefaultDomainName(
const QString &domainName);
343 [[nodiscard]]
QString signatureText(
bool *ok =
nullptr)
const;
349 [[nodiscard]]
bool signatureIsInlinedHtml()
const;
353 [[nodiscard]]
QString transport()
const;
354 void setTransport(
const QString &);
358 [[nodiscard]]
QString fcc()
const;
364 [[nodiscard]]
QString drafts()
const;
365 void setDrafts(
const QString &);
370 [[nodiscard]]
QString templates()
const;
371 void setTemplates(
const QString &);
379 [[nodiscard]]
QString dictionary()
const;
380 void setDictionary(
const QString &);
383 [[nodiscard]]
QString xface()
const;
384 void setXFace(
const QString &);
385 [[nodiscard]]
bool isXFaceEnabled()
const;
386 void setXFaceEnabled(
bool);
389 [[nodiscard]]
QString face()
const;
391 [[nodiscard]]
bool isFaceEnabled()
const;
392 void setFaceEnabled(
bool);
405 [[nodiscard]]
bool isNull()
const;
407 [[nodiscard]]
static QString mimeDataType();
408 [[nodiscard]]
static bool canDecode(
const QMimeData *);
409 void populateMimeData(
QMimeData *)
const;
428 void setIsDefault(
bool flag);
434 void setUoid(uint aUoid);
436 [[nodiscard]]
const QStringList activities()
const;
439 [[nodiscard]]
bool enabledActivities()
const;
440 void setEnabledActivities(
bool a);
446 [[nodiscard]]
bool signatureIsCommand()
const;
449 [[nodiscard]]
bool signatureIsPlainFile()
const;
452 [[nodiscard]]
bool signatureIsInline()
const;
455 [[nodiscard]]
QString signatureFile()
const;
456 void setSignatureFile(
const QString &);
459 [[nodiscard]]
QString signatureInlineText()
const;
460 void setSignatureInlineText(
const QString &);
463 [[nodiscard]]
bool useSignatureFile()
const;
466 bool mIsDefault =
false;