summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/setmasterpwwndimpl.h
Unidiff
Diffstat (limited to 'pwmanager/pwmanager/setmasterpwwndimpl.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/setmasterpwwndimpl.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/setmasterpwwndimpl.h b/pwmanager/pwmanager/setmasterpwwndimpl.h
new file mode 100644
index 0000000..56effc1
--- a/dev/null
+++ b/pwmanager/pwmanager/setmasterpwwndimpl.h
@@ -0,0 +1,72 @@
1/***************************************************************************
2 * *
3 * copyright (C) 2003 by Michael Buesch *
4 * email: mbuesch@freenet.de *
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License version 2 *
8 * as published by the Free Software Foundation. *
9 * *
10 ***************************************************************************/
11
12
13/***************************************************************************
14 * copyright (C) 2004 by Ulf Schenk
15 * This file is originaly based on version 1.0.1 of pwmanager
16 * and was modified to run on embedded devices that run microkde
17 *
18 * $Id$
19 **************************************************************************/
20
21#ifndef SETMASTERPWWNDIMPL_H
22#define SETMASTERPWWNDIMPL_H
23
24#include "setmasterpwwnd.h"
25
26#include <klocale.h>
27
28#include <stdint.h>
29#include <string>
30using std::string;
31
32class PwMKeyCard;
33
34/** set master pw wnd */
35class SetMasterPwWndImpl : public setMasterPwWnd
36{
37 Q_OBJECT
38public:
39 SetMasterPwWndImpl(QWidget* parent = 0, const char *name = 0);
40 ~SetMasterPwWndImpl();
41
42 static QString string_cardNone()
43 { return i18n("NONE"); }
44
45 /** returns the selected pw (or the key on the card) */
46 string getPw(bool *useCard);
47 /** set pointer to the keycard-access object */
48 void setPwMKeyCard(PwMKeyCard *_keyCard)
49 { keyCard = _keyCard; }
50
51public slots:
52 /** ok button pressed */
53 void okButton_slot();
54 /** cancel button pressed */
55 void cancelButton_slot();
56 /** "generate a new card" button pressed */
57 void genCardButton_slot();
58 /** "select current card" button pressed */
59 void selCardButton_slot();
60
61protected slots:
62 /** key from PwMKeyCard is available */
63 void keyAvailable_slot(uint32_t cardId, const string &key);
64
65protected:
66 /** key of currently inserted card */
67 string curCardKey;
68 /** pointer to the keycard-access object */
69 PwMKeyCard *keyCard;
70};
71
72#endif