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

Start to port to qt5keychain

parent b69f2557
Pipeline #62190 failed with stage
in 25 minutes and 28 seconds
......@@ -82,6 +82,7 @@ target_link_libraries(akonadi_google_resource
KPim::GAPIContacts
KPim::GAPICore
KPim::GAPITasks
qt5keychain
)
install(TARGETS akonadi_google_resource ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
......
......@@ -10,6 +10,8 @@
#include <KGAPI/Account>
#include <KWallet>
#include <qt5keychain/keychain.h>
using namespace QKeychain;
using namespace KWallet;
using namespace KGAPI2;
......@@ -107,9 +109,9 @@ bool GoogleSettings::storeAccount(AccountPtr account)
void GoogleSettings::cleanup()
{
if (m_account && m_wallet) {
m_wallet->removeEntry(m_account->accountName());
}
auto deleteJob = new DeletePasswordJob(googleWalletFolder);
deleteJob->setKey(m_account->accountName());
deleteJob->start();
}
void GoogleSettings::addCalendar(const QString &calendar)
......
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