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) (side-by-side diff)
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 @@
**********************************************************************/
// code added by L. J. Potter Sat 03-02-2002 06:17:54
#define QTOPIA_INTERNAL_FSLP
+#include <qpe/qcopenvelope_qws.h>
#include <qpe/qpemenubar.h>
#include <qpe/qpetoolbar.h>
@@ -62,6 +63,17 @@
#include "audiowidget.h"
#include "videowidget.h"
+#include <unistd.h>
+#include <sys/file.h>
+#include <sys/ioctl.h>
+#include <sys/soundcard.h>
+
+// for setBacklight()
+#include <linux/fb.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <stdlib.h>
+
#define BUTTONS_ON_TOOLBAR
#define SIDE_BUTTONS
#define CAN_SAVE_LOAD_PLAYLISTS
@@ -1053,14 +1065,43 @@ void PlayListWidget::keyReleaseEvent( QKeyEvent *e)
switch ( e->key() ) {
////////////////////////////// Zaurus keys
case Key_F9: //activity
- if(audioUI->isHidden())
- audioUI->showMaximized();
+// if(audioUI->isHidden())
+// audioUI->showMaximized();
break;
case Key_F10: //contacts
- if( videoUI->isHidden())
- videoUI->showMaximized();
-
+// if( videoUI->isHidden())
+// videoUI->showMaximized();
+ break;
+ case Key_F11: //menu
+ break;
+ case Key_F12: //home
+// doBlank();
+ break;
+ case Key_F13: //mail
+// doUnblank();
break;
}
}
+
+void PlayListWidget::doBlank() {
+ qDebug("do blanking");
+ fd=open("/dev/fb0",O_RDWR);
+ if (fd != -1) {
+ ioctl(fd,FBIOBLANK,1);
+// close(fd);
+ }
+}
+
+void PlayListWidget::doUnblank() {
+ // this crashes opieplayer with a segfault
+// int fd;
+// fd=open("/dev/fb0",O_RDWR);
+ qDebug("do unblanking");
+ if (fd != -1) {
+ ioctl(fd,FBIOBLANK,0);
+ close(fd);
+ }
+ QCopEnvelope h("QPE/System", "setBacklight(int)");
+ h <<-3;// v[1]; // -3 Force on
+}