Closed pybae closed 10 years ago
Alright, so we've agreed to go on with the implementation with the fileName. @tycheng suggested that we needed to monitor the file for changes and presented two choices:
As for which one we'll implement, that's still an open question
In our implementation as of now, we have a private QFile member that tracks the current file we are working on. However, as we can't freely assign QFiles, such as (QFile member = QFile('fileName')), I was thinking of simply using the fileName and then looking up the file when we have to edit something with the file.
This leads to the following design:
And if an user happens to modify the file whilst we haven't updated yet (or deleted the file entirely) we would check that in our methods, and throw an error.
What do you guys think?