C++ with Qt4 plugin development -


lately have been playing around plugin framework provided qt4 framework, , works perfectly. there 1 thing unsure of.

in examples, interfaces implemented (the actual plugin), had source code available (the person implementing interface has access interface source). not problem, rather expose interface via shared library or similar.

my aim give 3rd party developers shared library file, can "import" (excuse java terminology) in code create plugins application. similar giving .jar file in java developer can import.

the reason behind not hide source code, open source project, simplicity sake. also, program dependant on interfaces staying way plugins different 3rd parties can talk each other. if mess actual interfaces, fall apart.

i appreciate nudge in correct direction.

thanks!

c++ not allow introspection java, therefore cannot ship "the binaries" , infer interface that. in c++ need textual description of interface (the header files).

someone wants develop plugin application needs have access to

  1. the header file of plugin interface
  2. all header files classes used in plugin interface.

plugin developers not mess provided header files (at least should not), reason provided in post.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -