[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kwallet/client
From: George Staikos <staikos () kde ! org>
Date: 2003-07-29 6:27:59
[Download RAW message or body]
CVS commit by staikos:
two utility functions (static)
M +20 -0 kwallet.cc 1.8
M +4 -0 kwallet.h 1.7
--- kdelibs/kwallet/client/kwallet.cc #1.7:1.8
@@ -78,4 +78,24 @@ Wallet::~Wallet() {
+QStringList Wallet::walletList() {
+DCOPReply r = DCOPRef("kded", "kwalletd").call("walletList");
+QStringList rc;
+ if (r.isValid()) {
+ r.get(rc);
+ }
+return rc;
+}
+
+
+bool Wallet::isOpen(const QString& name) {
+DCOPReply r = DCOPRef("kded", "kwalletd").call("isOpen", name);
+bool rc = false;
+ if (r.isValid()) {
+ r.get(rc);
+ }
+return rc;
+}
+
+
Wallet *Wallet::openWallet(const QString& name) {
DCOPReply r = DCOPRef("kded", "kwalletd").call("open", name);
--- kdelibs/kwallet/client/kwallet.h #1.6:1.7
@@ -44,4 +44,8 @@ class Wallet : public QObject, public DC
virtual ~Wallet();
+ static QStringList walletList();
+
+ static bool isOpen(const QString& name);
+
static Wallet* openWallet(const QString& name);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic