summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/opie-login/loginapplication.cpp27
-rw-r--r--core/opie-login/loginapplication.h27
-rw-r--r--core/opie-login/loginwindowimpl.cpp29
-rw-r--r--core/opie-login/loginwindowimpl.h27
-rw-r--r--core/opie-login/main.cpp27
5 files changed, 136 insertions, 1 deletions
diff --git a/core/opie-login/loginapplication.cpp b/core/opie-login/loginapplication.cpp
index cd58c47..103d63b 100644
--- a/core/opie-login/loginapplication.cpp
+++ b/core/opie-login/loginapplication.cpp
@@ -1,12 +1,39 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 Robert Griebl <sandman@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
1#include <pwd.h> 28#include <pwd.h>
2#include <grp.h> 29#include <grp.h>
3#include <unistd.h> 30#include <unistd.h>
4#include <stdlib.h> 31#include <stdlib.h>
5#include <signal.h> 32#include <signal.h>
6 33
7#ifdef USEPAM 34#ifdef USEPAM
8extern "C" { 35extern "C" {
9#include <security/pam_appl.h> 36#include <security/pam_appl.h>
10} 37}
11#else 38#else
12#include <crypt.h> 39#include <crypt.h>
diff --git a/core/opie-login/loginapplication.h b/core/opie-login/loginapplication.h
index a709c5b..062c088 100644
--- a/core/opie-login/loginapplication.h
+++ b/core/opie-login/loginapplication.h
@@ -1,12 +1,39 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 Robert Griebl <sandman@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
1#ifndef __OPIE_LOGINAPPLICATION_H__ 28#ifndef __OPIE_LOGINAPPLICATION_H__
2#define __OPIE_LOGINAPPLICATION_H__ 29#define __OPIE_LOGINAPPLICATION_H__
3 30
4#include <qstringlist.h> 31#include <qstringlist.h>
5 32
6#include <qpe/qpeapplication.h> 33#include <qpe/qpeapplication.h>
7 34
8#ifdef USEPAM 35#ifdef USEPAM
9struct pam_message; 36struct pam_message;
10struct pam_response; 37struct pam_response;
11#endif 38#endif
12 39
diff --git a/core/opie-login/loginwindowimpl.cpp b/core/opie-login/loginwindowimpl.cpp
index 3694513..fe2906a 100644
--- a/core/opie-login/loginwindowimpl.cpp
+++ b/core/opie-login/loginwindowimpl.cpp
@@ -1,12 +1,39 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 Robert Griebl <sandman@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
1#include <qapplication.h> 28#include <qapplication.h>
2#include <qpushbutton.h> 29#include <qpushbutton.h>
3#include <qlayout.h> 30#include <qlayout.h>
4#include <qframe.h> 31#include <qframe.h>
5#include <qlineedit.h> 32#include <qlineedit.h>
6#include <qtimer.h> 33#include <qtimer.h>
7#include <qcombobox.h> 34#include <qcombobox.h>
8#include <qpixmap.h> 35#include <qpixmap.h>
9#include <qlabel.h> 36#include <qlabel.h>
10#include <qpopupmenu.h> 37#include <qpopupmenu.h>
11#include <qmessagebox.h> 38#include <qmessagebox.h>
12#include <qimage.h> 39#include <qimage.h>
@@ -116,25 +143,25 @@ void LoginWindowImpl::backlight ( )
116 143
117class WaitLogo : public QLabel { 144class WaitLogo : public QLabel {
118public: 145public:
119 WaitLogo ( ) : QLabel ( 0, "wait hack!", WStyle_Customize | WStyle_NoBorder | WStyle_Tool ) 146 WaitLogo ( ) : QLabel ( 0, "wait hack!", WStyle_Customize | WStyle_NoBorder | WStyle_Tool )
120 { 147 {
121 QImage img = Resource::loadImage ( "launcher/new_wait" ); 148 QImage img = Resource::loadImage ( "launcher/new_wait" );
122 QPixmap pix; 149 QPixmap pix;
123 pix. convertFromImage ( img ); 150 pix. convertFromImage ( img );
124 setPixmap ( pix ); 151 setPixmap ( pix );
125 setAlignment ( AlignCenter ); 152 setAlignment ( AlignCenter );
126 move ( 0, 0 ); 153 move ( 0, 0 );
127 resize ( qApp-> desktop ( )-> width ( ), qApp-> desktop ( )-> height ( )); 154 resize ( qApp-> desktop ( )-> width ( ), qApp-> desktop ( )-> height ( ));
128 155
129 m_visible = false; 156 m_visible = false;
130 show ( ); 157 show ( );
131 } 158 }
132 159
133 virtual void showEvent ( QShowEvent *e ) 160 virtual void showEvent ( QShowEvent *e )
134 { 161 {
135 QLabel::showEvent ( e ); 162 QLabel::showEvent ( e );
136 m_visible = true; 163 m_visible = true;
137 } 164 }
138 165
139 virtual void paintEvent ( QPaintEvent *e ) 166 virtual void paintEvent ( QPaintEvent *e )
140 { 167 {
diff --git a/core/opie-login/loginwindowimpl.h b/core/opie-login/loginwindowimpl.h
index 2e2ba0d..e769b03 100644
--- a/core/opie-login/loginwindowimpl.h
+++ b/core/opie-login/loginwindowimpl.h
@@ -1,12 +1,39 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 Robert Griebl <sandman@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
1#ifndef __OPIE_LOGINWINDOW_IMPL_H__ 28#ifndef __OPIE_LOGINWINDOW_IMPL_H__
2#define __OPIE_LOGINWINDOW_IMPL_H__ 29#define __OPIE_LOGINWINDOW_IMPL_H__
3 30
4#include "loginwindow.h" 31#include "loginwindow.h"
5 32
6class InputMethods; 33class InputMethods;
7 34
8class LoginWindowImpl : public LoginWindow { 35class LoginWindowImpl : public LoginWindow {
9 Q_OBJECT 36 Q_OBJECT
10 37
11public: 38public:
12 LoginWindowImpl ( ); 39 LoginWindowImpl ( );
diff --git a/core/opie-login/main.cpp b/core/opie-login/main.cpp
index 91610af..2c10f77 100644
--- a/core/opie-login/main.cpp
+++ b/core/opie-login/main.cpp
@@ -1,12 +1,39 @@
1/*
2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 Robert Griebl <sandman@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
1#define _GNU_SOURCE 28#define _GNU_SOURCE
2 29
3#include <sys/types.h> 30#include <sys/types.h>
4#include <time.h> 31#include <time.h>
5#include <sys/time.h> 32#include <sys/time.h>
6#include <sys/resource.h> 33#include <sys/resource.h>
7#include <unistd.h> 34#include <unistd.h>
8#include <syslog.h> 35#include <syslog.h>
9#include <sys/wait.h> 36#include <sys/wait.h>
10#include <stdio.h> 37#include <stdio.h>
11#include <stdlib.h> 38#include <stdlib.h>
12#include <signal.h> 39#include <signal.h>