summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/playlistwidget.cpp
authorllornkcor <llornkcor>2002-04-21 22:23:53 (UTC)
committer llornkcor <llornkcor>2002-04-21 22:23:53 (UTC)
commit27522ce8deaa0bdc23a6b88002bc1d2e5f918ce6 (patch) (unidiff)
tree05f6e301fd80c5551301ad88c19c3bcb061834ac /core/multimedia/opieplayer/playlistwidget.cpp
parent53a4a3f6398640d182a067a8ffef9b402cd35d7a (diff)
downloadopie-27522ce8deaa0bdc23a6b88002bc1d2e5f918ce6.zip
opie-27522ce8deaa0bdc23a6b88002bc1d2e5f918ce6.tar.gz
opie-27522ce8deaa0bdc23a6b88002bc1d2e5f918ce6.tar.bz2
comment out grabKeyboard stuff till that function works properly
Diffstat (limited to 'core/multimedia/opieplayer/playlistwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistwidget.cpp51
1 files changed, 46 insertions, 5 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp
index faa6e3f..70b7cef 100644
--- a/core/multimedia/opieplayer/playlistwidget.cpp
+++ b/core/multimedia/opieplayer/playlistwidget.cpp
@@ -19,6 +19,7 @@
19**********************************************************************/ 19**********************************************************************/
20// code added by L. J. Potter Sat 03-02-2002 06:17:54 20// code added by L. J. Potter Sat 03-02-2002 06:17:54
21#define QTOPIA_INTERNAL_FSLP 21#define QTOPIA_INTERNAL_FSLP
22#include <qpe/qcopenvelope_qws.h>
22 23
23#include <qpe/qpemenubar.h> 24#include <qpe/qpemenubar.h>
24#include <qpe/qpetoolbar.h> 25#include <qpe/qpetoolbar.h>
@@ -62,6 +63,17 @@
62#include "audiowidget.h" 63#include "audiowidget.h"
63#include "videowidget.h" 64#include "videowidget.h"
64 65
66#include <unistd.h>
67#include <sys/file.h>
68#include <sys/ioctl.h>
69#include <sys/soundcard.h>
70
71// for setBacklight()
72#include <linux/fb.h>
73#include <sys/types.h>
74#include <sys/stat.h>
75#include <stdlib.h>
76
65#define BUTTONS_ON_TOOLBAR 77#define BUTTONS_ON_TOOLBAR
66#define SIDE_BUTTONS 78#define SIDE_BUTTONS
67#define CAN_SAVE_LOAD_PLAYLISTS 79#define CAN_SAVE_LOAD_PLAYLISTS
@@ -1053,14 +1065,43 @@ void PlayListWidget::keyReleaseEvent( QKeyEvent *e)
1053 switch ( e->key() ) { 1065 switch ( e->key() ) {
1054////////////////////////////// Zaurus keys 1066////////////////////////////// Zaurus keys
1055 case Key_F9: //activity 1067 case Key_F9: //activity
1056 if(audioUI->isHidden()) 1068// if(audioUI->isHidden())
1057 audioUI->showMaximized(); 1069// audioUI->showMaximized();
1058 break; 1070 break;
1059 case Key_F10: //contacts 1071 case Key_F10: //contacts
1060 if( videoUI->isHidden()) 1072// if( videoUI->isHidden())
1061 videoUI->showMaximized(); 1073// videoUI->showMaximized();
1062 1074 break;
1075 case Key_F11: //menu
1076 break;
1077 case Key_F12: //home
1078// doBlank();
1079 break;
1080 case Key_F13: //mail
1081// doUnblank();
1063 break; 1082 break;
1064 1083
1065 } 1084 }
1066} 1085}
1086
1087void PlayListWidget::doBlank() {
1088 qDebug("do blanking");
1089 fd=open("/dev/fb0",O_RDWR);
1090 if (fd != -1) {
1091 ioctl(fd,FBIOBLANK,1);
1092// close(fd);
1093 }
1094}
1095
1096void PlayListWidget::doUnblank() {
1097 // this crashes opieplayer with a segfault
1098// int fd;
1099// fd=open("/dev/fb0",O_RDWR);
1100 qDebug("do unblanking");
1101 if (fd != -1) {
1102 ioctl(fd,FBIOBLANK,0);
1103 close(fd);
1104 }
1105 QCopEnvelope h("QPE/System", "setBacklight(int)");
1106 h <<-3;// v[1]; // -3 Force on
1107}