-rw-r--r-- | core/launcher/serverapp.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/core/launcher/serverapp.cpp b/core/launcher/serverapp.cpp index 54cc313..3d88873 100644 --- a/core/launcher/serverapp.cpp +++ b/core/launcher/serverapp.cpp | |||
@@ -495,76 +495,48 @@ bool ServerApplication::screenLocked() | |||
495 | void ServerApplication::login(bool at_poweron) | 495 | void ServerApplication::login(bool at_poweron) |
496 | { | 496 | { |
497 | if ( !loggedin ) { | 497 | if ( !loggedin ) { |
498 | Global::terminateBuiltin("calibrate"); // No tr | 498 | Global::terminateBuiltin("calibrate"); // No tr |
499 | Password::authenticate(at_poweron); | 499 | Password::authenticate(at_poweron); |
500 | loggedin=1; | 500 | loggedin=1; |
501 | #ifndef QT_NO_COP | 501 | #ifndef QT_NO_COP |
502 | QCopEnvelope e( "QPE/Desktop", "unlocked()" ); | 502 | QCopEnvelope e( "QPE/Desktop", "unlocked()" ); |
503 | #endif | 503 | #endif |
504 | } | 504 | } |
505 | } | 505 | } |
506 | 506 | ||
507 | #if defined(QPE_HAVE_TOGGLELIGHT) | 507 | #if defined(QPE_HAVE_TOGGLELIGHT) |
508 | #include <qtopia/config.h> | 508 | #include <qtopia/config.h> |
509 | 509 | ||
510 | #include <sys/ioctl.h> | 510 | #include <sys/ioctl.h> |
511 | #include <sys/types.h> | 511 | #include <sys/types.h> |
512 | #include <fcntl.h> | 512 | #include <fcntl.h> |
513 | #include <unistd.h> | 513 | #include <unistd.h> |
514 | #include <errno.h> | 514 | #include <errno.h> |
515 | #include <linux/ioctl.h> | 515 | #include <linux/ioctl.h> |
516 | #include <time.h> | 516 | #include <time.h> |
517 | #endif | 517 | #endif |
518 | 518 | ||
519 | #if 0 | ||
520 | static bool blanked=FALSE; | ||
521 | |||
522 | static void blankScreen() | ||
523 | { | ||
524 | #ifdef QWS | ||
525 | QWidget w(0, 0, Qt::WStyle_Customize | Qt::WStyle_NoBorder | Qt::WStyle_Tool | Qt::WStyle_StaysOnTop | Qt::WPaintUnclipped); | ||
526 | w.resize( qt_screen->width(), qt_screen->height() ); | ||
527 | w.move(0, 0); | ||
528 | |||
529 | QPainter p(&w); | ||
530 | p.fillRect(w.rect(), QBrush(QColor(255,255,255)) ); | ||
531 | p.end(); | ||
532 | w.repaint(); | ||
533 | |||
534 | blanked = TRUE; | ||
535 | #endif | ||
536 | } | ||
537 | |||
538 | static void darkScreen() | ||
539 | { | ||
540 | /* ### Screen blanking ODevice */ | ||
541 | #if 0 | ||
542 | qpe_setBacklight(0); // force off | ||
543 | #endif | ||
544 | } | ||
545 | #endif | ||
546 | |||
547 | namespace { | 519 | namespace { |
548 | void execAutoStart(const QDateTime& suspendTime ) { | 520 | void execAutoStart(const QDateTime& suspendTime ) { |
549 | QString appName; | 521 | QString appName; |
550 | int delay; | 522 | int delay; |
551 | QDateTime now = QDateTime::currentDateTime(); | 523 | QDateTime now = QDateTime::currentDateTime(); |
552 | 524 | ||
553 | Config cfg( "autostart" ); | 525 | Config cfg( "autostart" ); |
554 | cfg.setGroup( "AutoStart" ); | 526 | cfg.setGroup( "AutoStart" ); |
555 | appName = cfg.readEntry( "Apps", "" ); | 527 | appName = cfg.readEntry( "Apps", "" ); |
556 | delay = cfg.readNumEntry( "Delay", 0 ); | 528 | delay = cfg.readNumEntry( "Delay", 0 ); |
557 | 529 | ||
558 | // If the time between suspend and resume was longer then the | 530 | // If the time between suspend and resume was longer then the |
559 | // value saved as delay, start the app | 531 | // value saved as delay, start the app |
560 | if ( suspendTime.secsTo( now ) >= ( delay * 60 ) && !appName.isEmpty() ) { | 532 | if ( suspendTime.secsTo( now ) >= ( delay * 60 ) && !appName.isEmpty() ) { |
561 | QCopEnvelope e( "QPE/System", "execute(QString)" ); | 533 | QCopEnvelope e( "QPE/System", "execute(QString)" ); |
562 | e << QString( appName ); | 534 | e << QString( appName ); |
563 | } | 535 | } |
564 | } | 536 | } |
565 | } | 537 | } |
566 | 538 | ||
567 | 539 | ||
568 | void ServerApplication::togglePower() | 540 | void ServerApplication::togglePower() |
569 | { | 541 | { |
570 | static bool excllock = false; | 542 | static bool excllock = false; |