kpimidentities
22 #ifndef KPIMIDENTITES_IDENTITY_H
23 #define KPIMIDENTITES_IDENTITY_H
25 #include "kpimidentities_export.h"
26 #include "signature.h"
28 #include <kdemacros.h>
30 #include <QtCore/QString>
31 #include <QtCore/QStringList>
32 #include <QtCore/QList>
33 #include <QtCore/QHash>
34 #include <QtCore/QVariant>
36 namespace KPIMIdentities
45 namespace KPIMIdentities
48 static const char s_uoid[] =
"uoid";
49 static const char s_identity[] =
"Identity";
50 static const char s_name[] =
"Name";
51 static const char s_organization[] =
"Organization";
52 static const char s_pgps[] =
"PGP Signing Key";
53 static const char s_pgpe[] =
"PGP Encryption Key";
54 static const char s_smimes[] =
"SMIME Signing Key";
55 static const char s_smimee[] =
"SMIME Encryption Key";
56 static const char s_prefcrypt[] =
"Preferred Crypto Message Format";
57 static const char s_email[] =
"Email Address";
58 static const char s_replyto[] =
"Reply-To Address";
59 static const char s_bcc[] =
"Bcc";
60 static const char s_cc[] =
"Cc";
61 static const char s_vcard[] =
"VCardFile";
62 static const char s_transport[] =
"Transport";
63 static const char s_fcc[] =
"Fcc";
64 static const char s_drafts[] =
"Drafts";
65 static const char s_templates[] =
"Templates";
66 static const char s_dict[] =
"Dictionary";
67 static const char s_xface[] =
"X-Face";
68 static const char s_xfaceenabled[] =
"X-FaceEnabled";
69 static const char s_signature[] =
"Signature";
70 static const char s_emailAliases[] =
"Email Aliases";
71 static const char s_attachVcard[] =
"Attach Vcard";
72 static const char s_autocorrectionLanguage[] =
"Autocorrection Language";
73 static const char s_disabledFcc[] =
"Disable Fcc";
74 static const char s_pgpautosign[] =
"Pgp Auto Sign";
75 static const char s_defaultDomainName[] =
"Default Domain";
90 friend KPIMIDENTITIES_EXPORT
QDataStream &
operator<<
92 friend KPIMIDENTITIES_EXPORT
QDataStream &
operator>>
109 bool operator== (
const Identity &other )
const;
112 bool operator!= (
const Identity &other )
const;
115 bool operator< (
const Identity &other )
const;
118 bool operator> (
const Identity &other )
const;
121 bool operator<= (
const Identity &other )
const;
124 bool operator>= (
const Identity &other )
const;
127 bool mailingAllowed()
const;
133 void setIdentityName(
const QString &name );
136 bool isDefault()
const;
143 void setFullName(
const QString& );
147 void setOrganization(
const QString& );
151 void setPGPEncryptionKey(
const QByteArray &key );
155 void setPGPSigningKey(
const QByteArray &key );
159 void setSMIMEEncryptionKey(
const QByteArray &key );
163 void setSMIMESigningKey(
const QByteArray &key );
165 QString preferredCryptoMessageFormat()
const;
166 void setPreferredCryptoMessageFormat(
const QString& );
174 KPIMIDENTITIES_DEPRECATED
QString emailAddr()
const;
175 KPIMIDENTITIES_DEPRECATED
void setEmailAddr(
const QString& );
183 QString primaryEmailAddress()
const;
184 void setPrimaryEmailAddress(
const QString & email );
192 void setEmailAliases(
const QStringList & aliases );
201 bool matchesEmailAddress(
const QString & addr )
const;
205 void setVCardFile(
const QString& );
213 void setReplyToAddr(
const QString& );
229 bool attachVcard()
const;
230 void setAttachVcard(
bool attach);
235 QString autocorrectionLanguage()
const;
236 void setAutocorrectionLanguage(
const QString& language);
241 bool disabledFcc()
const;
242 void setDisabledFcc(
bool);
247 bool pgpAutoSign()
const;
248 void setPgpAutoSign(
bool);
253 QString defaultDomainName()
const;
254 void setDefaultDomainName(
const QString &domainName);
257 void setSignature(
const Signature &sig );
267 QString signatureText(
bool *ok = 0 )
const;
273 bool signatureIsInlinedHtml()
const;
278 void setTransport(
const QString& );
290 void setDrafts(
const QString& );
297 void setTemplates(
const QString& );
306 void setDictionary(
const QString& );
310 void setXFace(
const QString& );
311 bool isXFaceEnabled()
const;
312 void setXFaceEnabled(
const bool );
328 static bool canDecode(
const QMimeData* );
334 void readConfig(
const KConfigGroup & );
338 void writeConfig( KConfigGroup & )
const;
348 void setIsDefault(
bool flag );
353 void setUoid( uint aUoid );
361 bool signatureIsCommand()
const;
364 bool signatureIsPlainFile()
const;
367 bool signatureIsInline()
const;
371 void setSignatureFile(
const QString& );
374 QString signatureInlineText()
const;
375 void setSignatureInlineText(
const QString& );
378 bool useSignatureFile()
const;
Manages the list of identities.
Abstraction of a signature (aka "footer").
User identity information.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:46 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.