[Development] QFileSystemWatcher and Recursive Monitoring

2012-07-19 Thread logic.cpp
BH Hello, Hope you don't mind my less-waste-your-time more-get-to-the-point English. Begin ramble: Wanted to fix QFileSystemWatcher for Windows as per w00t's article: (also see his fix:

Re: [Development] QFileSystemWatcher and Recursive Monitoring

2012-07-19 Thread logic.cpp
#1 Clarification of original post: When I say "Making QFileSystemWatcher Recursive" I mean *adding* new functions for recursive monitoring, such as "addPathRecursively()". I don't mean to replace the current non-recursive functinality, which is very useful in its own right (for "A" category use ca

Re: [Development] QFileSystemWatcher and Recursive Monitoring (Arvid E. Picciani)

2012-07-22 Thread logic.cpp
BH Hey'all, Thanks for the feedback. I think we can still make everything work inside one single class, either QFileSystemWatcher or perhaps a new class if we don't want to break QFSW too much. We'll do this à la "Graceful Degradation". Before I explain, consider also the fact that - as Arvid me

Re: [Development] QFileSystemWatcher and Recursive Monitoring (Arvid E. Picciani)

2012-07-22 Thread logic.cpp
Whoops I am so sorry, total noob here when it comes to mailing lists. This was meant to be a reply to the existing thread http://lists.qt-project.org/pipermail/development/2012-July/005279.html The last post of which was by Arvid E. Picciani Not sure if this means the discussion continues in this

Re: [Development] QFileSystemWatcher and Recursive Monitoring

2012-07-22 Thread logic.cpp
BH Hey'all, Thanks for the feedback. I think we can still make everything work inside one single class, either QFileSystemWatcher or perhaps a new class if we don't want to break QFSW too much. We'll do this à la "Graceful Degradation". Before I explain, consider also the fact that - as Arvid me

Re: [Development] QFileSystemWatcher and Recursive Monitoring

2012-07-22 Thread logic.cpp
Darn, second attempt to fix my mess-up here in the mailing list only made things worse. Shoot me. -regedit On Fri, Jul 20, 2012 at 1:21 AM, logic.cpp wrote: > BH > > Hello, > > Hope you don't mind my less-waste-your-time more-get-to-the-point English. > Begin ra

Re: [Development] QFileSystemWatcher and Recursive Monitoring

2012-07-22 Thread logic.cpp
> Are you sure about that? The documentation specifies an > kFSEventStreamEventFlagMustScanSubDirs flag for > events which indicates that a problem happened either in the kernel or > user space and events were coalesced. > Events being coalesced is another unrelated thing (a feature in fact - not

Re: [Development] QFileSystemWatcher and Recursive Monitoring

2012-07-22 Thread logic.cpp
> How will you handle renames? It looks like ReadDirectoryChanges uses > two separate events, leaving it up to the user to match them up. > As for renames (and moves on Linux/X11) we'd need to come up with some mechanism to sebd 2 pieces of information in one signal. This can be either quick-n-di

Re: [Development] QFileSystemWatcher and Recursive Monitoring

2012-07-23 Thread logic.cpp
> I don't like your single signal design. It's cross platform only in that it > will compile/function on every platform. The application will behave > differently in the slot connected to said signal on mac than on > windows/linux. We should not expect every _user_ app to have separate > codepaths

Re: [Development] QFileSystemWatcher and Recursive Monitoring

2012-07-23 Thread logic.cpp
So - are you suggesting that Qt file-system monitoring facilities should actually generate an in-memory snapshot of the necessary directory tree(s) for platforms that need it (in this case Mac OSX <= Snow Leopard) ? Hey I'm not against, it would be really easy to implement. But you should really t

Re: [Development] QFileSystemWatcher and Recursive Monitoring

2012-07-26 Thread logic.cpp
So how about something like this (others have suggested something along these lines): In order to work recursively, the file-system watcher class will require the user to implement a sort of snapshotting "backend" which will be interfaced/used for FS change comparisons. And only as a "bonus", t

Re: [Development] QFileSystemWatcher and Recursive Monitoring

2012-07-27 Thread logic.cpp
BH I think this is very much like what I was trying to describe. It's really annoying that Mac<=Snow Leopard is forcing us into such corners, but if it works and it pleases all Qt evangelists :) then maybe this'll do. ___ Development mailing list Devel

Re: [Development] QFileSystemWatcher and Recursive Monitoring

2012-07-29 Thread logic.cpp
BH Alright I'll begin trying to implement some of this, possibly inside the QFileSystemWatcher class itself. But don't expect much, this is opensauce after all so I might come back in a few months and yawn "Oh right, QFileSystemWatcher... forgot about that" :D Though if some volunteers can help

Re: [Development] QFileSystemWatcher and Recursive Monitoring

2025-03-12 Thread logic.cpp
Hah 13 years later 😆 QFSW should probably just do what this codebase does: https://github.com/emcrisostomo/fswatch -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development