summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice_zaurus.h
Unidiff
Diffstat (limited to 'libopie2/opiecore/device/odevice_zaurus.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.h b/libopie2/opiecore/device/odevice_zaurus.h
index dc21546..37ab876 100644
--- a/libopie2/opiecore/device/odevice_zaurus.h
+++ b/libopie2/opiecore/device/odevice_zaurus.h
@@ -73,35 +73,33 @@
73 73
74#define APM_IOCGEVTSRC OD_IOR( 'A', 203, int ) 74#define APM_IOCGEVTSRC OD_IOR( 'A', 203, int )
75#define APM_IOCSEVTSRC OD_IORW( 'A', 204, int ) 75#define APM_IOCSEVTSRC OD_IORW( 'A', 204, int )
76#define APM_EVT_POWER_BUTTON (1 << 0) 76#define APM_EVT_POWER_BUTTON (1 << 0)
77 77
78// Brightness 78// Brightness
79#define FL_IOCTL_STEP_CONTRAST 100 79#define SHARP_FL_IOCTL_DEVICE "/dev/sharp_fl"
80 80#define SHARP_FL_IOCTL_ON 1
81#define CORGI_TOSA_BL_IOCTL_ON 1 81#define SHARP_FL_IOCTL_OFF 2
82#define CORGI_TOSA_BL_IOCTL_OFF 2 82#define SHARP_FL_IOCTL_STEP_CONTRAST 100
83#define CORGI_TOSA_BL_IOCTL_STEP_CONTRAST 100 83#define SHARP_FL_IOCTL_GET_STEP_CONTRAST 101
84#define CORGI_TOSA_BL_IOCTL_GET_STEP_CONTRAST 101 84#define SHARP_FL_IOCTL_GET_STEP 102
85#define CORGI_TOSA_BL_IOCTL_GET_STEP 102
86#define CORGI_BL_PROC_DEVICE corgi-bl
87#define TOSA_BL_PROC_DEVICE tosa-bl
88 85
89namespace Opie { 86namespace Opie {
90namespace Core { 87namespace Core {
91namespace Internal { 88namespace Internal {
92class Zaurus : public ODevice 89class Zaurus : public ODevice
93{ 90{
94 protected: 91 protected:
95 virtual void init(const QString&); 92 virtual void init(const QString&);
96 virtual void initButtons(); 93 virtual void initButtons();
97 94
98 public: 95 public:
99 virtual bool setSoftSuspend ( bool soft ); 96 virtual bool setSoftSuspend( bool soft );
100 97
101 virtual bool setDisplayBrightness ( int b ); 98 virtual bool setDisplayBrightness( int b );
99 virtual bool setDisplayStatus( bool on );
102 virtual int displayBrightnessResolution() const; 100 virtual int displayBrightnessResolution() const;
103 101
104 virtual void playAlarmSound(); 102 virtual void playAlarmSound();
105 virtual void playKeySound(); 103 virtual void playKeySound();
106 virtual void playTouchSound(); 104 virtual void playTouchSound();
107 105