summaryrefslogtreecommitdiff
path: root/x11/libqpe-x11
Unidiff
Diffstat (limited to 'x11/libqpe-x11') (more/less context) (ignore whitespace changes)
-rw-r--r--x11/libqpe-x11/qpe/qpeapplication.cpp26
-rw-r--r--x11/libqpe-x11/qpe/qpeapplication.h9
-rw-r--r--x11/libqpe-x11/qt/qwindowsystem_qws.h19
3 files changed, 53 insertions, 1 deletions
diff --git a/x11/libqpe-x11/qpe/qpeapplication.cpp b/x11/libqpe-x11/qpe/qpeapplication.cpp
index 6e4a96c..8785c74 100644
--- a/x11/libqpe-x11/qpe/qpeapplication.cpp
+++ b/x11/libqpe-x11/qpe/qpeapplication.cpp
@@ -634,2 +634,28 @@ void QPEApplication::hideOrQuit() {
634 634
635/*!
636 \internal
637*/
638void QPEApplication::prepareForTermination( bool willrestart )
639{
640 if ( willrestart ) {
641 // Draw a big wait icon, the image can be altered in later revisions
642 // QWidget *d = QApplication::desktop();
643 QImage img = Resource::loadImage( "launcher/new_wait" );
644 QPixmap pix;
645 pix.convertFromImage( img.smoothScale( 1 * img.width(), 1 * img.height() ) );
646 QLabel *lblWait = new QLabel( 0, "wait hack!", QWidget::WStyle_Customize |
647 QWidget::WStyle_NoBorder | QWidget::WStyle_Tool );
648 lblWait->setPixmap( pix );
649 lblWait->setAlignment( QWidget::AlignCenter );
650 lblWait->show();
651 lblWait->showMaximized();
652 }
653#ifndef SINGLE_APP
654 { QCopEnvelope envelope( "QPE/System", "forceQuit()" );
655 }
656 processEvents(); // ensure the message goes out.
657 sleep( 1 ); // You have 1 second to comply.
658#endif
659}
660
635#if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) 661#if defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX)
diff --git a/x11/libqpe-x11/qpe/qpeapplication.h b/x11/libqpe-x11/qpe/qpeapplication.h
index 2af1c66..333f331 100644
--- a/x11/libqpe-x11/qpe/qpeapplication.h
+++ b/x11/libqpe-x11/qpe/qpeapplication.h
@@ -56,2 +56,10 @@ public:
56 56
57// QWS bits
58 enum screenSaverHint {
59 Disable = 0,
60 DisableLightOff = 1,
61 DisableSuspend = 2,
62 Enable = 100
63 };
64
57signals: 65signals:
@@ -80,2 +88,3 @@ protected:
80 virtual void shutdown(); 88 virtual void shutdown();
89 void prepareForTermination(bool willrestart);
81 bool eventFilter( QObject*, QEvent* ); 90 bool eventFilter( QObject*, QEvent* );
diff --git a/x11/libqpe-x11/qt/qwindowsystem_qws.h b/x11/libqpe-x11/qt/qwindowsystem_qws.h
index 7bc43c5..2652f5f 100644
--- a/x11/libqpe-x11/qt/qwindowsystem_qws.h
+++ b/x11/libqpe-x11/qt/qwindowsystem_qws.h
@@ -3,2 +3,3 @@
3 3
4class QWSScreenSaver;
4class QWSServer { 5class QWSServer {
@@ -13,5 +14,21 @@ QWSServer(){}
13 } 14 }
15 static void setScreenSaver( QWSScreenSaver* ) {
14 16
15}; 17 }
18 static void setScreenSaverInterval( int ) {
19
20 }
21 static void setScreenSaverIntervals( int[] ) {
22
23 }
24 static void screenSaverActivate( bool ) {
16 25
26 }
27 static void setDesktopBackground( const QImage& ) {
28
29 }
30
31};
32struct QWSScreenSaver {
33};
17 34