Download the source and inspect some of the other plugins in "src/plugins".
This is the best way to see what it is possible to achieve.
We have a doxygen file, which should generate a browsable documentation, but I'm not sure what is the download link for it.
You can try to build it from the source.