I'm working on an application that communicates with a digital i/o card to communicate with some lab equipment. I'd like to write the actual device interface as a plug-in so it can be changed easily if the hardware changes. Part of this involves collecting information from the hardware to pass back to the application. Since some of the hardware involved will cause an interrupt when data is ready, I don't want to build a polling system into the main application--if there is a poller anywhere in software, I'd rather it be in the plug-in and have the main application agnostic. So, while I'm still in the design phase, I'm positing this question so as to come up with the best approach:
Is there any problem with passing a callback to a method in a dynamically loaded Qt plugin? It will most likely be a C++ static method.
Thanks,
Kenny
Bookmarks