summaryrefslogtreecommitdiff
path: root/core/launcher/serverapp.cpp
Unidiff
Diffstat (limited to 'core/launcher/serverapp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/serverapp.cpp28
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
@@ -507,52 +507,24 @@ void ServerApplication::login(bool at_poweron)
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
520static bool blanked=FALSE;
521
522static 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
538static void darkScreen()
539{
540 /* ### Screen blanking ODevice */
541#if 0
542 qpe_setBacklight(0); // force off
543#endif
544}
545#endif
546
547namespace { 519namespace {
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