KIdentityManagement
identitymanager.h
37 explicit IdentityManager(bool readonly = false, QObject *parent = nullptr, const char *name = nullptr);
Manages the list of identities.
Definition identitymanager.h:26
bool removeIdentityForced(const QString &identityName)
Removes the identity with name identityName Will return false if the identity is not found,...
QStringList allEmails() const
Returns the list of all email addresses (only name@host) from all identities.
void rollback()
Re-read the config from disk and forget changes.
virtual void createDefaultIdentity(QString &, QString &)
This is called when no identity has been defined, so we need to create a default one.
static IdentityManager * self()
Creates or reuses the identity manager instance for this process.
void changed(const KIdentityManagementCore::Identity &ident)
Emitted whenever the identity ident changed.
QStringList shadowIdentities() const
Convenience method.
QStringList identities() const
const Identity & identityForUoid(uint uoid) const
Identity & modifyIdentityForName(const QString &identityName)
Identity & modifyIdentityForUoid(uint uoid)
Iterator modifyBegin()
Iterator used by the configuration dialog, which works on a separate list of identities,...
void changed(uint uoid)
Emitted whenever the identity with Unique Object Identifier (UOID) uoid changed.
void commit()
Commit changes to disk and emit changed() if necessary.
const Identity & defaultIdentity() const
bool hasPendingChanges() const
Check whether there are any unsaved changes.
void saveIdentity(const Identity &ident)
Store a new identity or modify an existing identity based on an independent identity object.
bool removeIdentity(const QString &identityName)
Removes the identity with name identityName Will return false if the identity is not found,...
void added(const KIdentityManagementCore::Identity &ident)
Emitted on commit() for each new identity.
void sort()
Sort the identities by name (the default is always first).
const Identity & identityForUoidOrDefault(uint uoid) const
Convenience method.
void deleted(uint uoid)
Emitted on commit() for each deleted identity.
QString makeUnique(const QString &name) const
bool setAsDefault(uint uoid)
Sets the identity with Unique Object Identifier (UOID) uoid to be new the default identity.
IdentityManager(bool readonly=false, QObject *parent=nullptr, const char *name=nullptr)
Create an identity manager, which loads the emailidentities file to create identities.
void changed()
Emitted whenever a commit changes any configure option.
const Identity & identityForAddress(const QString &addresses) const
bool thatIsMe(const QString &addressList) const
bool isUnique(const QString &name) const
ConstIterator
Iterator
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.