author | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-01-25 22:14:26 (UTC) |
commit | 15318cad33835e4e2dc620d033e43cd930676cdd (patch) (unidiff) | |
tree | c2fa0399a2c47fda8e2cd0092c73a809d17f68eb /core/opie-login/qdmdialogimpl.h | |
download | opie-15318cad33835e4e2dc620d033e43cd930676cdd.zip opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2 |
Initial revision
Diffstat (limited to 'core/opie-login/qdmdialogimpl.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/opie-login/qdmdialogimpl.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/core/opie-login/qdmdialogimpl.h b/core/opie-login/qdmdialogimpl.h new file mode 100644 index 0000000..d62695b --- a/dev/null +++ b/core/opie-login/qdmdialogimpl.h | |||
@@ -0,0 +1,90 @@ | |||
1 | //-- -*- c++ -*- | ||
2 | /********************************************************************** | ||
3 | ** Copyright (C) 2001 LISA Systems | ||
4 | ** | ||
5 | ** This file is an additional part of Qtopia Environment. | ||
6 | ** | ||
7 | ** This file may be distributed and/or modified under the terms of the | ||
8 | ** GNU General Public License version 2 as published by the Free Software | ||
9 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
10 | ** packaging of this file. | ||
11 | ** | ||
12 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
13 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
14 | ** | ||
15 | ** For further information contact info@lisa.de | ||
16 | ** | ||
17 | **********************************************************************/ | ||
18 | |||
19 | /* | ||
20 | * AUTHOR: Christian Rahn | ||
21 | * EMAIL: cdr@lisa.de | ||
22 | * | ||
23 | * $Id$ | ||
24 | */ | ||
25 | |||
26 | #ifndef _QDM_IMPL_H | ||
27 | #define _QDM_IMPL_H | ||
28 | |||
29 | #include "qdm_config.h" | ||
30 | |||
31 | #if defined(QT_QWS_LOGIN) | ||
32 | |||
33 | #include "qdmdialog.h" | ||
34 | |||
35 | class InputMethods; | ||
36 | |||
37 | class QDMDialogImpl : public QDMDialog | ||
38 | { | ||
39 | Q_OBJECT | ||
40 | |||
41 | public: | ||
42 | /** Pop up login dialog and do all stuff */ | ||
43 | static bool login( QWidget * parent = 0 ); | ||
44 | |||
45 | protected: | ||
46 | /** a protected constructor */ | ||
47 | QDMDialogImpl( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags f = 0 ); | ||
48 | ~QDMDialogImpl(); | ||
49 | |||
50 | /** Timer for clock display */ | ||
51 | void timerEvent( QTimerEvent * ); | ||
52 | |||
53 | /** The Timer for the clock */ | ||
54 | int clockTimer; | ||
55 | |||
56 | /** Conersation function for PAM */ | ||
57 | // int PAM_conv (int num_msg, pam_message_type **msg, struct pam_response **resp, void *); | ||
58 | |||
59 | /** Just become (i.e. log in as) user <name> */ | ||
60 | bool changePersona( const char *name ); | ||
61 | |||
62 | /** Inform about an incorrect given password */ | ||
63 | void informBadPassword(); | ||
64 | |||
65 | private: | ||
66 | InputMethods *input; | ||
67 | |||
68 | protected slots: | ||
69 | /** These got to be overridden so that the login dialog can't be circumvented */ | ||
70 | virtual void accept (); | ||
71 | virtual void reject (); | ||
72 | |||
73 | public slots: | ||
74 | /** Display the atual time and date */ | ||
75 | void showTime( void ); | ||
76 | |||
77 | /** login button pressed */ | ||
78 | virtual void slot_login(); | ||
79 | |||
80 | /** Shutdown button pressed */ | ||
81 | virtual void slot_shutdown(); | ||
82 | |||
83 | /** Sleep button pressed */ | ||
84 | virtual void slot_sleepmode(); | ||
85 | }; | ||
86 | |||
87 | #endif //-- QT_QWS_LOGIN | ||
88 | |||
89 | #endif //-- _QDM_IMPL_H | ||
90 | |||