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>
31 namespace 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;
197 void changed( uint uoid );
205 void deleted( uint uoid );
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();
251 #endif // _KMAIL_IDENTITYMANAGER_H_
Manages the list of identities.
virtual void createDefaultIdentity(QString &, QString &)
This is called when no identity has been defined, so we need to create a default one.
QList< Identity > mIdentities
The list that will be seen by everyone.
User identity information.
QList< Identity > mShadowIdentities
The list that will be seen by the config dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:12 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.