From 350e9cf9f8607202d78cba4400aec90ad075a763 Mon Sep 17 00:00:00 2001 From: schurig Date: Tue, 17 Jun 2003 06:34:27 +0000 Subject: added helpful comment on usage of virtualHook --- diff --git a/libopie/odevice.h b/libopie/odevice.h index a232d69..650a2da 100644 --- a/libopie/odevice.h +++ b/libopie/odevice.h @@ -183,6 +183,12 @@ public: virtual bool setDisplayContrast ( int contrast ); virtual int displayContrastResolution ( ) const; + // don't add new virtual methods, use this: + // /*virtual */ void boo(int i ) { return virtual_hook(1,&i); }; + // and in your subclass do do overwrite + // protected virtual int virtual_hook(int, void *) + // which is defined below + // input / output //FIXME playAlarmSound and al might be better -zecke virtual void alarmSound ( ); -- cgit v0.9.0.2