KIdentityManagementCore Namespace

Core classes of the identity management library. More...

Header: #include <signature.h>
CMake: find_package(KPim6IdentityManagementCore REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::IdentityManagementCore)

Classes

Functions

const QSet<QString> &allEmails()
bool thatIsMe(const QString &email)

Detailed Description

Classes

class Identity

User identity information. More...

class IdentityActivitiesAbstract

The IdentityActivitiesAbstract class. More...

class IdentityManager

Manages the list of identities. More...

class IdentityModel

The IdentityModel class. More...

class IdentityTreeModel

The IdentityTreeModel class. More...

class IdentityTreeSortProxyModel

The IdentityTreeSortProxyModel class. More...

class Signature

Abstraction of a signature (aka "footer"). More...

Function Documentation

const QSet<QString> &KIdentityManagementCore::allEmails()

Very fast version of IdentityManager::allEmails, that uses an internal cache. The cache is updated with IdentityManager::changed signal. Returns All email addresses and aliases of the identities (all lowered).

bool KIdentityManagementCore::thatIsMe(const QString &email)

Very fast version of IdentityManager::thatIsMe, that uses an internal cache (allEmails)

Note: Make sure that only an email address is used as parameter and NO name <email>

Note: Emails are tested with email.toLower(), so no need to lower them before. email the email address to check Returns true if this email address matches one of our identities, false otherwise