From b3259d2dcf3599828a4eaa0d8de8148ca1839aef Mon Sep 17 00:00:00 2001 From: schurig Date: Thu, 09 Sep 2004 10:19:13 +0000 Subject: updates to MNCI --- (limited to 'libopie2/opiecore/device/odevice_ramses.h') diff --git a/libopie2/opiecore/device/odevice_ramses.h b/libopie2/opiecore/device/odevice_ramses.h index 3cf5e92..bbd3862 100644 --- a/libopie2/opiecore/device/odevice_ramses.h +++ b/libopie2/opiecore/device/odevice_ramses.h @@ -34,42 +34,34 @@ /* QT */ #include + +#ifndef OD_IOC +#define OD_IOC(dir,type,number,size) (( dir << 30 ) | ( type << 8 ) | ( number ) | ( size << 16 )) +#define OD_IO(type,number) OD_IOC(0,type,number,0) +#define OD_IOW(type,number,size) OD_IOC(1,type,number,sizeof(size)) +#define OD_IOR(type,number,size) OD_IOC(2,type,number,sizeof(size)) +#define OD_IORW(type,number,size) OD_IOC(3,type,number,sizeof(size)) +#endif + + + namespace Opie { namespace Core { namespace Internal { -class Ramses : public ODevice, public QWSServer::KeyboardFilter +class Ramses : public ODevice { protected: virtual void init(const QString&); public: - virtual bool setSoftSuspend( bool soft ); virtual bool suspend(); - virtual bool setDisplayStatus( bool on ); virtual bool setDisplayBrightness( int b ); virtual int displayBrightnessResolution() const; - virtual bool setDisplayContrast( int b ); - virtual int displayContrastResolution() const; - - protected: - virtual bool filter ( int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat ); - virtual void timerEvent ( QTimerEvent *te ); - - int m_power_timer; + virtual void playAlarmSound(); }; -struct r_button { - uint model; - Qt::Key code; - char *utext; - char *pix; - char *fpressedservice; - char *fpressedaction; - char *fheldservice; - char *fheldaction; -}; } } } -- cgit v0.9.0.2