BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: File arrival notification the OO way

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design
View previous topic :: View next topic  
Author Message
Bob Dawson
Guest





PostPosted: Thu Dec 15, 2005 3:50 pm    Post subject: Re: File arrival notification the OO way Reply with quote



"José González D'Amico" wrote
Quote:

I don't know how to implement such functionality

What you're looking for is called publish-subscribe or the Observer pattern.
Basically it separates the act of listening for an event from the action
that the listener takes when that event happens. Also something called event
multicasting.

Try googling:
delphi publish subscribe
or
delphi observer pattern

bobD



Back to top
Peter Morris [Droopy eyes
Guest





PostPosted: Fri Dec 16, 2005 2:50 pm    Post subject: Re: File arrival notification the OO way Reply with quote



Hi

Quote:
in a folder. I wrote a wrapper class around a folder monitor class I've
found on the web.

Was it my DirMonitor from CodeCentral? :-)




Back to top
Peter Morris [Droopy eyes
Guest





PostPosted: Sun Dec 18, 2005 8:09 pm    Post subject: Re: File arrival notification the OO way Reply with quote



Quote:
BTW, this class has some annoying bugs when watching at subfolders,
does your DirMonitor work well with subfolders?

I honestly have no recollection Smile I think you can just tell it to monitor
a folder + subdirs and it triggers when something changes.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.