[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=2f1c749

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

    Add isOpen method to check if the wallet was succesfully opened
---
 wallet-interface.cpp | 5 +++++
 wallet-interface.h   | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/wallet-interface.cpp b/wallet-interface.cpp
index 4fbe1d1..497926c 100644
--- a/wallet-interface.cpp
+++ b/wallet-interface.cpp
@@ -196,3 +196,8 @@ void WalletInterface::removeAccount(const Tp::AccountPtr& account)
     removePassword(account);
     removeAllEntries(account);
 }
+
+bool WalletInterface::isOpen() const
+{
+    return (!m_wallet.isNull() && m_wallet->isOpen());
+}
diff --git a/wallet-interface.h b/wallet-interface.h
index a42279e..629dbe1 100644
--- a/wallet-interface.h
+++ b/wallet-interface.h
@@ -67,6 +67,9 @@ public:
     /** Remove entries and password for the account from kwallet */
     void removeAccount(const Tp::AccountPtr &account);
 
+    /** Determine if the wallet is open, and is a valid wallet handle */
+    bool isOpen() const;
+
 private:
     static const QLatin1String s_folderName;
     static const QLatin1String s_mapsPrefix;

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list