summaryrefslogtreecommitdiff
path: root/core/opie-login/passworddialogimpl.h
authorzecke <zecke>2004-07-09 21:36:37 (UTC)
committer zecke <zecke>2004-07-09 21:36:37 (UTC)
commit944adb8bf2741a16cf627d19e08f51c08920ad89 (patch) (unidiff)
tree5f9edc9784e0268a00fe68ec74d7151900c5183a /core/opie-login/passworddialogimpl.h
parentc5d3262afd775bce81b99c5dc06e74c4686cee2a (diff)
downloadopie-944adb8bf2741a16cf627d19e08f51c08920ad89.zip
opie-944adb8bf2741a16cf627d19e08f51c08920ad89.tar.gz
opie-944adb8bf2741a16cf627d19e08f51c08920ad89.tar.bz2
Add setting a root password if none is set to opie-login
If you directly start Opie-Taskbar or use AutoLogin you will not be presented by a set root password gui
Diffstat (limited to 'core/opie-login/passworddialogimpl.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/opie-login/passworddialogimpl.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/core/opie-login/passworddialogimpl.h b/core/opie-login/passworddialogimpl.h
new file mode 100644
index 0000000..f8953dd
--- a/dev/null
+++ b/core/opie-login/passworddialogimpl.h
@@ -0,0 +1,65 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2004 Holger Hans Peter Freyther <zecke@handhelds.org>
4           .>+-=
5 _;:,     .>    :=|. This file is free software; you can
6.> <`_,   >  .   <= redistribute it and/or modify it under
7:`=1 )Y*s>-.--   : the terms of the GNU General Public
8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10     ._= =}       : or (at your option) any later version.
11    .%`+i>       _;_.
12    .i_,=:_.      -<s. This file is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
17..}^=.=       =       ; Public License for more details.
18++=   -.     .`     .:
19 :     =  ...= . :.=- You should have received a copy of the GNU
20 -.   .:....=;==+<; General Public License along with this file;
21  -_. . .   )=.  = see the file COPYING. If not, write to the
22    --        :-=` Free Software Foundation, Inc.,
23 59 Temple Place - Suite 330,
24 Boston, MA 02111-1307, USA.
25
26*/
27
28
29#ifndef OPIE_LOGIN_PASSWORDIMPL_DIALOG_H
30#define OPIE_LOGIN_PASSWORDIMPL_DIALOG_H
31
32#include "passworddialog.h"
33
34
35class QLineEdit;
36/**
37 * Small Dialog and Class to set the root password if it
38 * is not empty.
39 * \code
40 * if(PasswordDialogImpl::needDialog()) {
41 * PasswordDialogImpl *dia = new PasswordDialogImpl()
42 * dia->exec();
43 * dia->delete();
44 * }
45 */
46class PasswordDialogImpl : public PasswordDialog {
47 Q_OBJECT
48public:
49 PasswordDialogImpl( QWidget *parent );
50 ~PasswordDialogImpl();
51 static bool needDialog();
52
53protected slots:
54 void done( int );
55 void slotToggleEcho( bool );
56
57private:
58 void writePassword();
59 void writeShadow();
60 void error( const QString&, const QString& );
61 bool m_isSet : 1;
62};
63
64
65#endif