kpimidentities
20#ifndef KPIMIDENTITIES_IDENTITYMANAGER_H
21#define KPIMIDENTITIES_IDENTITYMANAGER_H
23#include <kpimidentities/kpimidentities_export.h>
24#include <kconfiggroup.h>
25#include <QtCore/QObject>
31namespace KPIMIdentities
56 typedef QList<Identity>::Iterator Iterator;
57 typedef QList<Identity>::ConstIterator ConstIterator;
62 typedef Iterator iterator;
67 typedef ConstIterator const_iterator;
72 QString makeUnique(
const QString &name )
const;
77 bool isUnique(
const QString &name )
const;
86 bool hasPendingChanges()
const;
89 QStringList identities()
const;
96 QStringList shadowIdentities()
const;
108 const Identity &identityForAddress(
const QString &addresses )
const;
115 bool thatIsMe(
const QString &addressList )
const;
121 const Identity &identityForUoid( uint uoid )
const;
129 const Identity &identityForUoidOrDefault( uint uoid )
const;
132 const Identity &defaultIdentity()
const;
141 bool setAsDefault( uint uoid );
148 Identity &modifyIdentityForName(
const QString &identityName );
154 Identity &modifyIdentityForUoid( uint uoid );
161 bool removeIdentity(
const QString &identityName );
172 bool removeIdentityForced(
const QString &identityName );
174 ConstIterator begin()
const;
175 ConstIterator end()
const;
178 Iterator modifyBegin();
179 Iterator modifyEnd();
181 Identity &newFromScratch(
const QString &name );
182 Identity &newFromControlCenter(
const QString &name );
184 const QString &name=QString() );
188 QStringList allEmails()
const;
229 void identitiesChanged(
const QString &
id );
233 void slotIdentitiesChanged(
const QString &
id );
236 void writeConfig()
const;
237 void readConfig( KConfig *config );
238 QStringList groupList( KConfig *config )
const;
239 void createDefaultIdentity();
Manages the list of identities.
void added(const KPIMIdentities::Identity &ident)
Emitted on commit() for each new identity.
void changed(const KPIMIdentities::Identity &ident)
Emitted whenever the identity ident changed.
QList< Identity > mShadowIdentities
The list that will be seen by the config dialog.
void changed(uint uoid)
Emitted whenever the identity with Unique Object Identifier (UOID) uoid changed.
virtual void createDefaultIdentity(QString &, QString &)
This is called when no identity has been defined, so we need to create a default one.
void changed()
Emitted whenever a commit changes any configure option.
void deleted(uint uoid)
Emitted on commit() for each deleted identity.
QList< Identity > mIdentities
The list that will be seen by everyone.
User identity information.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.