I'm writing a plugin that adds a root folder to PMS. Initially, the folder has no children, but children will be added and removed during the lifetime of the application. What would be the proper way to implement that?
Based on reading the source code of DLNAResource, I guess I need to return true from isRefreshNeeded() once I have added or removed a child. I suppose it's also a good idea to add some synchronization since my plugin will be modifying the list of children from a different thread than the main thread.
Something obvious I have missed?