libkpimidentities
KPIM::Identity Class Reference
User identity information. More...
#include <identity.h>
Public Types | |
typedef TQValueList< Identity > | List |
Public Member Functions | |
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 |
Identity (const TQString &id=TQString::null, const TQString &realName=TQString::null, const TQString &emailAddr=TQString::null, const TQString &organization=TQString::null, const TQString &replyToAddress=TQString::null) | |
~Identity () | |
bool | mailingAllowed () const |
TQString | identityName () const |
void | setIdentityName (const TQString &name) |
bool | isDefault () const |
uint | uoid () const |
TQString | fullName () const |
void | setFullName (const TQString &) |
TQString | organization () const |
void | setOrganization (const TQString &) |
KDE_DEPRECATED TQCString | pgpIdentity () const |
KDE_DEPRECATED void | setPgpIdentity (const TQCString &key) |
TQCString | pgpEncryptionKey () const |
void | setPGPEncryptionKey (const TQCString &key) |
TQCString | pgpSigningKey () const |
void | setPGPSigningKey (const TQCString &key) |
TQCString | smimeEncryptionKey () const |
void | setSMIMEEncryptionKey (const TQCString &key) |
TQCString | smimeSigningKey () const |
void | setSMIMESigningKey (const TQCString &key) |
Kleo::CryptoMessageFormat | preferredCryptoMessageFormat () const |
void | setPreferredCryptoMessageFormat (Kleo::CryptoMessageFormat format) |
KDE_DEPRECATED TQString | emailAddr () const |
KDE_DEPRECATED void | setEmailAddr (const TQString &email) |
TQString | primaryEmailAddress () const |
void | setPrimaryEmailAddress (const TQString &email) |
const TQStringList & | emailAliases () const |
void | setEmailAliases (const TQStringList &) |
bool | matchesEmailAddress (const TQString &addr) const |
TQString | vCardFile () const |
void | setVCardFile (const TQString &) |
TQString | fullEmailAddr () const |
TQString | replyToAddr () const |
void | setReplyToAddr (const TQString &) |
TQString | bcc () const |
void | setBcc (const TQString &aBcc) |
void | setSignature (const Signature &sig) |
Signature & | signature () |
const Signature & | signature () const |
TQString | signatureText (bool *ok=0) const |
TQString | transport () const |
void | setTransport (const TQString &) |
TQString | fcc () const |
void | setFcc (const TQString &) |
TQString | drafts () const |
void | setDrafts (const TQString &) |
TQString | templates () const |
void | setTemplates (const TQString &) |
TQString | dictionary () const |
void | setDictionary (const TQString &) |
TQString | xface () const |
void | setXFace (const TQString &) |
bool | isXFaceEnabled () const |
void | setXFaceEnabled (const bool) |
bool | isNull () const |
Static Public Member Functions | |
static const Identity & | null () |
Protected Member Functions | |
void | readConfig (const KConfigBase *) |
void | writeConfig (KConfigBase *) const |
void | setIsDefault (bool flag) |
void | setUoid (uint aUoid) |
bool | signatureIsCommand () const |
bool | signatureIsPlainFile () const |
bool | signatureIsInline () const |
TQString | signatureFile () const |
void | setSignatureFile (const TQString &) |
TQString | signatureInlineText () const |
void | setSignatureInlineText (const TQString &) |
bool | useSignatureFile () const |
Protected Attributes | |
uint | mUoid |
TQString | mIdentity |
TQString | mFullName |
TQString | mEmailAddr |
TQString | mOrganization |
TQStringList | mEmailAliases |
TQString | mReplyToAddr |
TQString | mBcc |
TQString | mVCardFile |
TQCString | mPGPEncryptionKey |
TQCString | mPGPSigningKey |
TQCString | mSMIMEEncryptionKey |
TQCString | mSMIMESigningKey |
TQString | mFcc |
TQString | mDrafts |
TQString | mTemplates |
TQString | mTransport |
TQString | mDictionary |
TQString | mXFace |
bool | mXFaceEnabled |
Signature | mSignature |
bool | mIsDefault |
Kleo::CryptoMessageFormat | mPreferredCryptoMessageFormat |
Friends | |
class | IdentityManager |
TQDataStream & | operator<< (TQDataStream &stream, const KPIM::Identity &ident) |
TQDataStream & | operator>> (TQDataStream &stream, KPIM::Identity &ident) |
Detailed Description
User identity information.Definition at line 89 of file identity.h.
Constructor & Destructor Documentation
Identity::Identity | ( | const TQString & | id = TQString::null , |
|
const TQString & | realName = TQString::null , |
|||
const TQString & | emailAddr = TQString::null , |
|||
const TQString & | organization = TQString::null , |
|||
const TQString & | replyToAddress = TQString::null | |||
) | [explicit] |
Identity::~Identity | ( | ) |
Member Function Documentation
bool Identity::operator== | ( | const Identity & | other | ) | const |
bool KPIM::Identity::operator< | ( | const Identity & | other | ) | const [inline] |
void Identity::readConfig | ( | const KConfigBase * | config | ) | [protected] |
Read configuration from config.
Group must be preset (or use KConfigGroup). Called from IdentityManager.
Definition at line 319 of file identity.cpp.
void Identity::writeConfig | ( | KConfigBase * | config | ) | const [protected] |
Write configuration to config.
Group must be preset (or use KConfigGroup). Called from IdentityManager.
Definition at line 356 of file identity.cpp.
bool Identity::mailingAllowed | ( | ) | const |
TQString KPIM::Identity::identityName | ( | ) | const [inline] |
bool KPIM::Identity::isDefault | ( | ) | const [inline] |
uint KPIM::Identity::uoid | ( | ) | const [inline] |
void Identity::setIsDefault | ( | bool | flag | ) | [protected] |
Set whether this identity is the default identity.
Since this affects all other identites, 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 445 of file identity.cpp.
TQString KPIM::Identity::fullName | ( | ) | const [inline] |
TQString KPIM::Identity::organization | ( | ) | const [inline] |
TQCString KPIM::Identity::pgpEncryptionKey | ( | ) | const [inline] |
TQCString KPIM::Identity::pgpSigningKey | ( | ) | const [inline] |
TQCString KPIM::Identity::smimeEncryptionKey | ( | ) | const [inline] |
TQCString KPIM::Identity::smimeSigningKey | ( | ) | const [inline] |
KDE_DEPRECATED TQString KPIM::Identity::emailAddr | ( | ) | const [inline] |
TQString KPIM::Identity::primaryEmailAddress | ( | ) | const [inline] |
primary email address (without the user name - only name@host).
The primary email address is used for all outgoing mail.
Definition at line 214 of file identity.h.
const TQStringList& KPIM::Identity::emailAliases | ( | ) | const [inline] |
TQString KPIM::Identity::vCardFile | ( | ) | const [inline] |
TQString Identity::fullEmailAddr | ( | void | ) | const |
email address in the format "username <name@host>" suitable for the "From:" field of email messages.
Definition at line 523 of file identity.cpp.
TQString KPIM::Identity::replyToAddr | ( | ) | const [inline] |
TQString KPIM::Identity::bcc | ( | ) | const [inline] |
bool KPIM::Identity::signatureIsCommand | ( | ) | const [inline, protected] |
- Returns:
- true if the signature is read from the output of a command
Definition at line 245 of file identity.h.
bool KPIM::Identity::signatureIsPlainFile | ( | ) | const [inline, protected] |
bool KPIM::Identity::signatureIsInline | ( | ) | const [inline, protected] |
TQString KPIM::Identity::signatureFile | ( | ) | const [inline, protected] |
TQString KPIM::Identity::signatureInlineText | ( | ) | const [inline, protected] |
bool KPIM::Identity::useSignatureFile | ( | ) | const [inline, protected] |
TQString Identity::signatureText | ( | bool * | ok = 0 |
) | const |
Returns the signature.
This method also takes care of special signature files that are shell scripts and handles them correct. So use this method to rectreive the contents of the signature file. If prompt
is false, no errors will be displayed (useful for retries).
Definition at line 633 of file identity.cpp.
TQString KPIM::Identity::transport | ( | ) | const [inline] |
The transport that is set for this identity.
Used to link a transport with an identity.
Definition at line 272 of file identity.h.
TQString KPIM::Identity::fcc | ( | ) | const [inline] |
The folder where sent messages from this identity will be stored by default.
Definition at line 277 of file identity.h.
TQString KPIM::Identity::drafts | ( | ) | const [inline] |
The folder where draft messages from this identity will be stored by default.
Definition at line 282 of file identity.h.
TQString KPIM::Identity::templates | ( | ) | const [inline] |
The folder where template messages from this identity will be stored by default.
Definition at line 287 of file identity.h.
TQString KPIM::Identity::dictionary | ( | ) | const [inline] |
TQString KPIM::Identity::xface | ( | ) | const [inline] |
The documentation for this class was generated from the following files: