From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2b4035d737f33f74 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-31 10:46:06 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!128.39.3.166!uninett.no!ntnu.no!randhol+abuse From: randhol+abuse@pvv.org (Preben Randhol) Newsgroups: comp.lang.ada Subject: Re: Need advice on Reminder program Date: Wed, 31 Jan 2001 18:46:03 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 980966763 17656 129.241.83.82 (31 Jan 2001 18:46:03 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 31 Jan 2001 18:46:03 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: supernews.google.com comp.lang.ada:4773 Date: 2001-01-31T18:46:03+00:00 List-Id: On 31 Jan 2001 13:08:55 -0500, Stephen Leake wrote: >You only need to read the text file once, at startup, so you don't >need a separate task for that. Hmm, you do need some way to add >appointments; leave that for later? I want the daemon to reread the file when it changes. I want the daemon to run "forever" :-). To add apointments I want to use a different program. >When a dialog box is popped up, do you want the "timer" function to keep >operating, to allow another dialog box to pop up before the first is >closed? or just pop later ones up after the first is closed? I want it to pop up and the daemon to continue to the next appointment. I don't want to wait for user input. >If you don't want multiple dialog boxes, one task is all you need. >Depending on the details of the windowing toolkit (Gtk? Motif?), you >may be able to popup multiple dialog boxes from one task. GtkAda >Keeping things simple is the key to keeping them reliable. Using more >tasks than you really need is _not_ keeping it simple. Yes :-) >One confusion I often see is between "task" and "module". You >definitely should have one _package_ for reading the text file, one >package for poping up dialogs, and one package for managing the timer. >That is _not_ the same as needing three _tasks_. Yes, but I need the tasks so that if the user alters the appointments the daemon will update itself to the new info. And to do that I think I will need more than one task. :-) But you are right that the less tasks the better so I'll think about that and see if I can manage with one, I'll check what GtkAda can do in this respect. Thanks -- Preben Randhol ---------------- http://www.pvv.org/~randhol/ -- iMy favorite editor is Emacs!bcwVim -- vim best-editor.txt