Commit b9ef975f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Import identity

parent 63bfa30a
Pipeline #20968 passed with stage
in 8 minutes and 59 seconds
......@@ -82,8 +82,9 @@ QString ImportMailJobInterfaceTestImpl::adaptNewResourceUrl(bool overwriteResour
void ImportMailJobInterfaceTestImpl::addNewIdentity(const QString &name, KConfigGroup &group, int defaultIdentities, int oldUid)
{
qDebug() << " void ImportMailJobInterfaceTestImpl::addNewIdentity(const QString &name, KConfigGroup &group, int defaultIdentities, int oldUid) not implemented yet";
qDebug() << " void ImportMailJobInterfaceTestImpl::addNewIdentity(const QString &name, KConfigGroup &group, int defaultIdentities, int oldUid) not implemented yet" << oldUid;
KIdentityManagement::Identity identity;
identity.setUoid(mIdentityUoid++);
group.writeEntry(QStringLiteral("Name"), name);
group.sync();
......@@ -96,6 +97,7 @@ void ImportMailJobInterfaceTestImpl::addNewIdentity(const QString &name, KConfig
//mIdentityManager->setAsDefault(identity->uoid());
}
}
//TODO write identity ?
//TODO log it.
//mIdentityManager->commit();
......
......@@ -45,6 +45,8 @@ protected:
void addNewIdentity(const QString &name, KConfigGroup &group, int defaultIdentities, int oldUid) override;
void importCustomMailTransport(const QString &identifierValue, const KConfigGroup &group, int defaultTransport, int transportId) override;
void importSmtpMailTransport(const KConfigGroup &group, int defaultTransport, int transportId) override;
private:
uint mIdentityUoid = 1;
};
class ImportMailJobInterfaceTest : public QObject
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment