Patch from Romain H. to create notes from the DCOP interface.
[basket4.git] / src / password.h
blobc6239ec9d56e93feef2a59c90169fe844e96d64c
1 /***************************************************************************
2 * Copyright (C) 2006 by Petri Damsten *
3 * damu@iki.fi *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
20 #ifndef PASSWORD_H
21 #define PASSWORD_H
23 #include <config.h>
25 #ifdef HAVE_LIBGPGME
27 #include "passwordlayout.h"
28 #include <kdialogbase.h>
30 /**
31 @author Petri Damsten <damu@iki.fi>
33 class Password : public PasswordLayout
35 Q_OBJECT
36 public:
37 Password(QWidget *parent, const char *name = 0);
38 ~Password();
41 class PasswordDlg : public KDialogBase
43 Q_OBJECT
44 public:
45 PasswordDlg(QWidget *parent, const char *name = 0);
46 ~PasswordDlg();
48 QString key() const;
49 int type() const;
50 void setKey(const QString& key);
51 void setType(int type);
53 protected slots:
54 virtual void slotOk();
56 private:
57 Password* w;
60 #endif // HAVE_LIBGPGME
62 #endif // PASSWORD_H