Hans Meine wrote: > Am Montag, 02. April 2007 17:49:27 schrieb Mathias Weber: >> I see that you already do start the functions with the names. but >> actually this are methods in usually you don't do this with methods this >> is something done in c because there where no encapsulation. > > I disagree; "pause" is simply too generic otherwise (that's why I proposed > "suspend"). Imagine an audio player which shall temporarily free the "audio > device" resource for playing a movie - I would not expect > > audio_player.pause() > > to free the device normally. (OK, maybe this example is not the best since > both "pause" meanings are quite similar.)
Right, that is why I used plugin_pause and plugin_resume. But you could not call this functions on applications. So suspend could be an idea for a name, but what about resume? Is it pause/resume for playback or suspend/resume for ressource handling? Now it is still easy to fix: | find ui/src -name \*.py | xargs egrep '(pause|resume|suspend)' Another question is: do we need pause/resume in other ways than ressource handing? There are events for ir pause/resume. Dischi -- "Today Is A Good Day For Someone Else To Die!" -- (Terry Pratchett, Feet of Clay)
pgpE5rOgx97Zw.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel