Re: [Banshee-List] Keeping in sync
- From: Michael Krog <mic apaq dk>
- To: banshee-list gnome org
- Subject: Re: [Banshee-List] Keeping in sync
- Date: Fri, 04 Nov 2005 11:20:21 +0100
Hi Dogacan.
Hope this wont ruin your day - but isnt that what FileSystemWatcher is
supposed to
handle?
http://weblogs.asp.net/ashben/archive/2003/10/14/31773.aspx
Best Regards
Michael Krog
Dogacan Guney wrote:
Hello everyone,
Aaron, I was thinking that it would be cool if the library can keep in
sync with the hard drive. It seems no file alteration notification
mechanisms exists in .NET or Mono, so I wrote a wrapper for FAM in c
(libwatch.c, libwatch.h), then I wrote a static c# class(Watcher.cs)
that p/invokes it that I am attaching.
I was thinking that a timer can be placed on Watcher.Update so that it
is called every second or so to receive new events then, if there are
any new events, we can act on them by Watcher.Act.
The code only WriteLines when something happens so it does not do any
updates or anything, but I decided to post it here to get some
feedback on whether you think this is a viable approach or not.
So, what do you think:)?
------------------------------------------------------------------------
_______________________________________________
Banshee-list mailing list
Banshee-list gnome org
http://mail.gnome.org/mailman/listinfo/banshee-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]