[sane-devel] scanner buttons

m. allan noah anoah@pfeiffer.edu
Fri, 9 Jul 2004 10:09:45 -0400 (EDT)


> > > In my last mail I already wrote that the HP 74xx have buttons to
> > > change the scan mode and copy count - this are also use cases where
> > > the "option changed" callbacks come handy.
> > > 
> > 
> > can you think of a case where a call-back is required? (i want to avoid 
> > them, if possible.)
> 
> Gerhard introduced the idea in his last mail. I do not thing they are
> neccessary, but for buttons that could change the mode option - and so
> many other related options they can make life easier. But of course
> you can set some option auto-poll - and when the button press is
> detected return a RELOAD to reload all the changes options ...
> 

ok, here's a crazy idea- why not just reload the entire option array every 
few seconds? the backend then gets to decide what order to reload them in 
(i.e. load the 'mode' switch first, then change all the mode params, then 
load the 'scan' button press).

is this nuts?

allan

-- 
"so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls" - Max Cavalera