[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9

Maximiliano Curia maxy at moszumanska.debian.org
Mon May 9 09:04:38 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=ad02d60

The following commit has been merged in the master branch:
commit ad02d6044ec7b060fe9648dc3742d9e6f205449a
Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
Date:   Thu Oct 27 01:58:47 2011 +0200

    Add removeAccount method that removes from KWallet everything related to an account
---
 wallet-interface.cpp | 6 ++++++
 wallet-interface.h   | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/wallet-interface.cpp b/wallet-interface.cpp
index 980ab19..4fbe1d1 100644
--- a/wallet-interface.cpp
+++ b/wallet-interface.cpp
@@ -190,3 +190,9 @@ void WalletInterface::removeAllEntries(const Tp::AccountPtr& account)
     m_wallet->setFolder(s_folderName);
     m_wallet->removeEntry(s_mapsPrefix + account->uniqueIdentifier());
 }
+
+void WalletInterface::removeAccount(const Tp::AccountPtr& account)
+{
+    removePassword(account);
+    removeAllEntries(account);
+}
diff --git a/wallet-interface.h b/wallet-interface.h
index 333932a..a42279e 100644
--- a/wallet-interface.h
+++ b/wallet-interface.h
@@ -64,6 +64,9 @@ public:
     /** Remove all the entries for the given account from kwallet */
     void removeAllEntries(const Tp::AccountPtr &account);
 
+    /** Remove entries and password for the account from kwallet */
+    void removeAccount(const Tp::AccountPtr &account);
+
 private:
     static const QLatin1String s_folderName;
     static const QLatin1String s_mapsPrefix;

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list