I recently add my plugin manager and plugin to my application. But I'm having trouble integrating the plugin system. Well to exact. I have the application locating my plugins and adding them and unloading fine. The only problem is trying to decide on how to do it correctly.

The way the application is design is a little complicated due to the feature I have.

Main Window -> Server View -> ServerView Tab -> ChannelView -> Channel.

Where as ServerView can have many ServerTab's. And each ServerTab can have a ChannelView and many tabs for it. The problem I have right now is trying to figure out how to get the input from all the channels in each Server and make it available to the plugin without complicating anything and make it easier so the user writting the plugin doesn't have to do much work to manipulate the stuff.