Debian Codegraph @

src/wallet.h

raw symbols SCIP
1 //
2 // C++ Interface: Wallet
3 //
4 // Description:
5 //
6 //
7 // Author: hooey <[email protected]>, (C) 2009
8 //
9 /*
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Library General Public
12 License version 2 as published by the Free Software Foundation.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Library General Public License for more details.
18
19 You should have received a copy of the GNU Library General Public License
20 along with this library; see the file COPYING.LIB. If not, write to
21 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 Boston, MA 02110-1301, USA.
23 */
24
25 #ifndef WALLET_H
26 #define WALLET_H
27
28 #include <kwallet_interface.h>
29
30 namespace QTerm{
31
32 class Wallet : public QObject
33 {
34 Q_OBJECT
35 public:
36 Wallet(QObject * parent = 0);
37 ~Wallet();
38 static bool isWalletAvailable();
39 QString readPassword(const QString & site, const QString & username);
40 bool writePassword(const QString & site, const QString & username, const QString & password);
41 bool removePassword(const QString & site, const QString & username);
42 void open();
43 void close();
44 signals:
45 void error(const QString & message);
46 private slots:
47 void walletOpened(const QString & wallet);
48 void walletClosed(int handle);
49 private:
50 OrgKdeKWalletInterface * m_wallet;
51 QString m_walletName;
52 int m_handle;
53 };
54
55 }
56 #endif // WALLET_H