X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.h;h=0c6e88dc44937ab7aecdae0d66cfc52867556563;hp=083bf8cf051e296ee5e124bdc7bee2939446a5ab;hb=4c83963b1d77f4c2dbae606876be0eee59f53dae;hpb=061528786d1dac1d1bf4904c86b71d95270dfd37 diff --git a/src/core/core.h b/src/core/core.h index 083bf8cf..0c6e88dc 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -79,6 +79,19 @@ class Core : public QObject { return instance()->storage->getUserSetting(userId, settingName, data); } + /* Identity handling */ + static inline IdentityId createIdentity(UserId user, CoreIdentity &identity) { + return instance()->storage->createIdentity(user, identity); + } + static bool updateIdentity(UserId user, const CoreIdentity &identity) { + return instance()->storage->updateIdentity(user, identity); + } + static void removeIdentity(UserId user, IdentityId identityId) { + instance()->storage->removeIdentity(user, identityId); + } + static QList identities(UserId user) { + return instance()->storage->identities(user); + } //! Create a Network in the Storage and store it's Id in the given NetworkInfo /** \note This method is thredsafe.